yangzhg commented on a change in pull request #6916:
URL: https://github.com/apache/incubator-doris/pull/6916#discussion_r739925901



##########
File path: be/src/exprs/runtime_filter_rpc.cpp
##########
@@ -39,7 +39,12 @@ struct IRuntimeFilter::rpc_context {
 Status IRuntimeFilter::push_to_remote(RuntimeState* state, const 
TNetworkAddress* addr) {
     DCHECK(is_producer());
     DCHECK(_rpc_context == nullptr);
-    PBackendService_Stub* stub = 
state->exec_env()->brpc_stub_cache()->get_stub(*addr);
+    std::shared_ptr<PBackendService_Stub> stub(
+            state->exec_env()->brpc_stub_cache()->get_stub(*addr));
+    if (!stub) {
+        LOG(WARNING) << "Get rpc stub failed, host=" << addr->hostname << ", 
port=" << addr->port;
+        return Status::InternalError("get rpc stub failed");

Review comment:
       done




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



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

Reply via email to