zxealous opened a new issue, #19204: URL: https://github.com/apache/doris/issues/19204
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version 1.2, master ### What's Wrong? Broker load slows down and importing 2G data takes nearly 3 hours. Load process: In func PlanFragmentExecutor::open_vectorized_internal(), Single threaded loop usage function `get_vectorized_internal()` read data and send by `_sink->send()`, `_sink->send()` will call `VNodeChannel::add_block`. In `VNodeChannel::add_block`, if `_pending_batches_bytes > _max_pending_batches_bytes` the thread will be always sleep and do nothing, until `_pending_batches_bytes` <= `_max_pending_batches_bytes`, So, if one NodeChannel's `_pending_batches_bytes` is full, the thread will always sleep, even if other NodeChannel's `_pending_batches_bytes` is not full. `_pending_batches_bytes` is full because of the method PInternalServiceImpl::tablet_writer_add_block() has not completed transmitting data, and we found the reason of transmit data need too long time is MemTable::shrink_memtable_by_agg() called in DeltaWriter::write is time-consuming, MemTable::shrink_memtable_by_agg() is synchronous. ### What You Expected? work well ### How to Reproduce? _No response_ ### Anything Else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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: commits-unsubscr...@doris.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org