imay commented on a change in pull request #1517: Fix bug that replicas of a
tablet may be located on same host
URL: https://github.com/apache/incubator-doris/pull/1517#discussion_r305276350
##########
File path: fe/src/main/java/org/apache/doris/clone/TabletScheduler.java
##########
@@ -745,12 +746,47 @@ private boolean
deleteReplicaWithLowerVersion(TabletSchedCtx tabletCtx, boolean
return false;
}
+ private boolean deleteReplicaOnSameHost(TabletSchedCtx tabletCtx, boolean
force) {
+ ClusterLoadStatistic statistic =
statisticMap.get(tabletCtx.getCluster());
+ if (statistic == null) {
+ return false;
+ }
+
+ // collect replicas of this tablet.
+ // host -> (replicas on same host)
+ Map<String, List<Replica>> hostBeIds = Maps.newHashMap();
Review comment:
```suggestion
Map<String, List<Replica>> hostToReplicas = Maps.newHashMap();
```
----------------------------------------------------------------
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]