This is an automated email from the ASF dual-hosted git repository.

jstewart pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 2b39a54  GEODE-3786: Suppress IOExceptions when reading process 
streams in AcceptanceTests
2b39a54 is described below

commit 2b39a54c1b0b29e14e0588a8a7ff10bc758cefcc
Author: Jared Stewart <[email protected]>
AuthorDate: Fri Oct 6 16:00:38 2017 -0700

    GEODE-3786: Suppress IOExceptions when reading process streams in 
AcceptanceTests
---
 .../org/apache/geode/test/junit/rules/gfsh/StreamGobbler.java     | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/geode-junit/src/main/java/org/apache/geode/test/junit/rules/gfsh/StreamGobbler.java
 
b/geode-junit/src/main/java/org/apache/geode/test/junit/rules/gfsh/StreamGobbler.java
index da67f70..dd6dd59 100644
--- 
a/geode-junit/src/main/java/org/apache/geode/test/junit/rules/gfsh/StreamGobbler.java
+++ 
b/geode-junit/src/main/java/org/apache/geode/test/junit/rules/gfsh/StreamGobbler.java
@@ -17,6 +17,7 @@ package org.apache.geode.test.junit.rules.gfsh;
 import java.io.BufferedReader;
 import java.io.InputStream;
 import java.io.InputStreamReader;
+import java.io.UncheckedIOException;
 import java.util.function.Consumer;
 
 class StreamGobbler implements Runnable {
@@ -29,7 +30,12 @@ class StreamGobbler implements Runnable {
   }
 
   public void run() {
-    new BufferedReader(new 
InputStreamReader(inputStream)).lines().forEach(consumeInputLine);
+    try {
+      new BufferedReader(new 
InputStreamReader(inputStream)).lines().forEach(consumeInputLine);
+    } catch (UncheckedIOException ignored) {
+      // If this gobbler is reading the System.out stream from a process that 
gets killed,
+      // we will occasionally see an exception here than can be ignored.
+    }
   }
 
   public void startInNewThread() {

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to