[ 
https://issues.apache.org/jira/browse/PHOENIX-6462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17342774#comment-17342774
 ] 

ASF GitHub Bot commented on PHOENIX-6462:
-----------------------------------------

gokceni commented on a change in pull request #1228:
URL: https://github.com/apache/phoenix/pull/1228#discussion_r630392682



##########
File path: 
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/IndexRebuildRegionScanner.java
##########
@@ -357,6 +361,7 @@ public boolean next(List<Cell> results) throws IOException {
         } catch (Throwable e) {
             LOGGER.error("Exception in IndexRebuildRegionScanner for region "
                     + region.getRegionInfo().getRegionNameAsString(), e);
+            this.shouldRetry = true;

Review comment:
       This is a good idea! @kadirozde what do you think? We can just say, ok 
we know that we are successfully finished for this region and shouldRetry=false 
in that end of try, and all other cases there must be either region split/move 
or exception and retry.




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


> Index build mapper that failed should not be logging into the 
> PHOENIX_INDEX_TOOL_RESULT table
> ---------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-6462
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6462
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Gokcen Iskender
>            Priority: Major
>
> Today, if a mapper fails it still logs the region into the 
> PHOENIX_INDEX_TOOL_RESULT table. This causes into mistakenly thinking that 
> the mapper succeeded. Incremental rebuilds will be mislead.
>  
> [~swaroopa] [~tkhurana]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to