From df4ef0524c2e73bf7121073b914a678a97151cf1 Mon Sep 17 00:00:00 2001 From: Shivansh Arora Date: Thu, 20 Jun 2024 23:26:10 +0530 Subject: [PATCH] Fix component name for ClusterState custom 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(),