[Feature/extensions] Only send one extension info when initializing#4302
Conversation
Gradle Check (Jenkins) Run Completed with:
|
dd037b1 to
6e0c784
Compare
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Daniel Widdis <widdis@gmail.com>
6e0c784 to
d0abb01
Compare
Gradle Check (Jenkins) Run Completed with:
|
| DiscoveryExtension discoveryExtension = new DiscoveryExtension( | ||
| extension.getName(), | ||
| extension.getDescription(), | ||
| extension.getVersion(), |
There was a problem hiding this comment.
Why are we not considering Description and Version of the extension?
There was a problem hiding this comment.
Okay I see. We are getting it from PluginInfo. Ignore my comment here
There was a problem hiding this comment.
For clarity (and for other reviewers), there are no changes to this try/catch code block other than the indentation caused by the else. Github's diff is confused. :-)
| * TODO change DiscoveryNode to Extension information | ||
| */ | ||
| private final List<DiscoveryExtension> extensions; | ||
| private final DiscoveryExtension extension; |
There was a problem hiding this comment.
The initial intention for this was to help the extension understand which extensions are installed in the system.
If the dependencies of extension being initialized don't exist, it should fail the init.
I love this simple approach not thinking too far ahead, @dbwiddis could you open an issue to design how can extensions discover if its dependencies exist.
There was a problem hiding this comment.
Exist and are initialized.... something the orchestrator knows... but we don't yet have a "depends on" field in extensions or which field (uniqueID?) is used to ID that other extension. I'll open a tracking issue as still many unknowns there.
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Companion PR: opensearch-project/opensearch-sdk-java#103
Description
Sends a single
DiscoveryExtensionobject when initializing an extension, rather than the entire list.Issues Resolved
Fixes opensearch-project/opensearch-sdk-java#93
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.