@@ -1952,7 +1952,18 @@ protected Settings nodeSettings(int nodeOrdinal) {
1952
1952
segmentRepoPath = randomRepoPath ().toAbsolutePath ();
1953
1953
translogRepoPath = randomRepoPath ().toAbsolutePath ();
1954
1954
}
1955
- builder .put (remoteStoreClusterSettings ("test-remote-store-repo" , segmentRepoPath , "test-remote-store-repo-2" , translogRepoPath ));
1955
+ String segmentRepoName = "test-remote-store-repo" ;
1956
+ String stateRepoSettingsAttributeKeyPrefix = String .format (
1957
+ Locale .getDefault (),
1958
+ "node.attr." + REMOTE_STORE_REPOSITORY_SETTINGS_ATTRIBUTE_KEY_PREFIX ,
1959
+ segmentRepoName
1960
+ );
1961
+ String prefixModeVerificationSuffix = BlobStoreRepository .PREFIX_MODE_VERIFICATION_SETTING .getKey ();
1962
+ String stateRepoTypeAttributeKey = String .format (
1963
+ Locale .getDefault (),
1964
+ "node.attr." + REMOTE_STORE_REPOSITORY_TYPE_ATTRIBUTE_KEY_FORMAT ,
1965
+ segmentRepoName
1966
+ );
1956
1967
String routingTableRepoName = "remote-routing-repo" ;
1957
1968
String routingTableRepoTypeAttributeKey = String .format (
1958
1969
Locale .getDefault (),
@@ -1964,7 +1975,11 @@ protected Settings nodeSettings(int nodeOrdinal) {
1964
1975
"node.attr." + REMOTE_STORE_REPOSITORY_SETTINGS_ATTRIBUTE_KEY_PREFIX ,
1965
1976
routingTableRepoName
1966
1977
);
1967
- builder .put (REMOTE_CLUSTER_STATE_ENABLED_SETTING .getKey (), true )
1978
+ builder .put ("node.attr." + REMOTE_STORE_CLUSTER_STATE_REPOSITORY_NAME_ATTRIBUTE_KEY , segmentRepoName )
1979
+ .put (stateRepoTypeAttributeKey , ReloadableFsRepository .TYPE )
1980
+ .put (stateRepoSettingsAttributeKeyPrefix + "location" , segmentRepoPath )
1981
+ .put (stateRepoSettingsAttributeKeyPrefix + prefixModeVerificationSuffix , prefixModeVerificationEnable )
1982
+ .put (REMOTE_CLUSTER_STATE_ENABLED_SETTING .getKey (), true )
1968
1983
.put ("node.attr." + REMOTE_STORE_ROUTING_TABLE_REPOSITORY_NAME_ATTRIBUTE_KEY , routingTableRepoName )
1969
1984
.put (routingTableRepoTypeAttributeKey , ReloadableFsRepository .TYPE )
1970
1985
.put (routingTableRepoSettingsAttributeKeyPrefix + "location" , segmentRepoPath );
0 commit comments