-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][ml] Offload ledgers without check ledger length #24344
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
[improve][ml] Offload ledgers without check ledger length #24344
Conversation
|
/pulsarbot rerun-failure-checks |
dao-jun
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.
maybe we need to fix the bk bug, but the PR still makes sense
.../org/apache/bookkeeper/mledger/offload/filesystem/impl/FileSystemManagedLedgerOffloader.java
Outdated
Show resolved
Hide resolved
.../org/apache/bookkeeper/mledger/offload/filesystem/impl/FileSystemManagedLedgerOffloader.java
Outdated
Show resolved
Hide resolved
.../java/org/apache/bookkeeper/mledger/offload/jcloud/impl/BlobStoreManagedLedgerOffloader.java
Outdated
Show resolved
Hide resolved
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.
log messages need revisiting
…/mledger/offload/filesystem/impl/FileSystemManagedLedgerOffloader.java Co-authored-by: Lari Hotari <lhotari@users.noreply.github.com>
…ger/offload/jcloud/impl/BlobStoreManagedLedgerOffloader.java Co-authored-by: Lari Hotari <lhotari@users.noreply.github.com>
|
/pulsarbot rerun-failure-checks |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #24344 +/- ##
============================================
+ Coverage 73.57% 74.23% +0.65%
+ Complexity 32624 2404 -30220
============================================
Files 1877 1866 -11
Lines 139502 145141 +5639
Branches 15299 16597 +1298
============================================
+ Hits 102638 107744 +5106
+ Misses 28908 28882 -26
- Partials 7956 8515 +559
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Co-authored-by: Lari Hotari <lhotari@users.noreply.github.com> (cherry picked from commit 3ccea6a)
Co-authored-by: Lari Hotari <lhotari@users.noreply.github.com> (cherry picked from commit 3ccea6a)
Co-authored-by: Lari Hotari <lhotari@users.noreply.github.com> (cherry picked from commit 3ccea6a)
Co-authored-by: Lari Hotari <lhotari@users.noreply.github.com> (cherry picked from commit 3ccea6a)
Co-authored-by: Lari Hotari <lhotari@users.noreply.github.com>
Co-authored-by: Lari Hotari <lhotari@users.noreply.github.com>
Motivation
Bookie has bugs that Ledger may close with a zero length, even if it has entries, such as [fix] Write stuck due to pending add callback by multiple threads bookkeeper#4557. See example[1]
Since a Pulsar message at least contains message metadata, Pulsar will never write entries to BKs with an empty payload, we can confirm the ledger will never be empty when
ledger.entreisis larger than0.The offloading tasks checks both
ledger lengthandentries, which prevents offloading and throws an errorjava.util.concurrent.CompletionException: java.lang.IllegalArgumentException: An empty or open ledger should never be offloaded[1]: ledger close with a zero length, but it has
320entriesModifications
Skip the checking of
ledger.length, just checkledger.entres, and print a warn log if a ledger's length is not expected,Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: x