MINOR:Remove explicit flushes from RocksDBStores#21871
Open
eduwercamacaro wants to merge 1 commit intoapache:trunkfrom
Open
MINOR:Remove explicit flushes from RocksDBStores#21871eduwercamacaro wants to merge 1 commit intoapache:trunkfrom
eduwercamacaro wants to merge 1 commit intoapache:trunkfrom
Conversation
…ts ColumnFamily. Also, these stores use a RocksDB atomic flush to guarantee consistency between the default and offsets ColumnFamilies. As described in KIP-1035, this new behavior enables RocksDB stores to avoid explicitly flushing the memtables to the SST files
nicktelford
approved these changes
Mar 25, 2026
bbejeck
approved these changes
Mar 30, 2026
Member
bbejeck
left a comment
There was a problem hiding this comment.
Thanks @eduwercamacaro - LGTM with one minor comment
|
|
||
| accessor.commit(dbAccessor, offsets); | ||
|
|
||
| verify(dbAccessor).flush(oldCF, newCF, offsetsCF); |
Member
There was a problem hiding this comment.
Should we add another assertion here? Otherwise it's an empty test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RocksDBStores now manage their own offsets by storing them in a
offsetsColumnFamily. Also, these stores use a RocksDB atomic flush toguarantee consistency between the default and offsets ColumnFamilies. As
described in KIP-1035, this new behavior enables RocksDB stores to avoid
explicitly flushing the memtables to the SST files.
This is a follow-up PR for #21578 we
can now implement this because KAFKA-19712 is solved.
Reviewers: NIck Telford nick.telford@gmail.com, Bill Bejeck
bbejeck@apache.org