chenxu14 commented on a change in pull request #479: HBASE-22802 Avoid temp 
ByteBuffer allocation in FileIOEngine#read
URL: https://github.com/apache/hbase/pull/479#discussion_r313478218
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java
 ##########
 @@ -689,7 +691,7 @@ private void freeEntireBuckets(int 
completelyFreeBucketsNeeded) {
       // this set is small around O(Handler Count) unless something else is 
wrong
       Set<Integer> inUseBuckets = new HashSet<>();
       backingMap.forEach((k, be) -> {
-        if (be.isRpcRef()) {
+        if (ioEngine.usesSharedMemory() && be.isRpcRef()) {
 
 Review comment:
   make sense

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


With regards,
Apache Git Services

Reply via email to