HorizonNet commented on a change in pull request #1074: HBASE-23350 Make 
compaction files cacheonWrite configurable based on threshold
URL: https://github.com/apache/hbase/pull/1074#discussion_r370673495
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java
 ##########
 @@ -288,6 +304,19 @@ public void enableCacheOnWrite() {
     this.cacheBloomsOnWrite = true;
   }
 
+  /**
+   * Disable cache on write including:
+   * cacheDataOnWrite
+   * cacheIndexesOnWrite
+   * cacheBloomsOnWrite
+   */
+  public void disableCacheOnWrite() {
+    this.cacheDataOnWrite = false;
+    this.cacheIndexesOnWrite = false;
+    this.cacheBloomsOnWrite = false;
+  }
+
 
 Review comment:
   Remove this additional empty line.

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