agresch 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_r280779147
##########
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);
Review comment:
I agree this is a good change.
It isn't obvious to me that adding a prefix should cause the threading
behavior. I'd rather see an explicit API with either a name change or a thread
parameter rather than relying on logPrefix.
----------------------------------------------------------------
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