Skip to content

[Remote Store] Update shallow snapshot flows to support new path types and hash algorithm #12987

@ashking94

Description

@ashking94

Is your feature request related to a problem? Please describe

With optimised prefix pattern for remote store path (as mentioned in #12567), we need to ensure that we are able to allow indexes to use the optimised remote store path type and at the same time be able to resolve the existing prefix pattern (Fixed remote store path type) during snapshots and restores.

Describe the solution you'd like

We have updated Snapshots and it's restore after introducing shallow snapshots with remote store. Due to the changes in the blob store path for different type of data, it becomes important that we keep track of the same in shallow snapshot metadata since the snapshot can be restored outside of the life of an index (meaning that the cluster manager holds no information about the index itself). I propose the solution where we will update the shallow snapshot metadata file that will keep track of the remote store type and hash algorithm so that we can reuse this information during times of 1. restore 2. clone 3. cleaning up remote store data on account of snapshot deletion when there are no more lock files present for the same.

Related component

Storage:Performance

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Done

Status

Planned work items

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions