yangzhg commented on a change in pull request #8553:
URL: https://github.com/apache/incubator-doris/pull/8553#discussion_r831856022
##########
File path: fe/fe-core/src/main/java/org/apache/doris/clone/Rebalancer.java
##########
@@ -93,4 +101,20 @@ public Long getToDeleteReplicaId(TabletSchedCtx tabletCtx) {
public void updateLoadStatistic(Table<String, Tag, ClusterLoadStatistic>
statisticMap) {
this.statisticMap = statisticMap;
}
+
+ public void addPrioBackends(List<Backend> backends, long timeoutS) {
+ for (Backend backend : backends) {
+ prioBackends.put(backend.getId(), System.currentTimeMillis() +
timeoutS);
Review comment:
cache System.currentTimeMillis() outside for loop
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]