gavinchou commented on code in PR #30432:
URL: https://github.com/apache/doris/pull/30432#discussion_r1468293006


##########
be/src/http/action/stream_load.cpp:
##########
@@ -351,6 +354,11 @@ void StreamLoadAction::on_chunk_data(HttpRequest* req) {
         ctx->receive_bytes += remove_bytes;
     }
     ctx->read_data_cost_nanos += (MonotonicNanos() - start_read_data_time);
+    int64_t last_receive_and_read_data_cost_nanos = 
ctx->receive_and_read_data_cost_nanos;
+    ctx->receive_and_read_data_cost_nanos =
+            MonotonicNanos() - last_receive_and_read_data_cost_nanos;
+    g_stream_load_receive_data_latency
+            << ctx->receive_and_read_data_cost_nanos - 
ctx->read_data_cost_nanos;

Review Comment:
   latency shoud be in microseconds



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

Reply via email to