Skip to content

Remove duplicate code in ESIntegTestCase #120799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Jan 27, 2025

Conversation

drempapis
Copy link
Contributor

This is a continuation of this #120392 pr; removing duplicate code previously introduced

@elasticsearchmachine elasticsearchmachine added v9.0.0 needs:triage Requires assignment of a team area label labels Jan 24, 2025
@@ -1265,10 +1265,6 @@ protected final void doEnsureClusterStateConsistency(NamedWriteableRegistry name
masterClusterState.stateUUID(),
localClusterState.stateUUID()
);

// Compare the stateMaps for equality.
assertNull(XContentTestUtils.differenceBetweenMapsIgnoringArrayOrder(masterStateMap, localStateMap));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thecoop, after merging #120392, I realized that this assertion follows in the code.

@drempapis drempapis requested a review from thecoop January 24, 2025 14:34
@drempapis drempapis added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/Search Catch all for Search Foundations labels Jan 24, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine elasticsearchmachine removed the needs:triage Requires assignment of a team area label label Jan 24, 2025
@drempapis drempapis added >bug needs:triage Requires assignment of a team area label and removed needs:triage Requires assignment of a team area label labels Jan 24, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @drempapis, I've created a changelog YAML for you.

Copy link
Member

@thecoop thecoop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes - this is more a refactor though, not a bug

@drempapis drempapis merged commit a0bb46d into elastic:main Jan 27, 2025
16 checks passed
@drempapis drempapis deleted the test/107515_ESIntegTestCase_update branch January 27, 2025 10:26
@javanna javanna added >refactoring and removed >bug labels Jan 31, 2025
@drempapis drempapis self-assigned this Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>refactoring :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants