Skip to content

Commit 4d281ae

Browse files
committed
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
1 parent 8ccf8fd commit 4d281ae

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

hadoop-common-project/hadoop-common/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ Release 2.3.0 - UNRELEASED
348348

349349
BUG FIXES
350350

351+
HADOOP-9964. Fix deadlocks in TestHttpServer by synchronize
352+
ReflectionUtils.printThreadInfo. (Junping Du via llu)
353+
351354
HADOOP-9582. Non-existent file to "hadoop fs -conf" doesn't throw error
352355
(Ashwin Shankar via jlowe)
353356

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ReflectionUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private static String getTaskName(long id, String name) {
154154
* @param stream the stream to
155155
* @param title a string title for the stack trace
156156
*/
157-
public static void printThreadInfo(PrintWriter stream,
157+
public synchronized static void printThreadInfo(PrintWriter stream,
158158
String title) {
159159
final int STACK_DEPTH = 20;
160160
boolean contention = threadBean.isThreadContentionMonitoringEnabled();

0 commit comments

Comments
 (0)