You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2020/10/01 17:12:20 UTC

[phoenix] branch 4.x updated: PHOENIX-6169 IT suite never finishes on 4.x with HBase 1.3 or 1.4

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

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


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

commit d69a9fed0b11c6ba673b8c399ebab6d8e91a7f60
Author: Istvan Toth <st...@apache.org>
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 fa614ce..e8ef84f 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
@@ -375,6 +375,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