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

[BUG] SDKClient test failures due to Apache HttpClient / Core 5.x upgrade #210

Closed
joshpalis opened this issue Nov 1, 2022 · 1 comment · Fixed by #231
Closed

[BUG] SDKClient test failures due to Apache HttpClient / Core 5.x upgrade #210

joshpalis opened this issue Nov 1, 2022 · 1 comment · Fixed by #231
Assignees
Labels
bug Something isn't working

Comments

@joshpalis
Copy link
Member

What is the bug?

SDKClient tests using apache HttpClient need to be ugraded to Core 5.x

TestSDKClient > testCreateClient() FAILED
    java.lang.NoClassDefFoundError: org/apache/http/HttpHost
        at org.opensearch.sdk.SDKClient.initializeClient(SDKClient.java:38)
        at org.opensearch.sdk.TestSDKClient.testCreateClient(TestSDKClient.java:27)

        Caused by:
        java.lang.ClassNotFoundException: org.apache.http.HttpHost
            at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
            at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
            at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
            ... 2 more

How can one reproduce the bug?

./gradlew test

Do you have any additional context?

Tests are failing since the apache HttpClient has been upgraded via this PR : opensearch-project/OpenSearch#4459

@joshpalis joshpalis added bug Something isn't working untriaged labels Nov 1, 2022
@joshpalis joshpalis self-assigned this Nov 1, 2022
@joshpalis
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants