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

Delete useless loop in TransportBulkAction$BulkOperation.doRun() #16950

Conversation

kkewwei
Copy link
Contributor

@kkewwei kkewwei commented Jan 5, 2025

Description

The second loop is useless, we can merge it into the first loop. The exist it/ut can cover the changed, I don't know whether I should add additional test about it.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

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.

Copy link
Contributor

github-actions bot commented Jan 5, 2025

❕ Gradle check result for 0e48cc9: 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

codecov bot commented Jan 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.42%. Comparing base (8191de8) to head (7aa62d0).
Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #16950      +/-   ##
============================================
+ Coverage     72.21%   72.42%   +0.20%     
- Complexity    65289    65402     +113     
============================================
  Files          5301     5301              
  Lines        303725   303750      +25     
  Branches      44008    44011       +3     
============================================
+ Hits         219340   219991     +651     
+ Misses        66394    65744     -650     
- Partials      17991    18015      +24     

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

@kkewwei
Copy link
Contributor Author

kkewwei commented Jan 5, 2025

❕ Gradle check result for 0e48cc9: 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.

org.opensearch.cluster.MinimumClusterManagerNodesIT.testThreeNodesNoClusterManagerBlock #14289

@andrross andrross added backport 2.x Backport to 2.x branch Indexing Indexing, Bulk Indexing and anything related to indexing labels Jan 8, 2025
Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>
@kkewwei kkewwei force-pushed the delete_useless_loop_in_TransportBulkAction branch from 0e48cc9 to 7aa62d0 Compare January 10, 2025 21:43
Copy link
Contributor

✅ Gradle check result for 7aa62d0: SUCCESS

@andrross andrross merged commit fccd6c5 into opensearch-project:main Jan 10, 2025
37 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 10, 2025
Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>
(cherry picked from commit fccd6c5)
Signed-off-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 branch Indexing Indexing, Bulk Indexing and anything related to indexing skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants