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

Enable node roles to be pluggable #43175

Merged
merged 12 commits into from
Jun 13, 2019
Merged

Conversation

jasontedor
Copy link
Member

This commit introduces the possibility for a plugin to introduce additional node roles.

This commit introduces the possibility for a plugin to introduce
additional node roles.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@jasontedor jasontedor requested a review from jaymode June 13, 2019 00:10
Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

Overall looks fine. I have a few requests.

@jasontedor jasontedor requested a review from rjernst June 13, 2019 01:58
@jasontedor
Copy link
Member Author

@rjernst I pushed.

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@jasontedor jasontedor merged commit aa12af8 into elastic:master Jun 13, 2019
jasontedor added a commit that referenced this pull request Jun 13, 2019
This commit introduces the possibility for a plugin to introduce
additional node roles.
@jasontedor jasontedor deleted the pluggable-roles branch June 13, 2019 19:22
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jun 14, 2019
The test fails if querying the roles via a transport client, since the
transport client does not have the plugin necessary to interpret the additional
role correctly. This commit adds this plugin to the transport client used.

Relates elastic#43175
Fixes elastic#43223
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jun 14, 2019
Adds methods to `DiscoveryNodeRole.UnknownRole` to compare these objects'
values for equality, and adds a specialized `toString()` implementation for
clearer test failures.

Relates elastic#43175
DaveCTurner added a commit that referenced this pull request Jun 14, 2019
The test fails if querying the roles via a transport client, since the
transport client does not have the plugin necessary to interpret the additional
role correctly. This commit adds this plugin to the transport client used.

Relates #43175
Fixes #43223
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jun 15, 2019
Adds `equals()` and `hashcode()` methods to `DiscoveryNodeRole` to compare
these objects' values for equality, and adds a field to allow us to distinguish
unknown roles from known ones with the same name and abbreviation, for clearer
test failures.

Relates elastic#43175
pull bot pushed a commit to rogues-gallery/elasticsearch that referenced this pull request Jun 17, 2019
Adds `equals()` and `hashcode()` methods to `DiscoveryNodeRole` to compare
these objects' values for equality, and adds a field to allow us to distinguish
unknown roles from known ones with the same name and abbreviation, for clearer
test failures.

Relates elastic#43175
DaveCTurner added a commit that referenced this pull request Jun 17, 2019
Adds `equals()` and `hashcode()` methods to `DiscoveryNodeRole` to compare
these objects' values for equality, and adds a field to allow us to distinguish
unknown roles from known ones with the same name and abbreviation, for clearer
test failures.

Relates #43175
lukas-vlcek added a commit to vvanholl/elasticsearch-prometheus-exporter that referenced this pull request Aug 13, 2019
There are two main changes impacting the code when upgrading top 7.3.0.

The first is introduction of pluggable Node roles:
- elastic/elasticsearch#43175

The second is renaming the Action class to ActionType:
- elastic/elasticsearch#43778
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants