소스 검색

HDFS-11967. TestJMXGet fails occasionally. Contributed by Arpit Agarwal.

Arpit Agarwal 8 년 전
부모
커밋
eda4bf5196
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestJMXGet.java

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestJMXGet.java

@@ -141,7 +141,7 @@ public class TestJMXGet {
     byte[] bytes = null;
     String pattern = "List of all the available keys:";
     PipedOutputStream pipeOut = new PipedOutputStream();
-    PipedInputStream pipeIn = new PipedInputStream(pipeOut);
+    PipedInputStream pipeIn = new PipedInputStream(pipeOut, 1024 * 1024);
     PrintStream oldErr = System.err;
     System.setErr(new PrintStream(pipeOut));
     try {