Skip to content

Commit 08bcf43

Browse files
Fix component name for ClusterState custom (opensearch-project#14477) (opensearch-project#14485)
(cherry picked from commit 3a516cf) Signed-off-by: Shivansh Arora <hishiv@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a9d806a commit 08bcf43

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)