ozone icon indicating copy to clipboard operation
ozone copied to clipboard

HDDS-9941. Do not use heap buffer in KeyValueContainerCheck.verifyChecksum

Open chungen0126 opened this issue 7 months ago • 0 comments

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

chungen0126 avatar Jun 28 '24 07:06 chungen0126