diff --git a/server/src/main/java/org/opensearch/index/remote/RemoteStoreEnums.java b/server/src/main/java/org/opensearch/index/remote/RemoteStoreEnums.java index c1ac74724e405..b7053013378fb 100644 --- a/server/src/main/java/org/opensearch/index/remote/RemoteStoreEnums.java +++ b/server/src/main/java/org/opensearch/index/remote/RemoteStoreEnums.java @@ -36,6 +36,8 @@ @ExperimentalApi public class RemoteStoreEnums { + private static final char REMOTE_STORE_DEDICATED_PREFIX_START_CHAR = '.'; + /** * Categories of the data in Remote store. */ @@ -112,6 +114,7 @@ boolean requiresHashAlgorithm() { public BlobPath generatePath(PathInput pathInput, PathHashAlgorithm hashAlgorithm) { assert Objects.nonNull(hashAlgorithm) : "hashAlgorithm is expected to be non-null"; return BlobPath.cleanPath() + .add(String.valueOf(REMOTE_STORE_DEDICATED_PREFIX_START_CHAR)) .add(hashAlgorithm.hash(pathInput)) .add(pathInput.basePath()) .add(pathInput.indexUUID())