Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build error in NodeRequest class for 2.x #18

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

ansjcy
Copy link
Member

@ansjcy ansjcy commented Jul 16, 2024

Description

Currently in 2.x the build is failing with

Type parameter 'org.opensearch.plugin.insights.rules.transport.top_queries.TransportTopQueriesAction.NodeRequest' is not within its bound; should extend 'org.opensearch.action.support.nodes.BaseNodeRequest'

This is because we missed one change diff in 2.x when cutting the branch in query insights repo.

in 2.x we are still using the deprecated BaseNodeRequest while in 3.0 we switched to TransportRequest since we deprecated the BaseNodeRequest.

My previous related changes on 2.x in core repo: https://github.com/opensearch-project/OpenSearch/pull/12203/files#diff-933240c7b0d2df71fdafb54891e8508cff8c45efa814cd6ba3626b58dcd60ee5R126
My previous related changes on main in core repo: https://github.com/opensearch-project/OpenSearch/pull/11904/files#diff-933240c7b0d2df71fdafb54891e8508cff8c45efa814cd6ba3626b58dcd60ee5R126

Other examples in core:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ansjcy ansjcy changed the title fix build error in NodeRequest class fix build error in NodeRequest class for 2.x Jul 16, 2024
Copy link
Collaborator

@jainankitk jainankitk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Signed-off-by: Chenyang Ji <cyji@amazon.com>
@ansjcy ansjcy force-pushed the fix-NodeRequest-build-error branch from c01a74a to 96e6370 Compare July 16, 2024 20:04
@ansjcy ansjcy merged commit 95ad2c7 into opensearch-project:2.x Jul 16, 2024
10 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 16, 2024
Signed-off-by: Chenyang Ji <cyji@amazon.com>
(cherry picked from commit 95ad2c7)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ansjcy pushed a commit that referenced this pull request Jul 17, 2024
(cherry picked from commit 95ad2c7)

Signed-off-by: Chenyang Ji <cyji@amazon.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>
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