From 95ad2c72cbdd900e00b3903587101ca1723e2ea3 Mon Sep 17 00:00:00 2001 From: Chenyang Ji Date: Tue, 16 Jul 2024 13:11:27 -0700 Subject: [PATCH] fix build error in NodeRequest class (#18) Signed-off-by: Chenyang Ji --- .../transport/top_queries/TransportTopQueriesAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java b/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java index a9241d77..473a048e 100644 --- a/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java +++ b/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java @@ -10,6 +10,7 @@ import org.opensearch.action.FailedNodeException; import org.opensearch.action.support.ActionFilters; +import org.opensearch.action.support.nodes.BaseNodeRequest; import org.opensearch.action.support.nodes.TransportNodesAction; import org.opensearch.cluster.service.ClusterService; import org.opensearch.common.inject.Inject; @@ -22,7 +23,6 @@ import org.opensearch.plugin.insights.rules.action.top_queries.TopQueriesResponse; import org.opensearch.plugin.insights.settings.QueryInsightsSettings; import org.opensearch.threadpool.ThreadPool; -import org.opensearch.transport.TransportRequest; import org.opensearch.transport.TransportService; import java.io.IOException; @@ -112,7 +112,7 @@ protected TopQueries nodeOperation(final NodeRequest nodeRequest) { /** * Inner Node Top Queries Request */ - public static class NodeRequest extends TransportRequest { + public static class NodeRequest extends BaseNodeRequest { final TopQueriesRequest request;