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 9bb22d480badec9220883b0df919de9481247745 Author: yujun <[email protected]> AuthorDate: Mon Jul 17 20:00:50 2023 +0800 [fix](clone) fix cannot further repair clone replica which miss version data (#21382) --- fe/fe-core/src/main/java/org/apache/doris/catalog/Tablet.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Tablet.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/Tablet.java index 078179b823..74f1c31cbf 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Tablet.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Tablet.java @@ -505,10 +505,14 @@ public class Tablet extends MetaObject implements Writable { } alive++; + // this replica is alive but version incomplete if (replica.getLastFailedVersion() > 0 || replica.getVersion() < visibleVersion) { - // this replica is alive but version incomplete + if (replica.needFurtherRepair() && backend.isScheduleAvailable()) { + needFurtherRepairReplica = replica; + } continue; } + aliveAndVersionComplete++; if (!backend.isScheduleAvailable()) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
