-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][ml] Optimize ledger opening by skipping fully acknowledged ledgers #24655
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
Conversation
75d463e to
9e68908
Compare
9e68908 to
d469857
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #24655 +/- ##
============================================
- Coverage 74.35% 74.34% -0.02%
- Complexity 32711 33209 +498
============================================
Files 1884 1884
Lines 146913 146943 +30
Branches 16874 16882 +8
============================================
+ Hits 109244 109245 +1
- Misses 29002 29037 +35
+ Partials 8667 8661 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
I have added label |
codelipenghui
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
…ledgers (apache#24655) (cherry picked from commit da0d116) (cherry picked from commit 9b66080)
…ledgers (apache#24655) (cherry picked from commit da0d116) (cherry picked from commit 9b66080)
…ledgers (apache#24655) (cherry picked from commit da0d116) (cherry picked from commit 9b66080)
…ledgers (apache#24655) (cherry picked from commit da0d116)
…ledgers (apache#24655) (cherry picked from commit da0d116)
- in cherry-picking of apache#24655 in commit d392976
…ledgers (apache#24655) (cherry picked from commit da0d116) (cherry picked from commit d392976)
…ledgers (apache#24655) (cherry picked from commit da0d116) (cherry picked from commit d392976)
Motivation
We have an optimization(#21739) that skips messages that have already been acknowledged, but that doesn't prevent the ledger been opened. We can optimize it further by skipping the opening of those ledgers where all entries have already been acknowledged
Modifications
Check if all entries in this ledger have been deleted (acknowledged). If so, skip opening the ledger and move to the next one.
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: