Skip to content

Commit

Permalink
Fix component name for ClusterState custom
Browse files Browse the repository at this point in the history
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
  • Loading branch information
shiv0408 committed Jun 20, 2024
1 parent 9729a92 commit df4ef05
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,8 @@ private ClusterState readClusterStateInParallel(
for (Map.Entry<String, UploadedMetadataAttribute> entry : clusterStateCustomToRead.entrySet()) {
asyncMetadataReadActions.add(
remoteClusterStateAttributesManager.getAsyncMetadataReadAction(
CLUSTER_STATE_CUSTOM,
// pass component name as cluster-state-custom--<custom_name>, so that we can interpret it later
String.join(CUSTOM_DELIMITER, CLUSTER_STATE_CUSTOM, entry.getKey()),

Check warning on line 1164 in server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java

View check run for this annotation

Codecov / codecov/patch

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

Added line #L1164 was not covered by tests
new RemoteClusterStateCustoms(
entry.getValue().getUploadedFilename(),
entry.getValue().getAttributeName(),
Expand Down

0 comments on commit df4ef05

Please sign in to comment.