Skip to content

Commit

Permalink
Change action listener request (#141)
Browse files Browse the repository at this point in the history
* Add ActionListener onFailure to ExtensionsRunner

Signed-off-by: Ryan Bogan <[email protected]>

* Addressed PR Comments

Signed-off-by: Ryan Bogan <[email protected]>

* Addressed PR Comments

Signed-off-by: Ryan Bogan <[email protected]>

* Addressed PR Comments

Signed-off-by: Ryan Bogan <[email protected]>

* Removed test failure

Signed-off-by: Ryan Bogan <[email protected]>

* Changed Action Listener onFailure request class name to match OpenSearch repo

Signed-off-by: Ryan Bogan <[email protected]>

* Fixed minor error

Signed-off-by: Ryan Bogan <[email protected]>

Signed-off-by: Ryan Bogan <[email protected]>
  • Loading branch information
ryanbogan authored Sep 26, 2022
1 parent 30d6373 commit d7b873c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/org/opensearch/sdk/ExtensionsRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.opensearch.extensions.ExtensionBooleanResponse;
import org.opensearch.discovery.InitializeExtensionsRequest;
import org.opensearch.discovery.InitializeExtensionsResponse;
import org.opensearch.extensions.ExtensionActionListenerOnFailureRequest;
import org.opensearch.extensions.DiscoveryExtension;
import org.opensearch.extensions.EnvironmentSettingsRequest;
import org.opensearch.extensions.AddSettingsUpdateConsumerRequest;
Expand Down Expand Up @@ -554,10 +555,7 @@ public void sendActionListenerOnFailureRequest(TransportService transportService
transportService.sendRequest(
opensearchNode,
ExtensionsOrchestrator.REQUEST_EXTENSION_ACTION_LISTENER_ON_FAILURE,
new ExtensionRequest(
ExtensionsOrchestrator.RequestType.REQUEST_EXTENSION_ACTION_LISTENER_ON_FAILURE,
failureException.toString()
),
new ExtensionActionListenerOnFailureRequest(failureException.toString()),
listenerHandler
);
} catch (Exception e) {
Expand Down

0 comments on commit d7b873c

Please sign in to comment.