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

[Streaming Indexing] Enhance RestClient with a new streaming API support #14437

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

reta
Copy link
Collaborator

@reta reta commented Jun 18, 2024

Description

Enhance RestClient with a new streaming API support

Related Issues

Resolves #9072

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

@github-actions github-actions bot added Build Libraries & Interfaces enhancement Enhancement or improvement to existing feature or request v2.16.0 Issues and PRs related to version 2.16.0 v3.0.0 Issues and PRs related to version 3.0.0 labels Jun 18, 2024
Copy link
Contributor

❌ Gradle check result for a6ec079: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@reta reta added backport 2.x Backport to 2.x branch and removed skip-changelog labels Jun 18, 2024
Copy link
Contributor

❌ Gradle check result for 5b112c6: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for 4afb721: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

✅ Gradle check result for 4afb721: SUCCESS

Copy link

codecov bot commented Jun 19, 2024

Codecov Report

Attention: Patch coverage is 28.26087% with 99 lines in your changes missing coverage. Please review.

Project coverage is 71.69%. Comparing base (a34270d) to head (907cda6).
Report is 2 commits behind head on main.

Files Patch % Lines
...rc/main/java/org/opensearch/client/RestClient.java 31.70% 56 Missing ⚠️
...ch/client/http/ReactiveHttpUriRequestProducer.java 0.00% 14 Missing ⚠️
.../opensearch/client/streaming/StreamingRequest.java 43.47% 12 Missing and 1 partial ⚠️
...opensearch/client/streaming/StreamingResponse.java 0.00% 9 Missing ⚠️
...c/main/java/org/opensearch/client/Cancellable.java 0.00% 7 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #14437      +/-   ##
============================================
- Coverage     71.77%   71.69%   -0.08%     
+ Complexity    62302    62229      -73     
============================================
  Files          5125     5128       +3     
  Lines        292473   292596     +123     
  Branches      42258    42268      +10     
============================================
- Hits         209912   209767     -145     
- Misses        65324    65528     +204     
- Partials      17237    17301      +64     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

✅ Gradle check result for 5727a15: SUCCESS

Copy link
Contributor

✅ Gradle check result for 2013db6: SUCCESS

@@ -3,5 +3,8 @@
<exclusions>
<module name="org.jboss.resteasy.resteasy-jackson2-provider" />
</exclusions>
<dependencies>
Copy link
Member

Choose a reason for hiding this comment

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

Not really related to this PR, but do you think this wildfly subproject is adding value? According to the developer guide, this exists to test clients in "interesting" places so I suppose it is somewhat relevant here. Would you consider adding HTTP/2 or streaming specific tests to this package? If not, I'm going to question its value :)

The primary overhead of this subproject is that it brings in dependencies like resteasy that otherwise wouldn't be here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Would you consider adding HTTP/2 or streaming specific tests to this package? If not, I'm going to question its value :)

I am working on test cases as we speak :) I think we could definitely add streaming tests there, thanks a lot for the idea @andrross !

Copy link
Contributor

❕ Gradle check result for 6150ca1: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link
Contributor

❌ Gradle check result for 07b0ec0: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for caadea4: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❕ Gradle check result for d261cd6: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link
Contributor

✅ Gradle check result for 907cda6: SUCCESS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch Build Libraries & Interfaces enhancement Enhancement or improvement to existing feature or request v2.16.0 Issues and PRs related to version 2.16.0 v3.0.0 Issues and PRs related to version 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Streaming Indexing] Enhance RestClient with a new streaming API support
2 participants