HDFS-11967. TestJMXGet fails occasionally. Contributed by Arpit Agarwal.
This commit is contained in:
parent
097b1f74e5
commit
eda4bf5196
|
@ -141,7 +141,7 @@ public class TestJMXGet {
|
||||||
byte[] bytes = null;
|
byte[] bytes = null;
|
||||||
String pattern = "List of all the available keys:";
|
String pattern = "List of all the available keys:";
|
||||||
PipedOutputStream pipeOut = new PipedOutputStream();
|
PipedOutputStream pipeOut = new PipedOutputStream();
|
||||||
PipedInputStream pipeIn = new PipedInputStream(pipeOut);
|
PipedInputStream pipeIn = new PipedInputStream(pipeOut, 1024 * 1024);
|
||||||
PrintStream oldErr = System.err;
|
PrintStream oldErr = System.err;
|
||||||
System.setErr(new PrintStream(pipeOut));
|
System.setErr(new PrintStream(pipeOut));
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue