Skip to content

Conversation

@swamirishi
Copy link
Contributor

What changes were proposed in this pull request?

Currently when RDBStoreCodecBufferIterator returns a keyValue to a caller the KeyValue may not be consistent and could have been modified when the next() value is invoked from the iterator. The codecBuffer returned from the first call may have been modified and thus also making this entire Iterator implementation not thread safe.

The proposal here is to have a pool of Buffers and return a closeable handle of KeyValue to the caller which would be only released when the handle to the codec buffers is released.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-12742

How was this patch tested?

Added unit test for the new implementation

…or prefix based iteration

Change-Id: I3acf410885571d0b26da9b89a801d9f2f9070e33
…sistency

Change-Id: Ieb7a356cde868208f197d55b21889a733575d1dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant