-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
Relax error handling in transport disk usage API #84774
Conversation
Pinging @elastic/es-search (Team:Search) |
Hi @dnhatn, I've created a changelog YAML for you. |
@@ -89,9 +90,12 @@ protected AnalyzeDiskUsageShardResponse shardOperation(AnalyzeDiskUsageShardRequ | |||
final CancellableTask cancellableTask = (CancellableTask) task; | |||
final Runnable checkForCancellation = cancellableTask::ensureNotCancelled; | |||
final IndexShard shard = indicesService.indexServiceSafe(shardId.getIndex()).getShard(shardId.id()); | |||
shard.store().incRef(); |
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.
Should we move this to the InternalEngine instead?
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.
I've opened #84776 for this.
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.
I can't really comment on the code because I don't know the area but it does seem to fix my problem somewhat.
Now I'm getting rejected execution exceptions, but that's better!
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.
Now I'm pretty sure I can approve this one!
Thanks Nik! |
Relax the failure handling to cover other exceptions such as BroadcastShardOperationFailedException.
Relax the failure handling to cover other exceptions such as BroadcastShardOperationFailedException.
Relax the failure handling to cover other exceptions such as BroadcastShardOperationFailedException.
An assertion was tripped while @nik9000 was integrating the disk usage API to Rally.