You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by zc...@apache.org on 2026/04/16 13:21:32 UTC

(doris) branch master updated: [Exec](status) materialization_opertor return the error status by row_id_fetcher (#62513)

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

zclll 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 817e5f5daa5 [Exec](status) materialization_opertor return the error status by row_id_fetcher (#62513)
817e5f5daa5 is described below

commit 817e5f5daa51227944e004915a88e8da99d9c306
Author: HappenLee <ha...@selectdb.com>
AuthorDate: Thu Apr 16 21:21:22 2026 +0800

    [Exec](status) materialization_opertor return the error status by row_id_fetcher (#62513)
    
    Problem Summary:
    - MaterializationOperator did not check
    rpc_struct.response.status().status_code after row_id_fetcher RPCs, so
    backend-side errors were not propagated to the caller.
    - This change verifies the RPC response status; if status_code != 0, it
    constructs an error message containing backend id, status_code,
    error_msg and the Materialization Sink node id, and returns
    Status::InternalError so the error is reported upstream.
---
 be/src/exec/operator/materialization_opertor.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/be/src/exec/operator/materialization_opertor.cpp b/be/src/exec/operator/materialization_opertor.cpp
index 89e3dfd261c..b8558218a4c 100644
--- a/be/src/exec/operator/materialization_opertor.cpp
+++ b/be/src/exec/operator/materialization_opertor.cpp
@@ -416,6 +416,12 @@ Status MaterializationOperator::push(RuntimeState* state, Block* in_block, bool
                         " target_backend_id:" + std::to_string(backend_id);
                 return Status::InternalError(error_text);
             }
+            if (rpc_struct.response.status().status_code() != 0) {
+                Status st = Status::create(rpc_struct.response.status());
+                st.append(fmt::format(", Backend:{}, Materialization Sink node id:{}", backend_id,
+                                      node_id()));
+                return st;
+            }
             rpc_struct.cntl->Reset();
         }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org