Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
In ByteBufferIOEngine , we have the assert:
@Override public void write(ByteBuffer srcBuffer, long offset) throws IOException { assert srcBuffer.hasArray(); bufferArray.putMultiple(offset, srcBuffer.remaining(), srcBuffer.array(), srcBuffer.arrayOffset()); } @Override public void write(ByteBuff srcBuffer, long offset) throws IOException { // When caching block into BucketCache there will be single buffer backing for this HFileBlock. // This will work for now. But from the DFS itself if we get DBB then this may not hold true. assert srcBuffer.hasArray(); bufferArray.putMultiple(offset, srcBuffer.remaining(), srcBuffer.array(), srcBuffer.arrayOffset()); }
Should remove the assert, and allow to write off-heap ByteBuff to bufferArray.
Attachments
Attachments
Issue Links
- breaks
-
HBASE-22651 ErrorProne issue in TestByteBufferArray
- Resolved
- links to