Skip to content

[Feature Request] Upload remote index path for migrating indexes from docrep to remote #13302

@ashking94

Description

@ashking94

Is your feature request related to a problem? Please describe

We have introduced a new hash prefix strategy for remote store in #12567. With the new prefix strategy, we also need to upload the index paths. For new indexes, we have a running PR - #13150. However, based on my current understanding, for migration, this would not work since the current hook is only for new indexes.

Describe the solution you'd like

The hook that is beforeNewIndexUpload in IndexMetadataUploadListener needs to be updated or changed to a model where we would have the list of index metadata that needs to be updated along with their previous state of index metadata. We can then change the logic where it checks that the remoteCustomData is not present in previous state and present now. In such cases, we can upload the index path.

Related component

Storage:Remote

Describe alternatives you've considered

NA

Additional context

NA

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