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

Update to OpenSearch 2.10 #174

Merged
merged 1 commit into from
Oct 13, 2023
Merged

Conversation

reta
Copy link
Collaborator

@reta reta commented Oct 13, 2023

Description

Update to OpenSearch 2.10

Issues Resolved

N/A

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@reta
Copy link
Collaborator Author

reta commented Oct 13, 2023

@nknize just FYI - the things we ask users to absorb as the result of refactorings

@nknize
Copy link

nknize commented Oct 13, 2023

@nknize just FYI - the things we ask users to absorb as the result of refactorings

It's the cost of OpenSearch providing a forward facing API on an Elasticsearch product that wasn't designed to provide a forward facing API. This is going to go on for as long as we don't converge on a forward facing API. We'll get there but folks shouldn't expect it to happen instantaneously.

Maybe we create a meta issue to track the classes being used in downstream projects to make it easier on us properly annotating classes in the core?

@reta
Copy link
Collaborator Author

reta commented Oct 13, 2023

@nknize just FYI - the things we ask users to absorb as the result of refactorings

It's the cost of OpenSearch providing a forward facing API on an Elasticsearch product that wasn't designed to provide a forward facing API. This is going to go on for as long as we don't converge on a forward facing API. We'll get there but folks shouldn't expect it to happen instantaneously.

I understand that for sure, just wanted to have a live example for you :)

Maybe we create a meta issue to track the classes being used in downstream projects to make it easier on us properly annotating classes in the core?

That could be very difficult to compile I think

@nknize
Copy link

nknize commented Oct 13, 2023

That could be very difficult to compile I think

It would get long for sure (just like the flaky test meta issue). For now I've been tracking this by just referencing opensearch-project/OpenSearch#5910 so that it gets added to the audit trail for history retention. It's easier than digitally spelunking the project PRs.

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Small nit?


try (XContentParser parser = XContentHelper.createParser(
try (XContentParser parser = org.opensearch.common.xcontent.XContentHelper.createParser(
Copy link
Member

Choose a reason for hiding this comment

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

We don't need the full namespace here, do we?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes we do sadly, we have 2 XContentHelpers: class imports org.opensearch.core.common.xcontent.XContentHelper but this is another one

@reta reta merged commit 215a171 into opensearch-project:main Oct 13, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants