Skip to content

Switch role pluggability to use SPI #54370

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

Closed
wants to merge 4 commits into from

Conversation

jasontedor
Copy link
Member

This commit switches discovery node role pluggability to use SPI. This eliminates an ugly public static method on DiscoveryNode. Instead of pulling roles out of plugins and pushing them into discovery node, discovery node now pulls them directly out of plugins.

This commit switches discovery node role pluggability to use SPI. This
eliminates an ugly public static method on DiscoveryNode. Instead of
pulling roles out of plugins and pushing them into discovery node,
discovery node now pulls them directly out of plugins.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Plugins)

@jasontedor
Copy link
Member Author

This presents some serious challenges in internal cluster tests in X-Pack that require additional roles be available for the test. This means that we have to do SPI for classpath plugins, and then clean them up after the test, which means we haven't really solved any problems here, just moved them. Therefore, I am closing this PR.

@jasontedor jasontedor closed this Mar 28, 2020
@jasontedor jasontedor deleted the discovery-node-role-spi branch March 28, 2020 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Plugins Plugin API and infrastructure >enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants