Skip to content

[Backport 2.x] Fix IngestServiceTests.testBulkRequestExecutionWithFailures#14926

Merged
andrross merged 1 commit into2.xfrom
backport/backport-14918-to-2.x
Jul 23, 2024
Merged

[Backport 2.x] Fix IngestServiceTests.testBulkRequestExecutionWithFailures#14926
andrross merged 1 commit into2.xfrom
backport/backport-14918-to-2.x

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

Backport 087355f from #14918.

The test would previously fail if the randomness led to only a single
indexing request being included in the bulk payload. This change
guarantees multiple indexing requests in order to ensure the batch logic
kicks in.

Also replace some unneeded mocks with real classes.

Signed-off-by: Andrew Ross <andrross@amazon.com>
(cherry picked from commit 087355f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for 0232981: SUCCESS

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.69%. Comparing base (788a7fe) to head (0232981).
Report is 12 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #14926      +/-   ##
============================================
+ Coverage     71.52%   71.69%   +0.16%     
- Complexity    62546    62741     +195     
============================================
  Files          5110     5118       +8     
  Lines        293684   294056     +372     
  Branches      42800    42846      +46     
============================================
+ Hits         210063   210814     +751     
+ Misses        65978    65628     -350     
+ Partials      17643    17614      -29     

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

@andrross andrross merged commit f7e4862 into 2.x Jul 23, 2024
@andrross andrross deleted the backport/backport-14918-to-2.x branch July 23, 2024 20:36
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…ch-project#14918) (opensearch-project#14926)

The test would previously fail if the randomness led to only a single
indexing request being included in the bulk payload. This change
guarantees multiple indexing requests in order to ensure the batch logic
kicks in.

Also replace some unneeded mocks with real classes.

(cherry picked from commit 087355f)

Signed-off-by: Andrew Ross <andrross@amazon.com>
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>
Signed-off-by: kkewwei <kkewwei@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant