Skip to content

Commit 53ccacb

Browse files
author
Swetha Guptha
committed
Replacing hardcoded prefix for remote_store in tests.
Signed-off-by: Swetha Guptha <[email protected]>
1 parent fde03d6 commit 53ccacb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

server/src/main/java/org/opensearch/node/remotestore/RemoteStoreNodeAttribute.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public class RemoteStoreNodeAttribute {
3939

4040
public static final List<String> REMOTE_STORE_NODE_ATTRIBUTE_KEY_PREFIX = List.of("remote_store", "remote_publication");
4141
public static final String REMOTE_STORE_CLUSTER_STATE_REPOSITORY_NAME_ATTRIBUTE_KEY = "remote_publication.state.repository";
42-
public static final String REMOTE_STORE_SEGMENT_REPOSITORY_NAME_ATTRIBUTE_KEY = "remote_store.segment.repository";
43-
public static final String REMOTE_STORE_TRANSLOG_REPOSITORY_NAME_ATTRIBUTE_KEY = "remote_store.translog.repository";
42+
public static final String REMOTE_STORE_SEGMENT_REPOSITORY_NAME_ATTRIBUTE_KEY = "remote_publication.segment.repository";
43+
public static final String REMOTE_STORE_TRANSLOG_REPOSITORY_NAME_ATTRIBUTE_KEY = "remote_publication.translog.repository";
4444
public static final String REMOTE_STORE_ROUTING_TABLE_REPOSITORY_NAME_ATTRIBUTE_KEY = "remote_publication.routing_table.repository";
4545

4646
public static final List<String> REMOTE_CLUSTER_STATE_REPOSITORY_NAME_ATTRIBUTE_KEYS = REMOTE_STORE_NODE_ATTRIBUTE_KEY_PREFIX.stream()

server/src/test/java/org/opensearch/index/IndexSettingsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ public void testIsOnRemoteNode() {
10601060
.put(IndexMetadata.SETTING_VERSION_CREATED, version)
10611061
.put(IndexMetadata.SETTING_INDEX_UUID, "0xdeadbeef")
10621062
.build();
1063-
Settings nodeSettings = Settings.builder().put("node.attr.remote_store.translog.repository", "my-repo-1").build();
1063+
Settings nodeSettings = Settings.builder().put("node.attr.remote_publication.translog.repository", "my-repo-1").build();
10641064
IndexSettings settings = newIndexSettings(newIndexMeta("index", theSettings), nodeSettings);
10651065
assertTrue("Index should be on remote node", settings.isAssignedOnRemoteNode());
10661066
}

server/src/test/java/org/opensearch/index/remote/RemoteStoreTestsHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static IndexSettings createIndexSettings(boolean remote, Settings setting
4848
if (remote) {
4949
Settings nodeSettings = Settings.builder()
5050
.put("node.name", "xyz")
51-
.put("node.attr.remote_store.translog.repository", "seg_repo")
51+
.put("node.attr.remote_publication.translog.repository", "seg_repo")
5252
.build();
5353
indexSettings = IndexSettingsModule.newIndexSettings(new Index("test_index", "_na_"), settings, nodeSettings);
5454
} else {

0 commit comments

Comments
 (0)