You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by GitBox <gi...@apache.org> on 2019/10/01 16:37:07 UTC

[GitHub] [phoenix] priyankporwal commented on a change in pull request #591: PHOENIX-5503 IndexTool does not rebuild all the rows

priyankporwal commented on a change in pull request #591: PHOENIX-5503 IndexTool does not rebuild all the rows
URL: https://github.com/apache/phoenix/pull/591#discussion_r330157265
 
 

 ##########
 File path: phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexTool.java
 ##########
 @@ -312,7 +312,10 @@ public Job getJob() throws Exception {
                     return configureJobForAysncIndex();
                 }
                 else {
-                    //Local and non-transactional global indexes to be built on the server side
+                    // Local and non-transactional global indexes to be built on the server side
+                    // It is safe to unset CURRENT_SCN_VALUE for server side rebuilds to make sure that
+                    // all the rows that has been inserted so far will be rebuilt
+                    configuration.unset(PhoenixConfigurationUtil.CURRENT_SCN_VALUE);
 
 Review comment:
   IMO, this configuration change should be inside configureJobForServerBuildIndex() so that any future calls to it do not miss it. I noticed that configureJobForServerBuildIndex() configuration.set() calls, so this would not be out of place.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services