-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add selective plugin loading mechanism #21007
Open
moesterheld
wants to merge
59
commits into
master
Choose a base branch
from
trino-node-plugin
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ks for fresh installation of the Graylog cluster
…sn't do the fresh installation detection any more
Co-authored-by: Bernd Ahlers <[email protected]>
Co-authored-by: Bernd Ahlers <[email protected]>
Co-authored-by: Bernd Ahlers <[email protected]>
Co-authored-by: Bernd Ahlers <[email protected]>
# Conflicts: # graylog2-server/src/main/java/org/graylog2/CommonNodeConfiguration.java # graylog2-server/src/main/java/org/graylog2/GraylogNodeConfiguration.java
# Conflicts: # graylog2-server/src/main/java/org/graylog2/CommonNodeConfiguration.java
…e all properties of PathConfiguration only for plugin loading
# Conflicts: # graylog2-server/src/main/java/org/graylog2/GraylogNodeConfiguration.java
# Conflicts: # data-node/src/main/java/org/graylog/datanode/Configuration.java # data-node/src/main/java/org/graylog/datanode/bindings/PreflightChecksBindings.java # data-node/src/main/java/org/graylog/datanode/bootstrap/preflight/OpensearchConfigSync.java # graylog2-server/src/main/java/org/graylog2/CommonNodeConfiguration.java # graylog2-server/src/main/java/org/graylog2/GraylogNodeConfiguration.java # graylog2-server/src/main/java/org/graylog2/bootstrap/CmdLineTool.java # graylog2-server/src/test/java/org/graylog2/commands/MinimalNodeCommandTest.java
moesterheld
changed the title
Add trino node plugin
Add selective plugin loading mechanism
Dec 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds a mechanism for loading plugins selectively.
This is needed to load different plugins for different node types (needed specifially for data node).
The selection is done by adding a
SpecificNodePlugin
annotation to the plugin class and specifying thePluginLoader.NodeType
inGraylogNodeConfiguration.getPluginNodeType()
.To keep backward compatibility, the PluginLoader will load all plugins without the annotation if no type is provided (i.e. no type = Graylog), otherwise all plugins annotated with the given node type will be loaded.
/nocl
Motivation and Context
needed for selectively loading a trino node plugin in data node
How Has This Been Tested?
Tested with https://github.com/Graylog2/graylog-plugin-enterprise/pull/9214 and ensuring all Graylog plugins are loaded without the data node specific plugin. In data node, only the specified plugin is loaded.
Added unit test for filtering in PluginLoader.
Screenshots (if appropriate):
Types of changes
Checklist: