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

Cannot load truncated AOF files. #71

Closed
edwinhayes opened this issue Jan 18, 2021 · 2 comments
Closed

Cannot load truncated AOF files. #71

edwinhayes opened this issue Jan 18, 2021 · 2 comments

Comments

@edwinhayes
Copy link

If the AOF file is truncated such that the last entry is malformed, then readLoad() fails to load the entire file, making it impossible to recover the valid transactions other than the last still present in the file without manual intervention.

It would be preferable if either readLoad() just ignored the invalid tail of the file, or another function was provided to recover the file by making a truncated copy.

@tidwall
Copy link
Owner

tidwall commented Mar 18, 2021

Possible related issues:
tidwall/tile38#593
tidwall/tile38#600

@tidwall
Copy link
Owner

tidwall commented Mar 29, 2021

I pushed a new version that addresses this issue.

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

No branches or pull requests

2 participants