Skip to content

Create placeholder plugin when loading stable plugins#90870

Merged
pgomulka merged 4 commits intoelastic:mainfrom
pgomulka:stable_plugin_placeholder
Oct 14, 2022
Merged

Create placeholder plugin when loading stable plugins#90870
pgomulka merged 4 commits intoelastic:mainfrom
pgomulka:stable_plugin_placeholder

Conversation

@pgomulka
Copy link
Copy Markdown
Contributor

Stable plugins do not extend Plugin class and are not instantiated in PluginService. Therefore a simple StablePluginPlaceHolder has to be used in order to make pluginService aware of the plugin and its descriptor. It is needed to return information about loaded stable plugins in cluster state.

relates #88980

  • Have you signed the contributor license agreement?
  • Have you followed the contributor guidelines?
  • If submitting code, have you built your formula locally prior to submission with gradle check?
  • If submitting code, is your pull request against main? Unless there is a good reason otherwise, we prefer pull requests against main and will backport as needed.
  • If submitting code, have you checked that your submission is for an OS and architecture that we support?
  • If you are submitting this code for a class then read our policy for that.

Stable plugins do not extend Plugin class and are not instantiated in PluginService.
Therefore a simple StablePluginPlaceHolder has to be used in order to make pluginService
aware of the plugin and its descriptor. It is needed to return information about loaded
stable plugins in cluster state.

relates elastic#88980
@pgomulka pgomulka added >enhancement :Core/Infra/Plugins Plugin API and infrastructure v8.6.0 labels Oct 13, 2022
@pgomulka pgomulka self-assigned this Oct 13, 2022
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Oct 13, 2022
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @pgomulka, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@pgomulka pgomulka mentioned this pull request Oct 13, 2022
25 tasks
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! I'm excited about this change, because I think this brings us closer to the possibility of installing/removing plugins without node restart.

@pgomulka pgomulka merged commit 2d420ec into elastic:main Oct 14, 2022
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 Team:Core/Infra Meta label for core/infra team v8.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants