This is an automated email from the ASF dual-hosted git repository.
dataroaring 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 25d75923dbf branch-3.0: [bug](cloud) Fix npe when show cluster load
statistic #50866 (#50992)
25d75923dbf is described below
commit 25d75923dbfb1229862fde8afd4e4ec78a8a112c
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat May 17 21:47:08 2025 +0800
branch-3.0: [bug](cloud) Fix npe when show cluster load statistic #50866
(#50992)
Cherry-picked from #50866
Co-authored-by: xy720 <[email protected]>
---
.../org/apache/doris/common/proc/ClusterLoadStatisticProcDir.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/common/proc/ClusterLoadStatisticProcDir.java
b/fe/fe-core/src/main/java/org/apache/doris/common/proc/ClusterLoadStatisticProcDir.java
index 1c623effc10..45655bead4a 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/common/proc/ClusterLoadStatisticProcDir.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/common/proc/ClusterLoadStatisticProcDir.java
@@ -49,8 +49,9 @@ public class ClusterLoadStatisticProcDir implements
ProcDirInterface {
LoadStatisticForTag loadStatisticForTag = Env.getCurrentEnv()
.getTabletScheduler().getStatisticMap().get(tag);
-
- loadStatisticForTag.getStatistic(medium).forEach(result::addRow);
+ if (loadStatisticForTag != null) {
+ loadStatisticForTag.getStatistic(medium).forEach(result::addRow);
+ }
return result;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]