-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][broker] Fix wrong backlog age metrics when the mark delete position point to a deleted ledger #24518
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][broker] Fix wrong backlog age metrics when the mark delete position point to a deleted ledger #24518
Conversation
…tion point to a deleted ledger
|
/pulsarbot run-failure-checks |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #24518 +/- ##
============================================
+ Coverage 73.57% 74.29% +0.72%
+ Complexity 32624 32498 -126
============================================
Files 1877 1868 -9
Lines 139502 145946 +6444
Branches 15299 16737 +1438
============================================
+ Hits 102638 108431 +5793
- Misses 28908 28922 +14
- Partials 7956 8593 +637
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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
…tion point to a deleted ledger (apache#24518) (cherry picked from commit 7282c06) (cherry picked from commit 6c8d558)
…tion point to a deleted ledger (apache#24518) (cherry picked from commit 7282c06) (cherry picked from commit 6c8d558)
…tion point to a deleted ledger (apache#24518) (cherry picked from commit 7282c06)
|
@codelipenghui When backporting this to branch-3.0, the added test fails. (backport in commit lhotari@eaa1670) Do you have a chance to backport this to branch-3.0? |
|
@codelipenghui Do you have a chance to backport this to branch-3.0? |
…th for backlog quota check Cherry-picked PR apache#24518 to branch-3.0 with necessary API compatibility fixes: - Cast ManagedLedger to ManagedLedgerImpl for getFirstPosition() and getNextValidPosition() - Fixed admin client URL path from "backlogQuotaCheck" to "backlog-quota-check" to match server endpoint This ensures the backlog quota check test passes and admin.brokers().backlogQuotaCheck() works correctly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> (cherry picked from commit a20358067641808d8f7a792090f070741685602f)
… delete position point to a deleted ledger (apache#24518) (apache#24671) (cherry picked from commit 41c32d6)
… delete position point to a deleted ledger (apache#24518) (apache#24671) (cherry picked from commit 41c32d6)
… delete position point to a deleted ledger (apache#24518) (apache#24671) Signed-off-by: Zixuan Liu <nodeces@gmail.com>
…tion point to a deleted ledger (apache#24518)
…tion point to a deleted ledger (apache#24518)
Motivation
The mark delete position may point to ledgers that have been cleaned up/deleted. This causes:
You can use the newly added test to reproduce the issue.
Verifying this change
Added new test
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