From 534d9429336404a2dcd95d07e724be03ad3c1fa3 Mon Sep 17 00:00:00 2001 From: yujun Date: Thu, 5 Oct 2023 22:19:53 +0800 Subject: [PATCH] [improvement](tablet clone) impr further repair tablet sched priority (#25046) --- .../main/java/org/apache/doris/clone/TabletSchedCtx.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/clone/TabletSchedCtx.java b/fe/fe-core/src/main/java/org/apache/doris/clone/TabletSchedCtx.java index 86b252c12c..b4667f8069 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/clone/TabletSchedCtx.java +++ b/fe/fe-core/src/main/java/org/apache/doris/clone/TabletSchedCtx.java @@ -1221,7 +1221,11 @@ public class TabletSchedCtx implements Comparable { // repair tasks always prior than balance if (type == Type.BALANCE) { - value += 10 * 24 * 3600L; + value += 5 * 3600 * 1000L; // 5 hour + } + + if (tabletStatus == TabletStatus.NEED_FURTHER_REPAIR) { + value -= 3600 * 1000L; // 1 hour } return value;