From 27e8f044f33f70b0362648d2d6fc7be479227b73 Mon Sep 17 00:00:00 2001 From: Chenyang Ji Date: Tue, 6 Feb 2024 15:39:04 -0800 Subject: [PATCH] update to use BaseNodeRequest in 2.x --- .../transport/top_queries/TransportTopQueriesAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java b/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java index ddf614211bc41..4b4a277263c0f 100644 --- a/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java +++ b/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java @@ -11,6 +11,7 @@ import org.opensearch.OpenSearchException; 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; @@ -24,7 +25,6 @@ import org.opensearch.plugin.insights.rules.model.MetricType; 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; @@ -123,7 +123,7 @@ protected TopQueries nodeOperation(final NodeRequest nodeRequest) { * * @opensearch.internal */ - public static class NodeRequest extends TransportRequest { + public static class NodeRequest extends BaseNodeRequest { final TopQueriesRequest request;