Repository navigation
[improve][broker] Remove locallyAcquiredLock when removeOwnership - #18197
Merged
Merged
Conversation
coderzc
approved these changes
Oct 26, 2022
Technoboy-
approved these changes
Oct 26, 2022
Contributor
|
Please rebase the branch |
| */ | ||
| public CompletableFuture<Void> removeOwnership(NamespaceBundle bundle) { | ||
| ResourceLock<NamespaceEphemeralData> lock = locallyAcquiredLocks.get(bundle); | ||
| ResourceLock<NamespaceEphemeralData> lock = locallyAcquiredLocks.remove(bundle); |
Contributor
There was a problem hiding this comment.
Could you please help add a unit test? It will help to avoid any regression for this part.
Contributor
Author
done |
codelipenghui
approved these changes
Oct 27, 2022
Codecov Report
@@ Coverage Diff @@
## master #18197 +/- ##
============================================
- Coverage 34.91% 32.18% -2.74%
+ Complexity 5707 4252 -1455
============================================
Files 607 398 -209
Lines 53396 43548 -9848
Branches 5712 4474 -1238
============================================
- Hits 18644 14014 -4630
+ Misses 32119 27479 -4640
+ Partials 2633 2055 -578
Flags with carried forward coverage won't be shown. Click here to find out more.
|
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jan 10, 2023
…ache#18197) (cherry picked from commit b061c6a) (cherry picked from commit 5e4ce51)
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jan 11, 2023
…ache#18197) (cherry picked from commit b061c6a) (cherry picked from commit 5e4ce51)
Technoboy-
pushed a commit
that referenced
this pull request
Feb 8, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #18196
Master Issue: #18196
Motivation
Modifications
change get to remove
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: