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

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


The following commit(s) were added to refs/heads/master by this push:
     new d5059ee  PHOENIX-6169 IT suite never finishes on 4.x with HBase 1.3 or 
1.4
d5059ee is described below

commit d5059eeb56630596e137b4b69debda2d723a2da2
Author: Istvan Toth <[email protected]>
AuthorDate: Thu Oct 1 14:34:18 2020 +0200

    PHOENIX-6169 IT suite never finishes on 4.x with HBase 1.3 or 1.4
---
 .../apache/phoenix/end2end/BackwardCompatibilityIT.java  | 16 ++++++++++++++++
 phoenix-core/src/it/resources/scripts/execute_query.sh   |  4 ++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityIT.java
index 3a75673..3d6ff91 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityIT.java
@@ -379,6 +379,22 @@ public class BackwardCompatibilityIT {
         ProcessBuilder pb = new ProcessBuilder(cmdParams);
         final Process p = pb.start();
         final StringBuffer sb = new StringBuffer();
+        //Capture the output stream if any from the execution of the script
+        Thread outputStreamThread = new Thread() {
+            @Override
+            public void run() {
+                try (BufferedReader reader = new BufferedReader(
+                            new InputStreamReader(p.getInputStream()))) {
+                    String line;
+                    while ((line = reader.readLine()) != null) {
+                        sb.append(line);
+                    }
+                } catch (final Exception e) {
+                    sb.append(e.getMessage());
+                }
+            }
+        };
+        outputStreamThread.start();
         //Capture the error stream if any from the execution of the script
         Thread errorStreamThread = new Thread() {
             @Override
diff --git a/phoenix-core/src/it/resources/scripts/execute_query.sh 
b/phoenix-core/src/it/resources/scripts/execute_query.sh
index 7dba6e9..c1fd78c 100644
--- a/phoenix-core/src/it/resources/scripts/execute_query.sh
+++ b/phoenix-core/src/it/resources/scripts/execute_query.sh
@@ -30,8 +30,8 @@ if [ -n $maven_home ]; then
    export PATH=$maven_home/bin:$PATH
 fi
 
-mvn dependency:get -Dartifact=org.apache.phoenix:phoenix-client:$client_version
-mvn dependency:copy 
-Dartifact=org.apache.phoenix:phoenix-client:$client_version \
+mvn -B dependency:get 
-Dartifact=org.apache.phoenix:phoenix-client:$client_version
+mvn -B dependency:copy 
-Dartifact=org.apache.phoenix:phoenix-client:$client_version \
 -DoutputDirectory=$tmp_dir
 
 phoenix_client_jar=$tmp_dir/phoenix-client-$client_version.jar

Reply via email to