-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Fail shard if IndexShard#storeStats runs into an IOException. Closes #29008 #29078
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
1 similar comment
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
@bleskes sorry to take out some of your time. just wanted to check if you had a chance to look at this. |
@milan15 I turned out more complicated than I hoped, but here's a patch that will give you a test you can start tweaking:
|
@@ -933,6 +933,7 @@ public StoreStats storeStats() { | |||
try { | |||
return store.stats(); | |||
} catch (IOException e) { | |||
failShard("Failing Shard as IOException was found.",e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you change the message to the same one used in the exception we throw?
@bleskes thanks! 👍 i will start playing with test you provided. |
@milan15 are you still planning to pick this up? If not, no problem - we can take over and make this happen. |
@milan15 a friendly reminder :) |
@bleskes Sorry for not responding quick! got super busy among other things. i did spend couple of weekends on this, but was not able to get anywhere. would be awesome if someone can take it up. |
gradle check
?