You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2019/12/09 03:02:08 UTC

[GitHub] [hbase] chenxu14 commented on a change in pull request #909: HBASE-23355 Bypass the prefetch operation if HFiles are generated through flush or compaction

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:
users@infra.apache.org


With regards,
Apache Git Services