openinx commented on a change in pull request #268: HBASE-22491 Separate the
heap HFileBlock and offheap HFileBlock because the heap block won't need refCnt
and save into prevBlocks list before shipping
URL: https://github.com/apache/hbase/pull/268#discussion_r289338766
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java
##########
@@ -763,7 +738,7 @@ public long heapSize() {
/**
* @return true to indicate the block is allocated from JVM heap, otherwise
from off-heap.
*/
- boolean isOnHeap() {
+ public boolean isOnHeap() {
return buf.hasArray();
Review comment:
Thought about this before, our ByteBuffAllocator won't allocate pooled heap
BB , also if allocate a offheap BB, then it must be a pooled one. That's to
say, heapBB = exclusiveBB, offheapBB = sharedBB. So if it's a heapBB, then
must be a exclusiveBB..
----------------------------------------------------------------
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