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

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


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 02aebd0b77e branch-3.1: [fix](missing version) not catchup is worse 
than lastFailed #50094 (#52322)
02aebd0b77e is described below

commit 02aebd0b77e37ec0fbb9dee7fda0273f9c7d3f3f
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jun 27 10:33:37 2025 +0800

    branch-3.1: [fix](missing version) not catchup is worse than lastFailed 
#50094 (#52322)
    
    Cherry-picked from #50094
    
    Co-authored-by: Yongqiang YANG <[email protected]>
---
 fe/fe-core/src/main/java/org/apache/doris/catalog/Tablet.java | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

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 ca7f51da823..ea76273e6df 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
@@ -318,16 +318,14 @@ public class Tablet extends MetaObject {
             if (replica.isBad()) {
                 continue;
             }
-
-            if (replica.getLastFailedVersion() > 0) {
-                mayMissingVersionReplica.add(replica);
-                continue;
-            }
-
             if (!replica.checkVersionCatchUp(visibleVersion, false)) {
                 notCatchupReplica.add(replica);
                 continue;
             }
+            if (replica.getLastFailedVersion() > 0) {
+                mayMissingVersionReplica.add(replica);
+                continue;
+            }
 
             Set<Long> thisBeAlivePaths = 
backendAlivePathHashs.get(replica.getBackendIdWithoutException());
             ReplicaState state = replica.getState();


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

Reply via email to