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 number of total shards in partial search response #543

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

bugmakerrrrrr
Copy link
Contributor

Description

The totalShards in SearchResponse includes skipped shards, but the partial search response in AsynchronousSearchProgressListener does not account for this.

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

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.

@bugmakerrrrrr
Copy link
Contributor Author

@bharath-techie can we merge this

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@b014140). Click here to learn what that means.

❗ Current head 1120f2b differs from pull request most recent head c3c4c14. Consider uploading reports for the commit c3c4c14 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #543   +/-   ##
=======================================
  Coverage        ?   84.06%           
  Complexity      ?      559           
=======================================
  Files           ?       61           
  Lines           ?     2046           
  Branches        ?      146           
=======================================
  Hits            ?     1720           
  Misses          ?      230           
  Partials        ?       96           

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

Signed-off-by: panguixin <[email protected]>
Signed-off-by: Marc Handalian <[email protected]>
@mch2
Copy link
Member

mch2 commented Apr 30, 2024

rebased this - including in 2.14 - thanks @bugmakerrrrrr

@mch2 mch2 added the backport 2.x backport to 2.x label Apr 30, 2024
@mch2 mch2 merged commit 0402b6d into opensearch-project:main Apr 30, 2024
13 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 30, 2024
Signed-off-by: panguixin <[email protected]>
Signed-off-by: Marc Handalian <[email protected]>
(cherry picked from commit 0402b6d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mch2 pushed a commit that referenced this pull request Apr 30, 2024
(cherry picked from commit 0402b6d)

Signed-off-by: panguixin <[email protected]>
Signed-off-by: Marc Handalian <[email protected]>
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
Labels
backport 2.x backport to 2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants