-
Couldn't load subscription status.
- Fork 25.6k
Executing shard recovery in project context #130525
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
Conversation
|
Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing) |
| IndexShard indexShard = indexService.createShard(shardRouting, globalCheckpointSyncer, retentionLeaseSyncer); | ||
| indexShard.addShardFailureCallback(onShardFailure); | ||
| indexShard.startRecovery( | ||
| final CheckedRunnable<RuntimeException> recoveryRunnable = () -> indexShard.startRecovery( |
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.
Using RuntimeException for CheckedRunnable doesn't seem right. Maybe just inline the indexShard.startRecovery?
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.
Sure I inlined it. It is still an RuntimeException underlyingly. But at least we don't see it. I was trying to minimize the format changes. But it is pretty minimal either way.
|
@pxsalehi I could still use your approval on this stateful side of PR. Thanks! |
See title