[Remote cluster state] Few custom metadata not getting persisted on storage which dont support async write. #10697
Labels
bug
Something isn't working
Cluster Manager
Storage:Remote
Storage
Issues and PRs relating to data and metadata storage
v2.12.0
Issues and PRs related to version 2.12.0
Describe the bug
We rely on
writeAsync
method of ChecksumBlobStoreFormat to write the global metadata to remote store.writeAsync
method internally calls thewrite
method for the cases where async write is not supported. In write method we have hard coded the Snapshot context, so few of the custom metadata will not be persisted in remote store for the store where async write is not supported.OpenSearch/server/src/main/java/org/opensearch/repositories/blobstore/ChecksumBlobStoreFormat.java
Line 174 in e942483
Fix
We will need to expose XContentContext parms in write method as well and pass the context of remote store from
writeAsync
method towrite
method.Meta issue: #10523
The text was updated successfully, but these errors were encountered: