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

upthewaterspout 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 58329fd  GEODE-4240: Printing out cache server log
58329fd is described below

commit 58329fdabab59f04fece2482d9f0fd1794314fc3
Author: Dan Smith <[email protected]>
AuthorDate: Fri Mar 8 09:26:22 2019 -0800

    GEODE-4240: Printing out cache server log
    
    This test is failing occasionally in CI. Printing out the log of the
    server in the test so that we will have some clue if the server fails to
    start in future test runs.
---
 .../cache/DeprecatedCacheServerLauncherIntegrationTest.java | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git 
a/geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DeprecatedCacheServerLauncherIntegrationTest.java
 
b/geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DeprecatedCacheServerLauncherIntegrationTest.java
index 324be48..cbcbf6b 100755
--- 
a/geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DeprecatedCacheServerLauncherIntegrationTest.java
+++ 
b/geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DeprecatedCacheServerLauncherIntegrationTest.java
@@ -24,6 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat;
 import static org.junit.Assume.assumeFalse;
 
 import java.io.File;
+import java.io.FileInputStream;
 import java.io.FileWriter;
 import java.io.IOException;
 import java.net.InetAddress;
@@ -43,6 +44,7 @@ import java.util.concurrent.TimeoutException;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
+import org.apache.commons.io.IOUtils;
 import org.apache.logging.log4j.Logger;
 import org.junit.After;
 import org.junit.AfterClass;
@@ -144,6 +146,17 @@ public class DeprecatedCacheServerLauncherIntegrationTest {
     unexportObject(this.status);
     unexportObject(this.registry);
     destroy(this.processWrapper);
+
+    if (logFile.exists()) {
+
+      
System.out.println("------------------------------------------------------------");
+      System.out.println("Log file for launched process");
+      
System.out.println("------------------------------------------------------------");
+      try (FileInputStream input = new FileInputStream(logFile)) {
+        IOUtils.copy(input, System.out);
+      }
+      
System.out.println("------------------------------------------------------------");
+    }
   }
 
   @AfterClass

Reply via email to