-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Feature/extensions] Modified local node response #4862
[Feature/extensions] Modified local node response #4862
Conversation
Signed-off-by: Joshua Palis <[email protected]>
Signed-off-by: Joshua Palis <[email protected]>
Signed-off-by: Joshua Palis <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
*/ | ||
public DiscoveryNode getLocalNode() { | ||
return this.localNode; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a small test to verify this getter value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure ill add this in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Style/entirely personal preference) Would really like this further up in the class than below the equals and hashcode, although others prefer getters and setters at the bottom.
Signed-off-by: Joshua Palis <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with two minor comments!
@@ -485,6 +485,22 @@ public void testHandleActionListenerOnFailureRequest() throws Exception { | |||
assertEquals("Test failure", extensionsOrchestrator.listener.getExceptionList().get(0).getMessage()); | |||
} | |||
|
|||
public void testLocalNodeResponse() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this test! But I'm thinking it should probably be in the same package as the LocalNodeResponse
class (src/test/java/org/opensearch/cluster
) as it's not specific to extensions.
*/ | ||
public DiscoveryNode getLocalNode() { | ||
return this.localNode; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Style/entirely personal preference) Would really like this further up in the class than below the equals and hashcode, although others prefer getters and setters at the bottom.
Signed-off-by: Joshua Palis <[email protected]>
Signed-off-by: Joshua Palis <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
@dbwiddis Upon further exploration, I realized that the |
…al node is already transported to the opensearch SDK during extension intialization Signed-off-by: Joshua Palis <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## feature/extensions #4862 +/- ##
========================================================
- Coverage 70.90% 70.89% -0.01%
+ Complexity 58243 58215 -28
========================================================
Files 4734 4733 -1
Lines 278272 278254 -18
Branches 40403 40402 -1
========================================================
- Hits 197301 197271 -30
- Misses 64692 64708 +16
+ Partials 16279 16275 -4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Joshua Palis <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Description
Added getter method to local node response to return the Discovery Node
Edit : Separate local Node Requests are not necessary to provide support for since the local node is already transported to the SDK during node initialization. Will now use this pull request to remove the local node request workflow from the project
Companion PR : opensearch-project/opensearch-sdk-java#202
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.