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 f8670a4c2b6 [chore](load) optimize the display order of show load
(#56513)
f8670a4c2b6 is described below
commit f8670a4c2b69883d754a1aa90aa96e0949912536
Author: hui lai <[email protected]>
AuthorDate: Sun Sep 28 22:09:11 2025 +0800
[chore](load) optimize the display order of show load (#56513)
### What problem does this PR solve?
Optimize the display order of show load.
before:
```
JobDetails: {"Unfinished
backends":{"bb0d64567954f25-b35d35a4b204a776":[]},"ScannedRows":5,"TaskNumber":1,"LoadBytes":156,"All
backends":{"bb0d64567954f25-b35d35a4b204a776":[1754377661179]},"FileNumber":0,"FileSize":0}
```
now:
```
JobDetails:
{"ScannedRows":5,"LoadBytes":156,"FileNumber":0,"FileSize":0,"TaskNumber":1,"Unfinished
backends":[],"All backends":[1754377661179]}
```
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
---
.../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]