-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][ml] Fix ManagedCursorImpl.individualDeletedMessages concurrent issue #24338
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][ml] Fix ManagedCursorImpl.individualDeletedMessages concurrent issue #24338
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #24338 +/- ##
============================================
+ Coverage 73.57% 74.24% +0.67%
+ Complexity 32624 32257 -367
============================================
Files 1877 1866 -11
Lines 139502 145126 +5624
Branches 15299 16593 +1294
============================================
+ Hits 102638 107753 +5115
+ Misses 28908 28854 -54
- Partials 7956 8519 +563
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
@dao-jun it seems that the only other location is in recoverIndividualDeletedMessages method. |
lhotari
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also handle the concurrency issue in recoverIndividualDeletedMessages method. A write lock would be needed there.
fixed |
|
related to #22966 |
lhotari
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java
Outdated
Show resolved
Hide resolved
…issue (apache#24338) (cherry picked from commit 376ae57) (cherry picked from commit c909926)
…issue (apache#24338) (cherry picked from commit 376ae57) (cherry picked from commit fac0c16)
…issue (apache#24338) (cherry picked from commit 376ae57) (cherry picked from commit c909926)
…issue (apache#24338) (cherry picked from commit 376ae57) (cherry picked from commit c909926)
…issue (apache#24338) (cherry picked from commit 376ae57) (cherry picked from commit fac0c16)
…issue (apache#24338) (cherry picked from commit 376ae57) (cherry picked from commit c909926)
…issue (apache#24338) (cherry picked from commit 376ae57) (cherry picked from commit c909926)
…issue (apache#24338) (cherry picked from commit 376ae57)
Motivation
Fix ManagedCursorImpl.individualDeletedMessages concurrent issue.
Modifications
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-complete