From 345b73ee1c090197bdf3f833849381cc3d0cf9f9 Mon Sep 17 00:00:00 2001 From: Shailendra Singh Date: Thu, 6 Jun 2024 10:08:59 +0530 Subject: [PATCH] Address review comments --- .../gateway/remote/RemoteClusterStateCleanupManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateCleanupManager.java b/server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateCleanupManager.java index 547a40120883a..7edf62b997c4f 100644 --- a/server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateCleanupManager.java +++ b/server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateCleanupManager.java @@ -232,7 +232,7 @@ void deleteClusterMetadata( clusterMetadataManifest.getIndicesRouting().forEach(uploadedIndicesRouting -> { if (filesToKeep.contains(uploadedIndicesRouting.getUploadedFilename()) == false){ staleIndexRoutingPaths.add(new BlobPath().buildAsString() + uploadedIndicesRouting.getUploadedFilename()); - logger.debug("Indices routing paths in stale manifest: {}", uploadedIndicesRouting.getUploadedFilename()); + logger.debug(() -> "Indices routing paths in stale manifest: " + uploadedIndicesRouting.getUploadedFilename()); } }); } @@ -361,7 +361,7 @@ void deleteStalePaths(String clusterName, String clusterUUID, List stale } void deleteStaleIndexRoutingPaths(List stalePaths) throws IOException { - logger.debug(String.format(Locale.ROOT, "Deleting stale index routing files from remote - %s", stalePaths)); + logger.debug(() -> String.format(Locale.ROOT, "Deleting stale index routing files from remote - %s", stalePaths)); getBlobStoreTransferService().deleteBlobs( BlobPath.cleanPath(), stalePaths