ozone
ozone copied to clipboard
HDDS-9941. Do not use heap buffer in KeyValueContainerCheck.verifyChecksum
What changes were proposed in this pull request?
KeyValueContainerCheck.verifyChecksum(..) allocates a heap buffer for reading a chunk file. It is better to use a direct buffer or memory mapped buffers.
We may also use the readData methods in ChunkUtils.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9941
How was this patch tested?
There are alrealy some tests for the changes in TestKeyValueContainerCheck
and TestChunkUtils