yangzhg commented on code in PR #9803:
URL: https://github.com/apache/incubator-doris/pull/9803#discussion_r883309248


##########
be/src/exec/tablet_sink.cpp:
##########
@@ -515,14 +519,27 @@ void NodeChannel::try_send_batch(RuntimeState* state) {
         CHECK(_pending_batches_num == 0) << _pending_batches_num;
     }
 
-    if (_parent->_transfer_data_by_brpc_attachment && request.has_row_batch()) 
{
-        request_row_batch_transfer_attachment<PTabletWriterAddBatchRequest,
-                                              
ReusableClosure<PTabletWriterAddBatchResult>>(
+    if (_tuple_data_buffer_ptr != nullptr && _tuple_data_buffer.size() != 0 &&
+        request.has_row_batch()) {
+        request_embed_attachment_contain_tuple<PTabletWriterAddBatchRequest,
+                                               
ReusableClosure<PTabletWriterAddBatchResult>>(
                 &request, _tuple_data_buffer, _add_batch_closure);
+        std::string brpc_url;
+        brpc_url = "http://"; + _node_info.host + ":" + 
std::to_string(_node_info.brpc_port);

Review Comment:
   ```suggestion
           brpc_url = fmt::format("http://{}:{}";, _node_info.host, 
_node_info.brpc_port);
   ```



-- 
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

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

Reply via email to