You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/07/29 17:55:24 UTC

[GitHub] [incubator-doris] morningman commented on a change in pull request #4148: [Bug][TabletRepair] Fix bug that too many replicas generated when decommission BE

morningman commented on a change in pull request #4148:
URL: https://github.com/apache/incubator-doris/pull/4148#discussion_r462139372



##########
File path: fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java
##########
@@ -481,7 +481,6 @@ private static void sync(Map<Long, TTablet> backendTablets, ListMultimap<Long, L
                             // 1. PUSH finished in BE but failed or not yet report to FE
                             // 2. repair for VERSION_INCOMPLETE finished in BE, but failed or not yet report to FE
                             replica.updateVersionInfo(backendVersion, backendVersionHash, dataSize, rowCount);
-                            replica.setBad(false);

Review comment:
       For reviewer:
   In the original design logic, when the status of a replica is bad, it cannot become not bad again.
   This is a clerical error and will cause the `admin set replica status` function to fail.




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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org