chenxu14 commented on a change in pull request #909: HBASE-23355 Bypass the 
prefetch operation if HFiles are generated through flush or compaction
URL: https://github.com/apache/hbase/pull/909#discussion_r355246370
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/ReaderContext.java
 ##########
 @@ -39,15 +39,17 @@
   private final HFileSystem hfs;
   private final boolean primaryReplicaReader;
   private final ReaderType type;
+  private final boolean prefetchOnOpen;
 
   public ReaderContext(Path filePath, FSDataInputStreamWrapper fsdis, long 
fileSize,
-      HFileSystem hfs, boolean primaryReplicaReader, ReaderType type) {
 
 Review comment:
   Yes, use it to determin whether the prefetch operation is needed.
   Thanks for your review @ramkrish86 

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


With regards,
Apache Git Services

Reply via email to