Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add segmenting to write buffer and persistence to wal #24610

Closed
wants to merge 2 commits into from

Conversation

pauldix
Copy link
Member

@pauldix pauldix commented Jan 28, 2024

This moves the write buffer into its own directory in the crate. It puts writes into a segment, which are persisted into the WAL if it is configured. Writes are buffered up before committed to ensure we don't do file IO with every individual write.

This doesn't yet load data from the wal into the buffer, which will come in a follow on PR. The bootup routine will also need to use the persister to know which wal segments should be loaded into the buffer. Finally, the buffer will need to rotate and persist segments.

@pauldix pauldix added the v3 label Jan 28, 2024
@pauldix pauldix requested a review from mgattozzi January 28, 2024 22:40
This creates the WriteBufferFlusher and OpenBufferSegment. If a wal is passed into the buffer, data written into it will be persisted to the wal for the initialized segment id.
@pauldix
Copy link
Member Author

pauldix commented Feb 1, 2024

Moved this over to #24624 to unhose the git situation.

@pauldix pauldix closed this Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant