Xiang Yang has uploaded this change for review. ( http://gerrit.cloudera.org:8080/20173
Change subject: IMPALA-12268: Fix possible blocking when use java.lang.Process. ...................................................................... IMPALA-12268: Fix possible blocking when use java.lang.Process. When use java.lang.Process, because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, or even deadlock. This patch provides a class 'InputStreamGobbler' to consume the streams produced by subprocess asynchronously. Testing: - add a FE test 'InputStreamGobblerTest'. - run core job. Change-Id: I06b728e6134fa14d3970ea7db4d64a962bb2d694 --- A fe/src/test/java/org/apache/impala/common/InputStreamGobbler.java A fe/src/test/java/org/apache/impala/common/InputStreamGobblerTest.java M fe/src/test/java/org/apache/impala/customcluster/CustomClusterRunner.java M fe/src/test/java/org/apache/impala/customcluster/RunShellCommand.java M fe/src/test/java/org/apache/impala/customservice/CustomServiceRunner.java 5 files changed, 153 insertions(+), 21 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/73/20173/2 -- To view, visit http://gerrit.cloudera.org:8080/20173 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I06b728e6134fa14d3970ea7db4d64a962bb2d694 Gerrit-Change-Number: 20173 Gerrit-PatchSet: 2 Gerrit-Owner: Xiang Yang <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
