priyankporwal commented on a change in pull request #678: PHOENIX-5644 and 
PHOENIX-5651 addendum patch
URL: https://github.com/apache/phoenix/pull/678#discussion_r366039114
 
 

 ##########
 File path: 
phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexUpgradeTool.java
 ##########
 @@ -424,20 +424,21 @@ private void 
enableImmutableTables(ConnectionQueryServices queryServices,
             long startWaitTime) {
         long endWaitTime = EnvironmentEdgeManager.currentTimeMillis();
         long waitMore = getWaitMoreTime(endWaitTime, startWaitTime);
-        while (waitMore>0) {
+        while (waitMore>0 && !isWaitComplete) {
             // If the table is immutable, we need to wait for clients to purge
             // their caches of table metadata
             LOGGER.info("waiting for more " + waitMore + " ms for client cache 
"
                     + "to expire for immutable tables");
             try {
                 startWaitTime = EnvironmentEdgeManager.currentTimeMillis();
 
 Review comment:
   Got that. Not sure how that helps though. StartWaitTime is an input this 
function, and should normally never be updated .. besides, why keep shifting 
the starting time? What you really need is how much longer to wait until 
originalStartWaitTime+GLOBAL_INDEX_CHECKER_ENABLED_MAP_EXPIRATION_MIN+1

----------------------------------------------------------------
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