Skip to content

Commit

Permalink
Implementing reload in encrypted blob store
Browse files Browse the repository at this point in the history
Signed-off-by: vikasvb90 <[email protected]>
  • Loading branch information
vikasvb90 committed Mar 22, 2024
1 parent 13604c8 commit d5218b3
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package org.opensearch.common.blobstore;

import org.opensearch.cluster.metadata.CryptoMetadata;
import org.opensearch.cluster.metadata.RepositoryMetadata;
import org.opensearch.common.crypto.CryptoHandler;
import org.opensearch.crypto.CryptoHandlerRegistry;
import org.opensearch.crypto.CryptoRegistryException;
Expand Down Expand Up @@ -65,6 +66,15 @@ public BlobContainer blobContainer(BlobPath path) {
return new EncryptedBlobContainer<>(blobContainer, cryptoHandler);
}

/**
* Reoload blobstore metadata
* @param repositoryMetadata new repository metadata
*/
@Override
public void reload(RepositoryMetadata repositoryMetadata) {
blobStore.reload(repositoryMetadata);
}

Check warning on line 76 in server/src/main/java/org/opensearch/common/blobstore/EncryptedBlobStore.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/common/blobstore/EncryptedBlobStore.java#L75-L76

Added lines #L75 - L76 were not covered by tests

/**
* Retrieves statistics about the BlobStore. Delegates the call to the underlying BlobStore's stats() method.
*
Expand Down

0 comments on commit d5218b3

Please sign in to comment.