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

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


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

commit 7e3ff0723ac0db162b17cb5d0555d27495f8d69a
Author: Yongqiang YANG <[email protected]>
AuthorDate: Thu Jun 26 22:06:11 2025 +0800

    [fix](missing version) not catchup is worse than lastFailed (#50094) 
(#52382)
    
    pick #50094
---
 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