Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing reload in encrypted blob store #12826

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
return new EncryptedBlobContainer<>(blobContainer, cryptoHandler);
}

/**
* Reoload blobstore metadata
andrross marked this conversation as resolved.
Show resolved Hide resolved
* @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
Loading