-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Add extension points to remediate index metadata in during snapshot restore #131706
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?
Add extension points to remediate index metadata in during snapshot restore #131706
Conversation
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
Hi @jbaiera, I've created a changelog YAML for you. |
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.
Production change seems fine to me. However I don't think SnapshotResiliencyTests
are quite the right place for this. Instead, could we add a test case to RestoreSnapshotIT
(or maybe another AbstractSnapshotIntegTestCase
?) covering this specific change. I'd want us to be injecting the transformer via a plugin (i.e. overriding org.elasticsearch.test.ESIntegTestCase#nodePlugins
).
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.
Oh yes also this is a very temporary change right? We can drop it as soon as all the affected snapshots have expired. It'd be worth mentioning this in the javadocs.
|
||
import org.elasticsearch.cluster.metadata.IndexMetadata; | ||
|
||
public interface IndexMetadataRestoreTransformer { |
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 add javadocs for this interface?
Adds a new SPI to allow plugins to hook into the snapshot restore process in order to remediate index metadata before accepting it into the cluster state.