Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions be/src/vec/sink/vtablet_sink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,10 @@ void VNodeChannel::cancel(const std::string& cancel_msg) {
// But do we need brpc::StartCancel(call_id)?
_cancel_with_msg(cancel_msg);

if (_stub == nullptr) {
Copy link
Contributor

@cambyzju cambyzju Mar 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_stub is created in VNodeChannel::init, if _stub is null, it will set _is_closed to true.
We should not reach here normally.

If we do not find the root cause, please add some comments and logs here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was initially fixed in #30915 and later changed in #33006.
There is no more additional information in the latest Jira CIR-8301.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @cambyzju. We should not reach here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cancel() could be called when _inited = false, see #34897 (fixed in that PR)

return;
}

PTabletWriterCancelRequest request;
request.set_allocated_id(&_parent->_load_id);
request.set_index_id(_index_channel->_index_id);
Expand Down