Skip to content

Commit 3a516cf

Browse files
authored
Fix component name for ClusterState custom (#14477)
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
1 parent e8b7913 commit 3a516cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,8 @@ private ClusterState readClusterStateInParallel(
11601160
for (Map.Entry<String, UploadedMetadataAttribute> entry : clusterStateCustomToRead.entrySet()) {
11611161
asyncMetadataReadActions.add(
11621162
remoteClusterStateAttributesManager.getAsyncMetadataReadAction(
1163-
CLUSTER_STATE_CUSTOM,
1163+
// pass component name as cluster-state-custom--<custom_name>, so that we can interpret it later
1164+
String.join(CUSTOM_DELIMITER, CLUSTER_STATE_CUSTOM, entry.getKey()),
11641165
new RemoteClusterStateCustoms(
11651166
entry.getValue().getUploadedFilename(),
11661167
entry.getValue().getAttributeName(),

0 commit comments

Comments
 (0)