imay commented on a change in pull request #1143: Fix bug that balance task
always choose high usage path
URL: https://github.com/apache/incubator-doris/pull/1143#discussion_r283097095
##########
File path: fe/src/main/java/org/apache/doris/clone/TabletScheduler.java
##########
@@ -833,7 +833,8 @@ private RootPathLoadStatistic
chooseAvailableDestPath(TabletSchedCtx tabletCtx)
List<RootPathLoadStatistic> resultPaths = Lists.newArrayList();
BalanceStatus st = bes.isFit(tabletCtx.getTabletSize(),
tabletCtx.getStorageMedium(),
- resultPaths, true /* is supplement */);
+ resultPaths, tabletCtx.getTabletStatus() !=
TabletStatus.REPLICA_RELOCATING
+ /* if REPLICA_RELOCATING, than it is not a supplement task
*/);
Review comment:
```suggestion
/* if REPLICA_RELOCATING, then it is not a supplement
task */);
```
----------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]