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

refactor(store): synchronize Store writes #241

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Wondertan
Copy link
Member

@Wondertan Wondertan commented Jan 13, 2025

Previously Store had a fully async nature and a range of headers written via Append wasn't guaranteed to be immediately available for Get... operations. This PR addresses the issue and synchronize writes across Store methods, yet keeping writes non-blocking for underlying IO. That is, writes still not block on disk, but reads can access what's written immediately.

Likely is gonna be merged after #239 and is draft until then.

TODO:

  • Cleanup closing/restart logic
  • Add concurrency test case
  • Fix flaky test

@Wondertan Wondertan self-assigned this Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant