sanjeet006py commented on code in PR #7136:
URL: https://github.com/apache/hbase/pull/7136#discussion_r2190312631


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/ParallelSeekHandler.java:
##########
@@ -46,12 +51,25 @@ public ParallelSeekHandler(KeyValueScanner scanner, 
ExtendedCell keyValue, long
     this.keyValue = keyValue;
     this.readPoint = readPoint;
     this.latch = latch;
+    this.isScanMetricsEnabled = 
ThreadLocalServerSideScanMetrics.isScanMetricsEnabled();
+    this.bytesReadFromFs = 
ThreadLocalServerSideScanMetrics.getBytesReadFromFsCounter();
+    this.bytesReadFromBlockCache =
+      ThreadLocalServerSideScanMetrics.getBytesReadFromBlockCacheCounter();
   }
 
   @Override
   public void process() {
     try {
+      
ThreadLocalServerSideScanMetrics.setScanMetricsEnabled(isScanMetricsEnabled);
+      if (isScanMetricsEnabled) {
+        ThreadLocalServerSideScanMetrics.reset();
+      }
       scanner.seek(keyValue);

Review Comment:
   All the StoreFileScanners are placed at the row AtOrAfter the start row of 
the scan.



-- 
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: issues-unsubscr...@hbase.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to