szetszwo opened a new pull request, #4813: URL: https://github.com/apache/ozone/pull/4813
## What changes were proposed in this pull request? For getting a value from DB, the value size is unknown when allocating a buffer. Currently, we set the exact capacity in buffer allocation and, if the capacity is too small, reallocate a new buffer. We should use an adjustable buffer and try to adjust the capacity if it is too small. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-8741 ## How was this patch tested? By existing `TestRDBTableStore.testGetByteBuffer()`: Before this change, it will show some "increaseBufferSize" messages. After this change, the messages are gone since it will adjust the capacity instead of the allocating new buffers. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
