Skip to content

[Backport 1.x] Execute remote actions on another extension#606

Merged
owaiskazi19 merged 2 commits into1.xfrom
backport/backport-588-to-1.x
Mar 30, 2023
Merged

[Backport 1.x] Execute remote actions on another extension#606
owaiskazi19 merged 2 commits into1.xfrom
backport/backport-588-to-1.x

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown

Backport ebc684a from #588.

* Add ProxyAction with TransportAction and handlers

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Give SDKActionModule a copy of ExtensionsRunner to use with transport

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add new ProxyActionRequest

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add SDKTransportService wrapper accessible to actions

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Implement ProxyTransportAction

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add test case to HelloWorldExtension

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Better naming of ExtensionActionResponse and correct action name

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Refactoring with TransportService and latest OpenSearch PR updates

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add ExtensionsActionRequestHandler

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Instantiate Proxy Action Request

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Working test case!

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Properly parse returned byte array into a response

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add sequence diagram to DESIGN.md

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Typoo fix

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Update with latest changes on companion PR

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Rename ProxyFoo to RemoteExtensionFoo

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Better handling of response bytes

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Handle plugin remote action requests

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Address code review comments

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Update sequence diagram

Signed-off-by: Daniel Widdis <widdis@gmail.com>

---------

Signed-off-by: Daniel Widdis <widdis@gmail.com>
(cherry picked from commit ebc684a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@dbwiddis
Copy link
Copy Markdown
Member

Gradle check needs 2.x backport PR of opensearch-project/OpenSearch#6734

@owaiskazi19 owaiskazi19 merged commit c247b38 into 1.x Mar 30, 2023
@owaiskazi19 owaiskazi19 deleted the backport/backport-588-to-1.x branch March 30, 2023 20:14
caokyhieu pushed a commit to caokyhieu/opensearch-sdk-java that referenced this pull request Aug 15, 2025
…pensearch-project#606)

* Add ProxyAction with TransportAction and handlers



* Give SDKActionModule a copy of ExtensionsRunner to use with transport



* Add new ProxyActionRequest



* Add SDKTransportService wrapper accessible to actions



* Implement ProxyTransportAction



* Add test case to HelloWorldExtension



* Better naming of ExtensionActionResponse and correct action name



* Refactoring with TransportService and latest OpenSearch PR updates



* Add ExtensionsActionRequestHandler



* Instantiate Proxy Action Request



* Working test case!



* Properly parse returned byte array into a response



* Add sequence diagram to DESIGN.md



* Typoo fix



* Update with latest changes on companion PR



* Rename ProxyFoo to RemoteExtensionFoo



* Better handling of response bytes



* Handle plugin remote action requests



* Address code review comments



* Update sequence diagram



---------


(cherry picked from commit ebc684a)

Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Joshua Palis <jpalis@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants