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

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


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new ec8ff570ec6 branch-3.1: [Bug](exchange) avoid coredump coz nullptr 
#57640 (#57698)
ec8ff570ec6 is described below

commit ec8ff570ec60f746c2a1d8bd07739c9b3f52d359
Author: Pxl <[email protected]>
AuthorDate: Fri Nov 7 15:33:07 2025 +0800

    branch-3.1: [Bug](exchange) avoid coredump coz nullptr #57640 (#57698)
    
    pick from #57640
---
 be/src/pipeline/exec/exchange_sink_operator.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/be/src/pipeline/exec/exchange_sink_operator.cpp 
b/be/src/pipeline/exec/exchange_sink_operator.cpp
index cf1542dd286..04e23b82ac9 100644
--- a/be/src/pipeline/exec/exchange_sink_operator.cpp
+++ b/be/src/pipeline/exec/exchange_sink_operator.cpp
@@ -711,8 +711,10 @@ Status ExchangeSinkLocalState::close(RuntimeState* state, 
Status exec_status) {
         COUNTER_UPDATE(_wait_broadcast_buffer_timer, 
_broadcast_dependency->watcher_elapse_time());
     }
     for (size_t i = 0; i < _local_channels_dependency.size(); i++) {
-        COUNTER_UPDATE(_wait_channel_timer[i],
-                       _local_channels_dependency[i]->watcher_elapse_time());
+        if (_wait_channel_timer[i] && _local_channels_dependency[i]) {
+            COUNTER_UPDATE(_wait_channel_timer[i],
+                           
_local_channels_dependency[i]->watcher_elapse_time());
+        }
     }
     if (_sink_buffer) {
         _sink_buffer->update_profile(profile());


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

Reply via email to