59
59
import static org .opensearch .index .remote .RemoteStoreEnums .DataCategory .TRANSLOG ;
60
60
import static org .opensearch .index .remote .RemoteStoreEnums .DataType .DATA ;
61
61
import static org .opensearch .index .remote .RemoteStoreEnums .DataType .METADATA ;
62
- import static org .opensearch .indices .IndicesService .CLUSTER_REMOTE_STORE_PATH_PREFIX_TYPE_SETTING ;
62
+ import static org .opensearch .indices .IndicesService .CLUSTER_REMOTE_STORE_PATH_TYPE_SETTING ;
63
63
import static org .opensearch .test .hamcrest .OpenSearchAssertions .assertAcked ;
64
64
import static org .hamcrest .Matchers .equalTo ;
65
65
import static org .hamcrest .Matchers .greaterThan ;
@@ -229,7 +229,7 @@ public void testRemoteStoreCustomDataOnIndexCreationAndRestore() {
229
229
client (clusterManagerNode ).admin ()
230
230
.cluster ()
231
231
.prepareUpdateSettings ()
232
- .setTransientSettings (Settings .builder ().put (CLUSTER_REMOTE_STORE_PATH_PREFIX_TYPE_SETTING .getKey (), PathType .FIXED ))
232
+ .setTransientSettings (Settings .builder ().put (CLUSTER_REMOTE_STORE_PATH_TYPE_SETTING .getKey (), PathType .FIXED ))
233
233
.get ();
234
234
createRepository (snapshotRepoName , "fs" , getRepositorySettings (absolutePath1 , true ));
235
235
Client client = client ();
@@ -260,7 +260,7 @@ public void testRemoteStoreCustomDataOnIndexCreationAndRestore() {
260
260
client (clusterManagerNode ).admin ()
261
261
.cluster ()
262
262
.prepareUpdateSettings ()
263
- .setTransientSettings (Settings .builder ().put (CLUSTER_REMOTE_STORE_PATH_PREFIX_TYPE_SETTING .getKey (), PathType .HASHED_PREFIX ))
263
+ .setTransientSettings (Settings .builder ().put (CLUSTER_REMOTE_STORE_PATH_TYPE_SETTING .getKey (), PathType .HASHED_PREFIX ))
264
264
.get ();
265
265
266
266
restoreSnapshotResponse = client .admin ()
@@ -272,13 +272,13 @@ public void testRemoteStoreCustomDataOnIndexCreationAndRestore() {
272
272
.get ();
273
273
assertEquals (RestStatus .ACCEPTED , restoreSnapshotResponse .status ());
274
274
ensureGreen (restoredIndexName1version2 );
275
- validatePathType (restoredIndexName1version2 , PathType .HASHED_PREFIX , PathHashAlgorithm .FNV_1A );
275
+ validatePathType (restoredIndexName1version2 , PathType .HASHED_PREFIX , PathHashAlgorithm .FNV_1A_COMPOSITE_1 );
276
276
277
- // Create index with cluster setting cluster.remote_store.index.path.prefix. type as hashed_prefix.
277
+ // Create index with cluster setting cluster.remote_store.index.path.type as hashed_prefix.
278
278
indexSettings = getIndexSettings (1 , 0 ).build ();
279
279
createIndex (indexName2 , indexSettings );
280
280
ensureGreen (indexName2 );
281
- validatePathType (indexName2 , PathType .HASHED_PREFIX , PathHashAlgorithm .FNV_1A );
281
+ validatePathType (indexName2 , PathType .HASHED_PREFIX , PathHashAlgorithm .FNV_1A_COMPOSITE_1 );
282
282
283
283
// Validating that custom data has not changed for indexes which were created before the cluster setting got updated
284
284
validatePathType (indexName1 , PathType .FIXED );
@@ -294,7 +294,7 @@ public void testRemoteStoreCustomDataOnIndexCreationAndRestore() {
294
294
client (clusterManagerNode ).admin ()
295
295
.cluster ()
296
296
.prepareUpdateSettings ()
297
- .setTransientSettings (Settings .builder ().put (CLUSTER_REMOTE_STORE_PATH_PREFIX_TYPE_SETTING .getKey (), PathType .FIXED ))
297
+ .setTransientSettings (Settings .builder ().put (CLUSTER_REMOTE_STORE_PATH_TYPE_SETTING .getKey (), PathType .FIXED ))
298
298
.get ();
299
299
300
300
// Close index 2
@@ -309,7 +309,7 @@ public void testRemoteStoreCustomDataOnIndexCreationAndRestore() {
309
309
ensureGreen (indexName2 );
310
310
311
311
// Validating that custom data has not changed for testindex2 which was created before the cluster setting got updated
312
- validatePathType (indexName2 , PathType .HASHED_PREFIX , PathHashAlgorithm .FNV_1A );
312
+ validatePathType (indexName2 , PathType .HASHED_PREFIX , PathHashAlgorithm .FNV_1A_COMPOSITE_1 );
313
313
}
314
314
315
315
private void validatePathType (String index , PathType pathType ) {
0 commit comments