Skip to content

Commit 321f021

Browse files
author
Sandeep Kumawat
committed
Correct Version Check in function determineRemoteStoreCustomMetadataDuringMigration
Signed-off-by: Sandeep Kumawat <skumwt@amazon.com>
1 parent 4abcf39 commit 321f021

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/main/java/org/opensearch/index/remote/RemoteStoreUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,13 @@ public static Map<String, String> determineRemoteStoreCustomMetadataDuringMigrat
214214
// does not support custom metadata.
215215
// https://github.com/opensearch-project/OpenSearch/issues/13745
216216
boolean blobStoreMetadataEnabled = false;
217-
boolean translogMetadata = Version.CURRENT.compareTo(minNodeVersion) <= 0
217+
boolean translogMetadata = Version.V_2_15_0.compareTo(minNodeVersion) <= 0
218218
&& CLUSTER_REMOTE_STORE_TRANSLOG_METADATA.get(clusterSettings)
219219
&& blobStoreMetadataEnabled;
220220

221221
remoteCustomData.put(IndexMetadata.TRANSLOG_METADATA_KEY, Boolean.toString(translogMetadata));
222222

223-
RemoteStoreEnums.PathType pathType = Version.CURRENT.compareTo(minNodeVersion) <= 0
223+
RemoteStoreEnums.PathType pathType = Version.V_2_15_0.compareTo(minNodeVersion) <= 0
224224
? CLUSTER_REMOTE_STORE_PATH_TYPE_SETTING.get(clusterSettings)
225225
: RemoteStoreEnums.PathType.FIXED;
226226
RemoteStoreEnums.PathHashAlgorithm pathHashAlgorithm = pathType == RemoteStoreEnums.PathType.FIXED

0 commit comments

Comments
 (0)