yiguolei commented on code in PR #20771:
URL: https://github.com/apache/doris/pull/20771#discussion_r1250414418
##########
be/src/vec/sink/vtablet_sink.cpp:
##########
@@ -887,6 +909,17 @@ void VNodeChannel::cancel(const std::string& cancel_msg) {
request.release_id();
}
+bool VNodeChannel::is_pending_rpc_done() const {
+ return (_add_batches_finished || _cancelled) && open_partition_finished();
+}
+
+void VNodeChannel::try_pending_rpc_done() {
+ if (is_pending_rpc_done() && _pending_rpc) {
+ _parent->_running_channels_num--;
+ _pending_rpc = false;
Review Comment:
rename to _has_pending_rpc
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]