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

xushiyan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new f6e7227ed5 [MINOR] Only log stdout output for non-zero exit from 
commands in IT (#6199)
f6e7227ed5 is described below

commit f6e7227ed548ea5bac66e224df42e2985fb814a9
Author: Y Ethan Guo <[email protected]>
AuthorDate: Sun Jul 24 22:08:33 2022 -0700

    [MINOR] Only log stdout output for non-zero exit from commands in IT (#6199)
---
 hudi-integ-test/src/test/java/org/apache/hudi/integ/ITTestBase.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/hudi-integ-test/src/test/java/org/apache/hudi/integ/ITTestBase.java 
b/hudi-integ-test/src/test/java/org/apache/hudi/integ/ITTestBase.java
index 8115d50a78..dcb6367802 100644
--- a/hudi-integ-test/src/test/java/org/apache/hudi/integ/ITTestBase.java
+++ b/hudi-integ-test/src/test/java/org/apache/hudi/integ/ITTestBase.java
@@ -236,7 +236,9 @@ public abstract class ITTestBase {
     int exitCode = 
dockerClient.inspectExecCmd(createCmdResponse.getId()).exec().getExitCode();
     LOG.info("Exit code for command : " + exitCode);
 
-    LOG.error("\n\n ###### Stdout #######\n" + 
callback.getStdout().toString());
+    if (exitCode != 0) {
+      LOG.error("\n\n ###### Stdout #######\n" + 
callback.getStdout().toString());
+    }
     LOG.error("\n\n ###### Stderr #######\n" + 
callback.getStderr().toString());
 
     if (checkIfSucceed) {

Reply via email to