yangzhg commented on a change in pull request #6916:
URL: https://github.com/apache/incubator-doris/pull/6916#discussion_r739933439
##########
File path: be/src/exec/tablet_sink.cpp
##########
@@ -368,6 +370,10 @@ void NodeChannel::try_send_batch() {
if (row_batch->num_rows() > 0) {
SCOPED_ATOMIC_TIMER(&_serialize_batch_ns);
row_batch->serialize(request.mutable_row_batch());
+ if (request.row_batch().ByteSizeLong() >=
double(config::brpc_max_body_size) * 0.95f) {
Review comment:
`row_batch()` only contains primitive types, so there is no problem of
recursive calls. When it fails because the data sent is too large, it will only
report reset by peer errors. It is difficult to determine the specific reason.
--
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]