Skip to content

Commit

Permalink
Always send coordination metadata in diff
Browse files Browse the repository at this point in the history
Signed-off-by: Sooraj Sinha <[email protected]>
  • Loading branch information
soosinha committed Oct 7, 2024
1 parent 146b0f7 commit 3a1e37f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Fix race condition in node-join and node-left ([#15521](https://github.com/opensearch-project/OpenSearch/pull/15521))
- Streaming bulk request hangs ([#16158](https://github.com/opensearch-project/OpenSearch/pull/16158))
- Fix warnings from SLF4J on startup when repository-s3 is installed ([#16194](https://github.com/opensearch-project/OpenSearch/pull/16194))
- Fix coordination metadata diff in remote cluster state publication ([#16215](https://github.com/opensearch-project/OpenSearch/pull/16215))

### Security

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public ClusterStateDiffManifest(
) {
fromStateUUID = previousState.stateUUID();
toStateUUID = state.stateUUID();
coordinationMetadataUpdated = !Metadata.isCoordinationMetadataEqual(state.metadata(), previousState.metadata());
coordinationMetadataUpdated = true;
settingsMetadataUpdated = !Metadata.isSettingsMetadataEqual(state.metadata(), previousState.metadata());
transientSettingsMetadataUpdated = !Metadata.isTransientSettingsMetadataEqual(state.metadata(), previousState.metadata());
templatesMetadataUpdated = !Metadata.isTemplatesMetadataEqual(state.metadata(), previousState.metadata());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private ClusterStateDiffManifest updateAndVerifyState(
assertEquals(customsToRemove, manifest.getCustomMetadataDeleted());
assertEquals(new ArrayList<>(clusterStateCustomsToAdd.keySet()), manifest.getClusterStateCustomUpdated());
assertEquals(clusterStateCustomsToRemove, manifest.getClusterStateCustomDeleted());
assertEquals(updateCoordinationState, manifest.isCoordinationMetadataUpdated());
assertTrue(manifest.isCoordinationMetadataUpdated());
assertEquals(updatePersistentSettings, manifest.isSettingsMetadataUpdated());
assertEquals(updateTemplates, manifest.isTemplatesMetadataUpdated());
assertEquals(updateTransientSettings, manifest.isTransientSettingsMetadataUpdated());
Expand Down

0 comments on commit 3a1e37f

Please sign in to comment.