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

Rethrow exception during recovery finalization even if source is not broken #12667

Merged

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Aug 5, 2015

Today we miss to throw / rethrow an recovery exception if it happens during
the finalization of phase 1 if the source files are not affected. Even worse
this can cause some dataloss if the reason for this exception is a failure of
deleting a corruption marker or similar pre-existing corruptions since we continue
with the recovery and mark the target shared as started which will in-turn open
an engine with an empty index.

@s1monw s1monw added >bug v2.0.0-beta1 :Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. v1.7.2 v1.6.3 labels Aug 5, 2015
@jpountz jpountz changed the title Rethrow exception during recovery finalization even if source if not broken Rethrow exception during recovery finalization even if source is not broken Aug 5, 2015
@jpountz
Copy link
Contributor

jpountz commented Aug 5, 2015

LGTM
But this part of the code is not really my cup of tea, so probably needs another review.

@s1monw s1monw added the review label Aug 5, 2015
@s1monw
Copy link
Contributor Author

s1monw commented Aug 5, 2015

@kimchy @bleskes can you take a look

@kimchy
Copy link
Member

kimchy commented Aug 5, 2015

LGTM

…broken

Today we miss to throw / rethrow an recovery exception if it happens during
the finalization of phase 1 if the source files are not affected. Even worse
this can cause some dataloss if the reason for this exception is a failure of
deleting a corruption marker or similar pre-existing corruptions since we continue
with the recovery and mark the target shared as started which will in-turn open
an engine with an empty index.
@s1monw s1monw force-pushed the rethrow_exception_during_finalization branch from 85766a5 to abf763c Compare August 5, 2015 18:44
@s1monw s1monw merged commit abf763c into elastic:master Aug 5, 2015
@s1monw
Copy link
Contributor Author

s1monw commented Aug 5, 2015

pushed also to 1.6 and 1.7

@s1monw s1monw deleted the rethrow_exception_during_finalization branch August 5, 2015 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. v1.6.3 v1.7.2 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants