-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
base: main
Are you sure you want to change the base?
Conversation
Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing) |
@@ -968,7 +970,7 @@ public void createShard( | |||
RecoveryState recoveryState = indexService.createRecoveryState(shardRouting, targetNode, sourceNode); | |||
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.
See title