Skip to content

Commit

Permalink
Fix to include static settings in addition to dynamic repo metadata s…
Browse files Browse the repository at this point in the history
…ettings during s3 plugin reload (#10452) (#10456)

(cherry picked from commit 4fee40d)

Signed-off-by: vikasvb90 <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent dd8c51d commit 6c04459
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,8 @@ public void reload(RepositoryMetadata newRepositoryMetadata) {
readRepositoryMetadata();

// Reload configs for S3RepositoryPlugin
final Map<String, S3ClientSettings> clientsSettings = S3ClientSettings.load(metadata.settings(), pluginConfigPath);
service.refreshAndClearCache(clientsSettings);
s3AsyncService.refreshAndClearCache(clientsSettings);
service.settings(metadata);
s3AsyncService.settings(metadata);

// Reload configs for S3BlobStore
BlobStore blobStore = getBlobStore();
Expand Down

0 comments on commit 6c04459

Please sign in to comment.