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

[GATEWAY] copy translog file if rename fails after retries. #9980

Merged
merged 1 commit into from
Mar 4, 2015

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Mar 4, 2015

Today we ignore a translog file if the rename operation fails. This can be problematic
on windows if another process hodls on to the translog file. If we can't rename it we should
at least try to copy it since otherwise its content will just be lost.
This is a workaround for an already fixed issue in 2.0 since all translog files are write
once in 2.0 and renaming / copying is not needed anymore.

@kimchy
Copy link
Member

kimchy commented Mar 4, 2015

LGTM

Today we ignore a translog file if the rename operation fails. This can be problematic
on windows if another process hodls on to the translog file. If we can't rename it we should
at least try to copy it since otherwise its content will just be lost.
This is a workaround for an already fixed issue in 2.0 since all translog files are write
once in 2.0 and renaming / copying is not needed anymore.
@s1monw s1monw force-pushed the copy_translog_if_necessary branch from a8152b5 to 2fc81f2 Compare March 4, 2015 14:28
@s1monw s1monw merged commit 2fc81f2 into elastic:1.x Mar 4, 2015
@s1monw s1monw deleted the copy_translog_if_necessary branch March 5, 2015 12:58
@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. v1.4.5 v1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants