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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new ba4d01d93c8 [branch-2.1](hint) add detail for replica missing msg 
(#42546)
ba4d01d93c8 is described below

commit ba4d01d93c87dd398af27240537c10bee604e991
Author: yujun <yu.jun.re...@gmail.com>
AuthorDate: Tue Oct 29 22:47:41 2024 +0800

    [branch-2.1](hint) add detail for replica missing msg (#42546)
---
 .../src/main/java/org/apache/doris/clone/TabletScheduler.java    | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/clone/TabletScheduler.java 
b/fe/fe-core/src/main/java/org/apache/doris/clone/TabletScheduler.java
index 97c9be0e887..0b196f956b9 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/clone/TabletScheduler.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/clone/TabletScheduler.java
@@ -84,6 +84,7 @@ import java.util.Map;
 import java.util.Optional;
 import java.util.Queue;
 import java.util.Set;
+import java.util.stream.Collectors;
 
 /**
  * TabletScheduler saved the tablets produced by TabletChecker and try to 
schedule them.
@@ -1520,7 +1521,13 @@ public class TabletScheduler extends MasterDaemon {
         List<BePathLoadStatPair> allFitPaths =
                 !allFitPathsSameMedium.isEmpty() ? allFitPathsSameMedium : 
allFitPathsDiffMedium;
         if (allFitPaths.isEmpty()) {
-            throw new SchedException(Status.UNRECOVERABLE, "unable to find 
dest path for new replica");
+            List<String> backendsInfo = 
Env.getCurrentSystemInfo().getAllBackends().stream()
+                    .filter(be -> be.getLocationTag() == tag)
+                    .map(Backend::getDetailsForCreateReplica)
+                    .collect(Collectors.toList());
+            throw new SchedException(Status.UNRECOVERABLE, 
String.format("unable to find dest path for new replica"
+                    + " for replica allocation { %s } with tag %s storage 
medium %s, backends on this tag is: %s",
+                    tabletCtx.getReplicaAlloc(), tag, 
tabletCtx.getStorageMedium(), backendsInfo));
         }
 
         BePathLoadStatPairComparator comparator = new 
BePathLoadStatPairComparator(allFitPaths);


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

Reply via email to