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

fix: Save the right offset in state file after file trucation #72

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

haojhcwa
Copy link
Contributor

Description of the issue

Currently, the save state will not decrease the offset after file has
trucated.

Description of changes

In this fix, we add a sequence number to offset, when file trucation
happens, the sequence number gets increased, and the save state logic
will reset the offset to the lower number

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

Added unit test

Currently, the save state will not decrease the offset after file has
trucated.

In this fix, we add a sequence number to offset, when file trucation
happens, the sequence number gets increased, and the save state logic
will reset the offset to the lower number
@yimuniao yimuniao merged commit fd96fe0 into aws:master Aug 20, 2020
sky333999 pushed a commit that referenced this pull request Jul 21, 2023
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