HappenLee commented on a change in pull request #3405:
URL: https://github.com/apache/incubator-doris/pull/3405#discussion_r416316769



##########
File path: be/src/exec/olap_scan_node.cpp
##########
@@ -702,8 +694,13 @@ Status OlapScanNode::start_scan_thread(RuntimeState* 
state) {
                 state, this, _olap_scan_node.is_preaggregation, 
_need_agg_finalize, *scan_range, scanner_ranges);
             _scanner_pool->add(scanner);
             _olap_scanners.push_back(scanner);
+
+            if (disk_set.find(scanner->scan_disk()) == disk_set.end()) {
+                disk_set.insert(scanner->scan_disk());
+            }
         }
     }
+    COUNTER_SET(_num_disks_accessed_counter, 
static_cast<int64_t>(disk_set.size()));

Review comment:
       We can know whether the tablet of a query is allocated on different 
disks to know whether is IO bottleneck in disk




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

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