Ethanlm commented on a change in pull request #3005: [STORM-3385] Avoid two 
threads reading from the same input stream of a process
URL: https://github.com/apache/storm/pull/3005#discussion_r282076617
 
 

 ##########
 File path: 
storm-client/src/jvm/org/apache/storm/daemon/supervisor/ClientSupervisorUtils.java
 ##########
 @@ -64,7 +64,7 @@ public static int processLauncherAndWait(Map<String, Object> 
conf, String user,
                                              final Map<String, String> 
environment, final String logPreFix)
         throws IOException {
         int ret = 0;
-        Process process = processLauncher(conf, user, null, args, environment, 
logPreFix, null, null);
+        Process process = processLauncher(conf, user, null, args, environment, 
null, null, null);
         if (StringUtils.isNotBlank(logPreFix)) {
 
 Review comment:
    Do we want to create a new thread just for `readAndLogStream`? I think it 
makes sense to keep `Utils.readAndLogStream` here.  Btw this is the only caller 
of `processLauncher` that set `processExitCallback` parameter to null.

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


With regards,
Apache Git Services

Reply via email to