You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TransportNodesAction is an abstract class in OpenSearch. This class is been inherited by many transportActions in the AnomalyDetector plugin. It accepts 4 parameters mentioned below.
NodesRequest extends BaseNodesRequest,
NodesResponse extends BaseNodesResponse,
NodeRequest extends TransportRequest,
NodeResponse extends BaseNodeResponse
For extensions, we need to extend TransportAction abstract class in all classes which has transportAPI code in AD.
TransportAction accepts 2 parameters
Request extends ActionRequest,
Response extends ActionResponse
Therefore, there is a need to make TransportNodesAction equivalent for SDK as well.
What solution would you like?
The issue requires us to
Cater all the classes which extend TransportNodesAction.
Create a TransportNodesAction for SDK and implement the same level of functionality which it currently has.
Test the Sanity of the API's for extensions and compare there response with plugins
Document the changes
The text was updated successfully, but these errors were encountered:
Key point here is this class of requests are intended to query information on multiple OpenSearch nodes. In the Extension enviornment we don't have all those nodes present so we would need to (possibly?) query the information via some REST API equivalent. Classic example may be a NodesStatsRequest to get Indexing pressure (see #655).
So we may want to create a local SDK transport action that queries OpenSearch via REST API for data like this. A general abstract superclass will allow for other similar requests to node stats.
owaiskazi19
changed the title
[Feature/Extensions] Implement TransportNodesAction equivalent for SDK
Implement TransportNodesAction equivalent for SDK
May 1, 2023
Is your feature request related to a problem?
TransportNodesAction is an abstract class in OpenSearch. This class is been inherited by many transportActions in the AnomalyDetector plugin. It accepts 4 parameters mentioned below.
For extensions, we need to extend TransportAction abstract class in all classes which has transportAPI code in AD.
TransportAction accepts 2 parameters
Therefore, there is a need to make TransportNodesAction equivalent for SDK as well.
What solution would you like?
The issue requires us to
The text was updated successfully, but these errors were encountered: