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

Better handle data loss in first chunk #153

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

kjnilsson
Copy link
Contributor

When data is lost in the first chunk ever written subsequent inits would detect this in the index correctly but position the segment at eof which is incorrect. This fix addressed that by ensuring the empty log case is handled correctly.

@kjnilsson kjnilsson requested a review from mkuratczyk December 1, 2023 11:45
@michaelklishin michaelklishin added this to the 1.7.0 milestone Dec 1, 2023
When data is lost in the first chunk ever written subsequent inits
would detect this in the index correctly but position the segment
at eof which is incorrect. This fix addressed that by ensuring the
empty log case is handled correctly.
@kjnilsson kjnilsson force-pushed the first-chunk-data-loss-fix branch from ab40d3d to 1f6733e Compare December 1, 2023 16:20
@michaelklishin michaelklishin merged commit 023626a into main Dec 1, 2023
6 checks passed
@michaelklishin michaelklishin deleted the first-chunk-data-loss-fix branch December 1, 2023 18:31
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.

2 participants