cambyzju commented on code in PR #11925:
URL: https://github.com/apache/doris/pull/11925#discussion_r949924378
##########
be/src/exec/tablet_sink.cpp:
##########
@@ -346,6 +331,23 @@ Status NodeChannel::add_row(BlockRow& block_row, int64_t
tablet_id) {
return Status::OK();
}
+void NodeChannel::_sleep_if_memory_exceed() {
+ size_t begin_us = _mem_exceeded_block_ns;
+ while (!_cancelled && _pending_batches_bytes > _max_pending_batches_bytes)
{
+ SCOPED_ATOMIC_TIMER(&_mem_exceeded_block_ns);
+ SleepFor(MonoDelta::FromMilliseconds(10));
+ if (_mem_exceeded_block_ns - begin_us > 5000000) {
Review Comment:
a little confused: ns - us
--
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]