HADOOP-9964. Fix deadlocks in TestHttpServer by synchronize ReflectionUtils.printThreadInfo. (Junping Du via llu)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1527650 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e4154fc83a
commit
d2e73b2775
|
@ -348,6 +348,9 @@ Release 2.3.0 - UNRELEASED
|
|||
|
||||
BUG FIXES
|
||||
|
||||
HADOOP-9964. Fix deadlocks in TestHttpServer by synchronize
|
||||
ReflectionUtils.printThreadInfo. (Junping Du via llu)
|
||||
|
||||
HADOOP-9582. Non-existent file to "hadoop fs -conf" doesn't throw error
|
||||
(Ashwin Shankar via jlowe)
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ public class ReflectionUtils {
|
|||
* @param stream the stream to
|
||||
* @param title a string title for the stack trace
|
||||
*/
|
||||
public static void printThreadInfo(PrintWriter stream,
|
||||
public synchronized static void printThreadInfo(PrintWriter stream,
|
||||
String title) {
|
||||
final int STACK_DEPTH = 20;
|
||||
boolean contention = threadBean.isThreadContentionMonitoringEnabled();
|
||||
|
|
Loading…
Reference in New Issue