Fail shard if IndexShard#storeStats runs into an IOException. Closes #29008#29078
Fail shard if IndexShard#storeStats runs into an IOException. Closes #29008#29078milan15 wants to merge 4 commits intoelastic:masterfrom
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: |
| try { | ||
| return store.stats(); | ||
| } catch (IOException e) { | ||
| failShard("Failing Shard as IOException was found.",e); |
There was a problem hiding this comment.
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?