Skip to content

Commit

Permalink
[fix](load) skip cancel already cancelled channels (apache#27111)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijchen authored and 胥剑旭 committed Dec 14, 2023
1 parent bf21299 commit 297b3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/vec/sink/writer/vtablet_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ void VNodeChannel::_add_block_failed_callback(bool is_last_rpc) {
}

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;
}
Expand Down

0 comments on commit 297b3aa

Please sign in to comment.