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 c2b28f8abe8 [fix](load) fix repeatedly open tablets_channel when
tablets_channel already cancelled (#34442) (#34555)
c2b28f8abe8 is described below
commit c2b28f8abe8f19be5f937c65d22f56e507a48520
Author: Xin Liao <[email protected]>
AuthorDate: Wed May 8 21:56:54 2024 +0800
[fix](load) fix repeatedly open tablets_channel when tablets_channel
already cancelled (#34442) (#34555)
---
be/src/runtime/tablets_channel.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/be/src/runtime/tablets_channel.cpp
b/be/src/runtime/tablets_channel.cpp
index 5293200d532..b334ff4ca16 100644
--- a/be/src/runtime/tablets_channel.cpp
+++ b/be/src/runtime/tablets_channel.cpp
@@ -96,8 +96,9 @@ void TabletsChannel::_init_profile(RuntimeProfile* profile) {
Status TabletsChannel::open(const PTabletWriterOpenRequest& request) {
std::lock_guard<std::mutex> l(_lock);
- if (_state == kOpened) {
- // Normal case, already open by other sender
+ // if _state is kOpened, it's a normal case, already open by other sender
+ // if _state is kFinished, already cancelled by other sender
+ if (_state == kOpened || _state == kFinished) {
return Status::OK();
}
LOG(INFO) << "open tablets channel: " << _key << ", tablets num: " <<
request.tablets().size()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]