-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Snapshots should write out IndexMetaData after shard data #41581
Copy link
Copy link
Closed
Labels
:Distributed/Snapshot/RestoreAnything directly related to the `_snapshot/*` APIsAnything directly related to the `_snapshot/*` APIs>bug
Description
Snapshots currently first captures the current index metadata and only then writes out the shard data. This leaves room for mapping updates that have taken place after the index metadata was captured but before the shard data was written to not be taken into consideration when the index is restored. Data that was searchable under a certain key, suddenly isn't, and doing a simple update-by-query with no changes can lead to mapping updates. Possibly worse, the same index, when restored can have a mapping update that's incompatible with the existing data in the restored index.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Distributed/Snapshot/RestoreAnything directly related to the `_snapshot/*` APIsAnything directly related to the `_snapshot/*` APIs>bug
Type
Fields
Give feedbackNo fields configured for issues without a type.