From eda4bf51961c649c324a26a6d9f837535b46007f Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Mon, 12 Jun 2017 16:03:47 -0700 Subject: [PATCH] HDFS-11967. TestJMXGet fails occasionally. Contributed by Arpit Agarwal. --- .../src/test/java/org/apache/hadoop/tools/TestJMXGet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestJMXGet.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestJMXGet.java index 36fdac4ff18..a61420ce3fd 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestJMXGet.java +++ b/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 {