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

[Refactor] Strings and OpenSearchException to core lib #911

Closed
wants to merge 1 commit into from

Conversation

nknize
Copy link

@nknize nknize commented May 22, 2023

Updates codebase to use new opensearch-core library for Strings and BaseOpenSearchException upstream refactor changes.

relates opensearch-project/OpenSearch#5910

Updates codebase to use new opensearch-core library for Strings and
BaseOpenSearchException upstream refactor changes.

Signed-off-by: Nicholas Walter Knize <[email protected]>
@nknize nknize added the enhancement New feature or request label May 22, 2023
@opensearch-trigger-bot opensearch-trigger-bot bot added backport 2.x infra Changes to infrastructure, testing, CI/CD, pipelines, etc. labels May 22, 2023
Copy link

@sudiptoguha sudiptoguha left a comment

Choose a reason for hiding this comment

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

Looks good.

@nknize
Copy link
Author

nknize commented May 23, 2023

The code change is fine. The build is fine. The integTest cluster is picking up a bad classpath for some reason that doesn't include opensearch-core.jar library. Usually this is fixed through testRuntimeOnly dependency in build.gradle but that's not having an affect. Even adding integTestRuntimeOnly config isn't having an affect. I haven't dug deeper than that so this will need a deeper look. Since something is up w/ the integTest classpath.

@nknize
Copy link
Author

nknize commented May 23, 2023

Oh I see why... the last published zip archive is dated Feb 01.. so the extracted opensearch-core-3.0.0-SNAPSHOT.jar doesn't contain the new org.opensearch.core.common.Strings class.. hence NoClassDefFound. @bbarani, do you publish nightly zip archive distros? Or just the jar files? Integ tests that use the zip archive will fail if they aren't current w/ the latest nightly jar.

@kaituo
Copy link
Collaborator

kaituo commented Aug 15, 2023

close the PR as other PR has already fixed the issue.

@kaituo kaituo closed this Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x enhancement New feature or request infra Changes to infrastructure, testing, CI/CD, pipelines, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants