morningman commented on code in PR #11060:
URL: https://github.com/apache/doris/pull/11060#discussion_r935712255


##########
be/src/vec/exec/volap_scan_node.cpp:
##########
@@ -502,17 +377,18 @@ void VOlapScanNode::scanner_thread(VOlapScanner* scanner) 
{
     int64_t raw_bytes_read = 0;
     int64_t raw_bytes_threshold = config::doris_scanner_row_bytes;
     bool get_free_block = true;
+    bool reached_limit = false;
     int num_rows_in_block = 0;
 
     // Has to wait at least one full block, or it will cause a lot of schedule 
task in priority
     // queue, it will affect query latency and query concurrency for example 
ssb 3.3.
     while (!eos && raw_bytes_read < raw_bytes_threshold &&
            ((raw_rows_read < raw_rows_threshold && get_free_block) ||
             num_rows_in_block < _runtime_state->batch_size())) {
-        if (UNLIKELY(_transfer_done)) {
+        if (UNLIKELY(state->is_cancelled())) {
             eos = true;
             status = Status::Cancelled("Cancelled");
-            LOG(INFO) << "Scan thread cancelled, cause query done, maybe reach 
limit.";
+            LOG(INFO) << "Scan thread cancelled.";

Review Comment:
   I think this log can be removed.



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