[Remote Store] Remove redundant uploads while restoring data from snapshot #11044
Labels
bug
Something isn't working
good first issue
Good for newcomers
Storage:Durability
Issues and PRs related to the durability framework
Storage:Remote
Describe the bug
If we restore a remote store backed index from an interop enabled repository, we are uploading all the data in remote. This is not needed when there is preexisting data in remote store. There can be preexisting data , when the index is closed and we try to restore it back in time from a snapshot.
OpenSearch/server/src/main/java/org/opensearch/index/shard/IndexShard.java
Lines 4916 to 4922 in aa0fddb
Given that we have enabled upload during snapshot restore, there is no need to copy the segment files manually to
remoteDirectory
.The text was updated successfully, but these errors were encountered: