This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 4dd86b39b46b0400ea8d3841e1616eaf8d0de695
Author: yujun <[email protected]>
AuthorDate: Thu Oct 5 22:19:53 2023 +0800

    [improvement](tablet clone) impr further repair tablet sched priority 
(#25046)
---
 fe/fe-core/src/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 f3c03b3e1e5..db658271822 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
@@ -1185,7 +1185,11 @@ public class TabletSchedCtx implements 
Comparable<TabletSchedCtx> {
 
         // 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;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to