When decompressing an compressed block, we are also allocating HeapByteBuffer for the unpacked block. should allocate ByteBuff from the global ByteBuffAllocator, skimmed the code, the key point is, we need an ByteBuff decompress interface, not the following:
Not very high priority, let me make the block without compression to be offheap firstly.
HBASE-22005, I ignored the unit test:
1. TestLoadAndSwitchEncodeOnDisk ;
Need to resolve this issue and make those UT works fine.