gokceni commented on a change in pull request #499: Phoenix-5272 ALTER INDEX 
REBUILD ALL 
URL: https://github.com/apache/phoenix/pull/499#discussion_r288213881
 
 

 ##########
 File path: phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
 ##########
 @@ -934,7 +936,35 @@ public IndexStateCheck(PIndexState indexState, Long 
indexDisableTimestamp, Boole
                this.success = success;
        }
     }
-    
+
+    public static void waitForIndexState(Connection conn, String 
fullIndexName, PIndexState expectedIndexState) throws InterruptedException, 
SQLException {
+        int maxTries = 60;
+        RetryCounter retrier = new RetryCounter(maxTries,
 
 Review comment:
   @swaroopak asked me to change the wait code to depend on it. Will role back.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to