[Feature/extensions] Adding support for registering Transport Actions for extensions#4326
Conversation
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Gradle Check (Jenkins) Run Completed with:
|
| public static final String REQUEST_EXTENSION_LOCAL_NODE = "internal:discovery/localnode"; | ||
| public static final String REQUEST_EXTENSION_CLUSTER_SETTINGS = "internal:discovery/clustersettings"; | ||
| public static final String REQUEST_EXTENSION_REGISTER_REST_ACTIONS = "internal:discovery/registerrestactions"; | ||
| public static final String REQUEST_EXTENSION_REGISTER_TRANSPORT_ACTIONS = "internal:discovery/registertransportactions"; |
There was a problem hiding this comment.
Are we having separate action for extensions?
There was a problem hiding this comment.
There is an open issue: #4334. Lets do a sweep all together in a dedicated PR.
server/src/main/java/org/opensearch/extensions/RegisterTransportActionsRequest.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/extensions/RegisterTransportActionsRequest.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/extensions/RegisterTransportActionsRequest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Gradle Check (Jenkins) Run Completed with:
|
dbwiddis
left a comment
There was a problem hiding this comment.
LGTM. One optional comment inline
|
|
||
| BytesStreamOutput output = new BytesStreamOutput(); | ||
| originalRequest.writeTo(output); | ||
| StreamInput input = output.bytes().streamInput(); |
There was a problem hiding this comment.
(Comment) I realize that close() is a noop here so these don't need to be closed, but some IDE linters will complain that a resource isn't closed. Personal preference of mine. :)
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## feature/extensions #4326 +/- ##
========================================================
- Coverage 70.61% 70.60% -0.02%
- Complexity 57271 57332 +61
========================================================
Files 4633 4634 +1
Lines 275817 275849 +32
Branches 40337 40340 +3
========================================================
- Hits 194763 194752 -11
- Misses 64722 64798 +76
+ Partials 16332 16299 -33
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
@owaiskazi19 Waiting for the 2nd review. |
Signed-off-by: Sarat Vemulapalli vemulapallisarat@gmail.com
Description
Adds support for registering Transport Actions for extensions.
Issues Resolved
Closes opensearch-project/opensearch-sdk-java#105
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.