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

[Backport 2.x] Validate 409s occur when multiple config updates happen simultaneously #3962

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 15f5b7b from #3909.

#3909)

### Description
Added new TenantAsyncActionTest.java file to put api unit tests for the
/api/tenants api call- additionally wrote new unit test to test for
parallel PUT /tenant/{name} calls, that they successfully return a 409
call and retry the call.

* Category (Enhancement, New feature, Bug fix, Test fix, Refactoring,
Maintenance, Documentation)
Test fix

* Why these changes are required?
There was no test that checked for the behavior mentioned in the linked
ticket, so previously we didn't know if the issue still existed or not
(it apparently was fixed before), to make sure this doesn't happen again
for this particular case, I decided to write a concrete test for it.

* What is the old behavior before changes and new behavior after
changes?
Test was added, there's no behavior change?

### Issues Resolved
- #1402 - added unit test to cover bug in this issue

### Testing
Added new tenant action unit test to test parallel tenant api calls.

### Check List
- [x] New functionality includes testing
- [x] New functionality has been documented
- [x] Commits are signed per the DCO using --signoff

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](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

---------

Signed-off-by: Prabhas Kurapati <[email protected]>
(cherry picked from commit 15f5b7b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a2447c3) 65.44% compared to head (b789e7f) 65.39%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              2.x    #3962      +/-   ##
==========================================
- Coverage   65.44%   65.39%   -0.05%     
==========================================
  Files         297      297              
  Lines       21051    21051              
  Branches     3447     3447              
==========================================
- Hits        13776    13767       -9     
- Misses       5564     5574      +10     
+ Partials     1711     1710       -1     

see 3 files with indirect coverage changes

@peternied peternied merged commit a0c3dba into 2.x Jan 19, 2024
88 checks passed
@peternied peternied deleted the backport/backport-3909-to-2.x branch January 19, 2024 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants