Skip to content

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

Merged
rjernst merged 6 commits intoelastic:masterfrom
rjernst:hppc/cluster_public_sub
Jun 3, 2022
Merged

Convert o.e.cluster to use Map in public methods#87168
rjernst merged 6 commits intoelastic:masterfrom
rjernst:hppc/cluster_public_sub

Conversation

@rjernst
Copy link
Copy Markdown
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. Please avoid if you can. >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
Copy Markdown
Collaborator

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

rjernst added 2 commits June 1, 2022 05:48
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
Copy Markdown
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. Please avoid if you can. >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