Skip to content
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

Convert o.e.cluster to use Map in public methods #87168

Merged
merged 6 commits into from
Jun 3, 2022

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented May 26, 2022

Many classes that use ImmutableOpenMap expose the maps directly, when
the consumers actually only use methods from the base Map interface.
This commit converts public methods in subpackages of o.e.cluster to
return Map instead of ImmutableOpenMap. Note that o.e.cluster classes
are not yet converted because they require more involved changes.

relates #86239

Many classes that use ImmutableOpenMap expose the maps directly, when
the consumers actually only use methods from the base Map interface.
This commit converts public methods in subpackages of o.e.cluster to
return Map instead of ImmutableOpenMap. Note that o.e.cluster classes
are not yet converted because they require more involved changes.

relates elastic#86239
@rjernst rjernst added :Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. >refactoring v8.4.0 labels May 26, 2022
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team label May 26, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

commit 844f73e382787f9be995639da3caee16db8ba3cd
Merge: ce841f089d1 767fd68
Author: Ryan Ernst <ryan@iernst.net>
Date:   Wed Jun 1 05:46:32 2022 -0700

    Merge branch 'master' into hppc/cluster_public

commit ce841f089d1fd3a6af1c86ce2a242238b7ccdf79
Author: Ryan Ernst <ryan@iernst.net>
Date:   Tue May 31 06:15:01 2022 -0700

    snapshotsinprogress

commit f4a752c81a2633eb586b9f1ea13ffe6f3c4ba74d
Author: Ryan Ernst <ryan@iernst.net>
Date:   Tue May 31 06:08:06 2022 -0700

    clusterinfo
@rjernst rjernst changed the title Convert subpackages of o.e.cluster to use Map in public methods Convert o.e.cluster to use Map in public methods Jun 1, 2022
Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

LGTM!

@rjernst rjernst merged commit 341cc1e into elastic:master Jun 3, 2022
@rjernst rjernst deleted the hppc/cluster_public_sub branch June 3, 2022 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. >refactoring Team:Distributed Meta label for distributed team v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants