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

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


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new c65595029ef branch-4.0: [chore](load) optimize the display order of 
show load #56513 (#56597)
c65595029ef is described below

commit c65595029ef238b8888823a2a76a4b50d936a175
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Sep 29 10:00:11 2025 +0800

    branch-4.0: [chore](load) optimize the display order of show load #56513 
(#56597)
    
    Cherry-picked from #56513
    
    Co-authored-by: hui lai <[email protected]>
---
 .../java/org/apache/doris/load/loadv2/LoadStatistic.java | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/load/loadv2/LoadStatistic.java 
b/fe/fe-core/src/main/java/org/apache/doris/load/loadv2/LoadStatistic.java
index 58137d34886..cf9e51b1f2a 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/load/loadv2/LoadStatistic.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/load/loadv2/LoadStatistic.java
@@ -28,7 +28,9 @@ import com.google.gson.Gson;
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
 
+import java.util.ArrayList;
 import java.util.HashMap;
+import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -140,15 +142,23 @@ public class LoadStatistic {
         for (long bytes : loadBytes.values()) {
             totalBytes += bytes;
         }
+        ArrayList<Long> unfinishedBackendIdsList = new ArrayList<>();
+        for (Map.Entry<TUniqueId, List<Long>> entry : 
unfinishedBackendIds.entrySet()) {
+            unfinishedBackendIdsList.addAll(entry.getValue());
+        }
+        ArrayList<Long> allBackendIdsList = new ArrayList<>();
+        for (Map.Entry<TUniqueId, List<Long>> entry : 
allBackendIds.entrySet()) {
+            allBackendIdsList.addAll(entry.getValue());
+        }
 
-        Map<String, Object> details = Maps.newHashMap();
+        Map<String, Object> details = new LinkedHashMap<>();
         details.put("ScannedRows", total);
         details.put("LoadBytes", totalBytes);
         details.put("FileNumber", fileNum);
         details.put("FileSize", totalFileSizeB);
         details.put("TaskNumber", counterTbl.rowMap().size());
-        details.put("Unfinished backends", 
getPrintableMap(unfinishedBackendIds));
-        details.put("All backends", getPrintableMap(allBackendIds));
+        details.put("Unfinished backends", unfinishedBackendIdsList);
+        details.put("All backends", allBackendIdsList);
         Gson gson = new Gson();
         return gson.toJson(details);
     }


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

Reply via email to