Skip to content

Switch role pluggability to use SPI#54370

Closed
jasontedor wants to merge 4 commits intoelastic:masterfrom
jasontedor:discovery-node-role-spi
Closed

Switch role pluggability to use SPI#54370
jasontedor wants to merge 4 commits intoelastic:masterfrom
jasontedor:discovery-node-role-spi

Conversation

@jasontedor
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@jasontedor
Copy link
Copy Markdown
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