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

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java
 ##########
 @@ -1137,7 +1146,13 @@ public StoreFileWriter createWriterInTmp(long 
maxKeyCount, Compression.Algorithm
           cacheOnWriteLogged = true;
         }
       } else {
-        writerCacheConf.setCacheDataOnWrite(false);
+        writerCacheConf.disableCacheOnWrite();
+        if (totalCompactedFileSize > 
cacheConf.getCacheCompactedBlocksOnWriteThreshold()) {
+          // checking condition once again for logging
+          LOG.debug("Setting data on write as false as total size of compacted 
files "
+            + totalCompactedFileSize + "is greater than cache compacted blocks 
on write threshold "
+            + cacheConf.getCacheCompactedBlocksOnWriteThreshold());
 
 Review comment:
   same here, use parameterized log with {}

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