From 3a516cf55f901076f00a590bb1e7ffe281b0c3c4 Mon Sep 17 00:00:00 2001 From: Shivansh Arora Date: Fri, 21 Jun 2024 08:48:16 +0530 Subject: [PATCH] Fix component name for ClusterState custom (#14477) Signed-off-by: Shivansh Arora --- .../opensearch/gateway/remote/RemoteClusterStateService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java b/server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java index 4a1c9c8615e39..ef14adeb42b68 100644 --- a/server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java +++ b/server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java @@ -1160,7 +1160,8 @@ private ClusterState readClusterStateInParallel( for (Map.Entry entry : clusterStateCustomToRead.entrySet()) { asyncMetadataReadActions.add( remoteClusterStateAttributesManager.getAsyncMetadataReadAction( - CLUSTER_STATE_CUSTOM, + // pass component name as cluster-state-custom--, so that we can interpret it later + String.join(CUSTOM_DELIMITER, CLUSTER_STATE_CUSTOM, entry.getKey()), new RemoteClusterStateCustoms( entry.getValue().getUploadedFilename(), entry.getValue().getAttributeName(),