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

Translog can delete valid .ckp file when views are closed after the translog #19035

Merged
merged 2 commits into from Jun 23, 2016

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Jun 22, 2016

There is simply a coding bug that only happens if translog views are closed
after the translog itself is closed. this can happen for instance if we hit
a disk full exception and try to repeatedly recover the translog. This will
cause a translog-N.ckp file to be deleted since the wrong generation is used
to generate the path to delete. This seems like a copy/past problem.

This bug doesn't affect 5.0

Relates to #16495

…ranslog

There is simply a coding bug that only happens if translog views are closed
after the translog itself is closed. this can happen for instance if we hit
a disk full exception and try to repeatedly recover the translog. This will
cause a translog-N.ckp file to be deleted since the wrong generation is used
to generate the path to delete. This seems like a copy/past problem.

This bug doesn't affect 5.0

Relates to elastic#16495
@bleskes
Copy link
Contributor

bleskes commented Jun 23, 2016

LGTM. good catch

@s1monw s1monw merged commit c38bc46 into elastic:2.x Jun 23, 2016
@s1monw s1monw deleted the fix_translog_deletes branch June 23, 2016 20:47
s1monw added a commit that referenced this pull request Jun 23, 2016
…ranslog (#19035)

There is simply a coding bug that only happens if translog views are closed
after the translog itself is closed. this can happen for instance if we hit
a disk full exception and try to repeatedly recover the translog. This will
cause a translog-N.ckp file to be deleted since the wrong generation is used
to generate the path to delete. This seems like a copy/past problem.

This bug doesn't affect 5.0

Relates to #16495
s1monw added a commit that referenced this pull request Jun 23, 2016
@clintongormley clintongormley added :Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. and removed :Translog :Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. v2.3.4 v2.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants