You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by da...@apache.org on 2023/11/16 10:14:32 UTC

(doris) branch branch-2.0 updated: [fix](load) skip cancel already cancelled channels (#27109)

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 <ck...@apache.org>
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org