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

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


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new bdf9c5f3857 [fix](load) skip cancel already cancelled channels (#27109)
bdf9c5f3857 is described below

commit bdf9c5f3857c7334b1dc496478d478fdb19195ce
Author: Kaijie Chen <[email protected]>
AuthorDate: Thu Nov 16 18:14:22 2023 +0800

    [fix](load) skip cancel already cancelled channels (#27109)
---
 be/src/vec/sink/vtablet_sink.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/vec/sink/vtablet_sink.cpp b/be/src/vec/sink/vtablet_sink.cpp
index 8d384469d30..dac90399dba 100644
--- a/be/src/vec/sink/vtablet_sink.cpp
+++ b/be/src/vec/sink/vtablet_sink.cpp
@@ -827,7 +827,7 @@ void VNodeChannel::try_send_block(RuntimeState* state) {
 }
 
 void VNodeChannel::cancel(const std::string& cancel_msg) {
-    if (_is_closed) {
+    if (_is_closed || _cancelled) {
         // skip the channels that have been canceled or close_wait.
         return;
     }


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

Reply via email to