Skip to content

Check if the index can be opened and is not corrupted on state listing#11269

Merged
s1monw merged 1 commit intoelastic:masterfrom
s1monw:check_index_on_gatway_listing
May 21, 2015
Merged

Check if the index can be opened and is not corrupted on state listing#11269
s1monw merged 1 commit intoelastic:masterfrom
s1monw:check_index_on_gatway_listing

Conversation

@s1monw
Copy link
Copy Markdown
Contributor

@s1monw s1monw commented May 20, 2015

We fetch the state version to find the right shard to be started as
the primary. This can return a valid shard state even if the shard is
corrupted and can't even be opened. This commit adds best effort detection
for this scenario and returns an invalid version for the shard if it's corrupted

Closes #11226

@s1monw
Copy link
Copy Markdown
Contributor Author

s1monw commented May 20, 2015

@kimchy can you look

@s1monw s1monw force-pushed the check_index_on_gatway_listing branch from 026c98c to b4987d3 Compare May 20, 2015 20:32
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cat we add a trace log here with the exception? Thinking it might be helpful to be able to know why...

@bleskes
Copy link
Copy Markdown
Contributor

bleskes commented May 21, 2015

LGTM (left two minor comments).

@s1monw
Copy link
Copy Markdown
Contributor Author

s1monw commented May 21, 2015

pushed a new commit - I will push that to master soon

We fetch the state version to find the right shard to be started as
the primary. This can return a valid shard state even if the shard is
corrupted and can't even be opened. This commit adds best effort detection
for this scenario and returns an invalid version for the shard if it's corrupted

Closes elastic#11226
@s1monw s1monw force-pushed the check_index_on_gatway_listing branch from 3d911f0 to 4cb21d0 Compare May 21, 2015 07:52
@s1monw s1monw merged commit 4cb21d0 into elastic:master May 21, 2015
@s1monw s1monw removed the review label May 21, 2015
@clintongormley clintongormley added :Core/Infra/Core Core issues without another label :Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. and removed :Core/Infra/Core Core issues without another label labels May 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. >enhancement v1.6.0 v2.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CorruptedFileTest#testReplicaCorruption fails

3 participants