swaroopak commented on a change in pull request #626: PHOENIX-5531: 
IndexUpgradeTool crashes for tables without any indexes…
URL: https://github.com/apache/phoenix/pull/626#discussion_r345469498
 
 

 ##########
 File path: 
phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexUpgradeTool.java
 ##########
 @@ -333,6 +333,8 @@ private int executeTool(Connection conn, 
ConnectionQueryServices queryServices,
                 LOGGER.info("Executing " + operation + " for " + 
dataTableFullName);
 
                 boolean mutable = !(dataTable.isImmutableRows());
+                disableTable(admin, dataTableFullName, indexes);
+                modifyTable(admin, dataTableFullName, indexes);
                 if (!mutable) {
 
 Review comment:
   I would prefer waiting each time there is an immutable table if invalidating 
cache is not an option. what say?

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