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

yanxinyi 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 3a3311c  PHOENIX-6301 Fix 
BackwardCompatibilityIT.testSystemTaskCreationWithIndexAsyncRebuild test flapper
3a3311c is described below

commit 3a3311c2aef3158b5636e2f4b01b35e19cfef73c
Author: Xinyi Yan <x...@salesforce.com>
AuthorDate: Tue Jan 5 20:12:23 2021 -0800

    PHOENIX-6301 Fix 
BackwardCompatibilityIT.testSystemTaskCreationWithIndexAsyncRebuild test flapper
    
    Signed-off-by: Xinyi Yan <yanxi...@apache.org>
---
 .../src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityIT.java | 2 ++
 1 file changed, 2 insertions(+)

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 3b09c62..5a70e2a 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
@@ -372,6 +372,8 @@ public class BackwardCompatibilityIT {
         if (majorVersion > 4 || (majorVersion == 4 && minorVersion >= 15)) {
             executeQueryWithClientVersion(compatibleClientVersion,
                 INDEX_REBUILD_ASYNC, zkQuorum);
+            // wait 5 seconds to finish the rebuild job
+            Thread.sleep(5000);
             executeQueriesWithCurrentVersion(QUERY_INDEX_REBUILD_ASYNC, url, 
NONE);
             assertExpectedOutput(QUERY_INDEX_REBUILD_ASYNC);
         }

Reply via email to