[fix](tablet sched) fix sched delete stale remain replica (#27050)

This commit is contained in:
yujun
2023-11-15 21:26:22 +08:00
committed by GitHub
parent 10ee48bb6f
commit 76d530e349

View File

@ -1092,7 +1092,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) {