Skip to content

Commit 2c427aa

Browse files
committed
Handle version during repository registration for prefix mode verification
Signed-off-by: Ashish Singh <[email protected]>
1 parent 5aa6509 commit 2c427aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2994,7 +2994,7 @@ public String startVerification() {
29942994
*/
29952995
private BlobContainer testContainer(String seed) {
29962996
BlobPath testBlobPath;
2997-
if (prefixModeVerification == true) {
2997+
if (prefixModeVerification == true && clusterService.state().nodes().getMinNodeVersion().onOrAfter(Version.V_2_17_0)) {
29982998
PathInput pathInput = PathInput.builder().basePath(basePath()).indexUUID(seed).build();
29992999
testBlobPath = PathType.HASHED_PREFIX.path(pathInput, FNV_1A_COMPOSITE_1);
30003000
} else {

0 commit comments

Comments
 (0)