-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][ml]Revert a behavior change of releasing idle offloaded ledger handle: only release idle BlobStoreBackedReadHandle #24384
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]Revert a behavior change of releasing idle offloaded ledger handle: only release idle BlobStoreBackedReadHandle #24384
Conversation
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/ManagedLedgerImpl.java
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #24384 +/- ##
============================================
+ Coverage 73.57% 74.25% +0.67%
+ Complexity 32624 32301 -323
============================================
Files 1877 1867 -10
Lines 139502 145268 +5766
Branches 15299 16610 +1311
============================================
+ Hits 102638 107867 +5229
+ Misses 28908 28863 -45
- Partials 7956 8538 +582
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
the title "[fix][ml]Revert a behavior change of releasing idle offloaded ledger handle: only release idle BlobStoreBackedReadHandle " is slightly misleading since even before it would only release idle BlobStoreBackedReadHandleImpls since that's the only implementation of OffloadedLedgerHandle. |
…dle: only release idle BlobStoreBackedReadHandle
589edb7 to
0a4eca2
Compare
…handle: only release idle BlobStoreBackedReadHandle (apache#24384) (cherry picked from commit e0d7faa) (cherry picked from commit 9adbbbf)
…handle: only release idle BlobStoreBackedReadHandle (apache#24384) (cherry picked from commit e0d7faa) (cherry picked from commit 1294a56)
…handle: only release idle BlobStoreBackedReadHandle (apache#24384) (cherry picked from commit e0d7faa) (cherry picked from commit 9adbbbf)
…handle: only release idle BlobStoreBackedReadHandle (apache#24384) (cherry picked from commit e0d7faa) (cherry picked from commit 9adbbbf)
…handle: only release idle BlobStoreBackedReadHandle (apache#24384) (cherry picked from commit e0d7faa) (cherry picked from commit 9adbbbf)
…handle: only release idle BlobStoreBackedReadHandle (apache#24384) (cherry picked from commit e0d7faa) (cherry picked from commit 1294a56)
…handle: only release idle BlobStoreBackedReadHandle (apache#24384) (cherry picked from commit e0d7faa) (cherry picked from commit 1294a56) (cherry picked from commit 36b8450)
…handle: only release idle BlobStoreBackedReadHandle (apache#24384) (cherry picked from commit e0d7faa) (cherry picked from commit 9adbbbf)
…handle: only release idle BlobStoreBackedReadHandle (apache#24384) (cherry picked from commit e0d7faa) (cherry picked from commit 1294a56) (cherry picked from commit 36b8450)
…handle: only release idle BlobStoreBackedReadHandle (apache#24384) (cherry picked from commit e0d7faa)
…handle: only release idle BlobStoreBackedReadHandle (apache#24384)
…handle: only release idle BlobStoreBackedReadHandle (apache#24384)
Motivation
#24381 changed the behavior below:
BlobStoreBackedReadHandleBlobStoreBackedReadHandle, because the methodlastAccessTimestamp()always returns-1if its type is notBlobStoreBackedReadHandleModifications
lastAccessTimestampfirst, and modifypendingReadingsecond, to avoid getting a newpendingReadingand an olderlastAccessTimestamp, which leads to an incorrect ledger handle invalidation.Potential issue
The following issue still exists. I will push a new PR to fix it in the future.
ledgerHandle.readAsyncDocumentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: x