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 63f3d2e6923 branch-4.0: [Fix](fe) Fix NPE in
`OlapTableSink.createPaloNodesInfo` due to concurrent drop backend #58999
(#59057)
63f3d2e6923 is described below
commit 63f3d2e69230135023ff3ab3252b0a96c6cf783e
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Dec 16 12:43:22 2025 +0800
branch-4.0: [Fix](fe) Fix NPE in `OlapTableSink.createPaloNodesInfo` due to
concurrent drop backend #58999 (#59057)
Cherry-picked from #58999
Co-authored-by: bobhan1 <[email protected]>
---
fe/fe-core/src/main/java/org/apache/doris/planner/OlapTableSink.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/planner/OlapTableSink.java
b/fe/fe-core/src/main/java/org/apache/doris/planner/OlapTableSink.java
index 3e51feb703c..72e244d3f1f 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/OlapTableSink.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/OlapTableSink.java
@@ -858,6 +858,9 @@ public class OlapTableSink extends DataSink {
SystemInfoService systemInfoService = Env.getCurrentSystemInfo();
for (Long id : systemInfoService.getAllBackendIds(false)) {
Backend backend = systemInfoService.getBackend(id);
+ if (backend == null) {
+ continue;
+ }
nodesInfo.addToNodes(new TNodeInfo(backend.getId(), 0,
backend.getHost(), backend.getBrpcPort()));
}
return nodesInfo;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]