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

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new c2ba27421ff (cloud) Print replicas when getReplicaByBackendId failed 
(#32007)
c2ba27421ff is described below

commit c2ba27421ff9b795ca9e237ca730a1573fc5e61a
Author: Gavin Chou <gavineaglec...@gmail.com>
AuthorDate: Fri Mar 8 20:08:52 2024 +0800

    (cloud) Print replicas when getReplicaByBackendId failed (#32007)
---
 fe/fe-core/src/main/java/org/apache/doris/master/MasterImpl.java | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/master/MasterImpl.java 
b/fe/fe-core/src/main/java/org/apache/doris/master/MasterImpl.java
index 12f1600cd3c..e9c850d0566 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/master/MasterImpl.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/master/MasterImpl.java
@@ -29,6 +29,7 @@ import org.apache.doris.catalog.Replica;
 import org.apache.doris.catalog.Tablet;
 import org.apache.doris.catalog.TabletInvertedIndex;
 import org.apache.doris.catalog.TabletMeta;
+import org.apache.doris.cloud.catalog.CloudTablet;
 import org.apache.doris.common.MetaNotFoundException;
 import org.apache.doris.load.DeleteJob;
 import org.apache.doris.load.loadv2.SparkLoadJob;
@@ -468,8 +469,12 @@ public class MasterImpl {
         }
         Replica replica = tablet.getReplicaByBackendId(backendId);
         if (replica == null) {
-            LOG.warn("could not find replica with backend {} in tablet {} in 
rollup index {} ",
-                    backendId, tabletId, indexId);
+            String reps = "";
+            for (Replica r : tablet.getReplicas()) {
+                reps += r.toString();
+            }
+            LOG.warn("could not find replica with backend {} in tablet {} in 
rollup index, is cloud: {}, replicas: {}",
+                    backendId, tabletId, indexId, tablet instanceof 
CloudTablet, reps);
         }
         return replica;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to