diff --git a/server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java b/server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java index 50388a1354327..c54de8d979aaf 100644 --- a/server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java +++ b/server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java @@ -1884,7 +1884,7 @@ private RepositoryData getRepositoryData(long indexGen) { return RepositoryData.EMPTY; } try { - final String snapshotsIndexBlobName = INDEX_FILE_PREFIX + Long.toString(indexGen); + final String snapshotsIndexBlobName = INDEX_FILE_PREFIX + indexGen; // EMPTY is safe here because RepositoryData#fromXContent calls namedObject try (