accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] jzgithub1 commented on a change in pull request #818: Fix #810
Date Thu, 27 Dec 2018 18:24:32 GMT
jzgithub1 commented on a change in pull request #818: Fix #810
URL: https://github.com/apache/accumulo/pull/818#discussion_r244203028
 
 

 ##########
 File path: minicluster/src/main/java/org/apache/accumulo/miniclusterImpl/MiniAccumuloClusterImpl.java
 ##########
 @@ -335,15 +324,10 @@ private Process _exec(Class<?> clazz, List<String> extraJvmOpts,
String... args)
         + "\n, environment: " + builder.environment());
     Process process = builder.start();
 
-    LogWriter lw;
-    lw = new LogWriter(process.getErrorStream(),
-        new File(config.getLogDir(), clazz.getSimpleName() + "_" + process.hashCode() + ".err"));
-    logWriters.add(lw);
-    lw.start();
-    lw = new LogWriter(process.getInputStream(),
-        new File(config.getLogDir(), clazz.getSimpleName() + "_" + process.hashCode() + ".out"));
-    logWriters.add(lw);
-    lw.start();
+    builder.redirectError(
 
 Review comment:
   Checked in a tested fix on my fork.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message