sollhui commented on code in PR #62661:
URL: https://github.com/apache/doris/pull/62661#discussion_r3479827116
##########
be/src/load/channel/tablets_channel.cpp:
##########
@@ -683,6 +728,169 @@ Status BaseTabletsChannel::_write_block_data(
return Status::OK();
}
+std::shared_ptr<std::mutex>
BaseTabletsChannel::_get_sender_partition_route_lock(
Review Comment:
This lock is needed for correctness within the same sender and partition:
current-tablet selection, the write, and the flush-triggered rotation must stay
ordered so concurrent packets do not all write using the same old current
tablet and then rotate repeatedly. I added comments in the header to make that
explicit.
--
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]