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 8798069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 8798069

Please sign in to comment.