yiguolei commented on code in PR #10501:
URL: https://github.com/apache/doris/pull/10501#discussion_r910567328
##########
be/src/vec/sink/vtablet_sink.cpp:
##########
@@ -426,6 +434,15 @@ Status VOlapTableSink::send(RuntimeState* state,
vectorized::Block* input_block)
if (findTabletMode == FindTabletMode::FIND_TABLET_EVERY_BATCH) {
_partition_to_tablet_map.clear();
}
+
+ //if pending bytes is more than 500M, wait
+ constexpr size_t MAX_PENDING_BYTES = 500 * 1024 * 1024;
+ if (get_pending_bytes() > MAX_PENDING_BYTES) {
+ while (get_pending_bytes() < MAX_PENDING_BYTES) {
+ std::this_thread::sleep_for(std::chrono::microseconds(500));
Review Comment:
I will remove these code. And add more check logic in next pr. This pr is
focused cherry-pick from 1.0.1
--
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]