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
The following commit(s) were added to refs/heads/branch-2.0 by this push: new 61a0bcd5e67 [fix](tablet sched) fix sched delete stale remain replica (#27050) (#27179) 61a0bcd5e67 is described below commit 61a0bcd5e678e92cc710c7d251d62ad2edd2850b Author: yujun <yu.jun.re...@gmail.com> AuthorDate: Sat Nov 18 10:16:08 2023 +0800 [fix](tablet sched) fix sched delete stale remain replica (#27050) (#27179) --- fe/fe-core/src/main/java/org/apache/doris/clone/TabletScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/clone/TabletScheduler.java b/fe/fe-core/src/main/java/org/apache/doris/clone/TabletScheduler.java index a286e8bb5f7..80aa8da0f71 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/clone/TabletScheduler.java +++ b/fe/fe-core/src/main/java/org/apache/doris/clone/TabletScheduler.java @@ -1077,7 +1077,7 @@ public class TabletScheduler extends MasterDaemon { List<Replica> replicas = tabletCtx.getTablet().getReplicas(); boolean otherCatchup = replicas.stream().anyMatch( - r -> r.getId() != replica.getId() + r -> r != replica && (r.getVersion() > replica.getVersion() || (r.getVersion() == replica.getVersion() && r.getLastFailedVersion() < 0))); if (!otherCatchup) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org