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_r345890465
 
 

 ##########
 File path: 
phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexUpgradeTool.java
 ##########
 @@ -418,7 +418,9 @@ private void rebuildIndexes(Connection conn, Configuration 
conf, String dataTabl
                 indexingTool = new IndexTool();
             }
             indexingTool.setConf(conf);
-            rebuildIndexes(conn, dataTableFullName, indexingTool);
+            if(rebuildMap.get(dataTableFullName).size() != 0 ) {
 
 Review comment:
   done. Used the file you shared as a starting point. 

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