-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[feat][broker][PIP-195] Add metrics for bucket delayed message tracker #19716
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
3944bd1 to
1d0d7d7
Compare
...broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentSubscription.java
Outdated
Show resolved
Hide resolved
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/util/StatsBuckets.java
Outdated
Show resolved
Hide resolved
bff1402 to
a0a917e
Compare
a0a917e to
a776d18
Compare
e0486bd to
067cc2c
Compare
f56fcd7 to
8b8ec82
Compare
921158f to
f10b352
Compare
|
|
||
| CompletableFuture<Enumeration<LedgerEntry>> getLedgerEntryThenCloseLedger(LedgerHandle ledger, | ||
| long firstEntryId, long lastEntryId) { | ||
| CompletableFuture<Enumeration<LedgerEntry>> getLedgerEntry(LedgerHandle ledger, |
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.
Ledger is already closed after createBucketSnapshot, so we don't need to close it again.
18952cf to
64967e8
Compare
| * Tells whether this DelayedDeliveryTracker contains this message index, | ||
| * if the tracker is not supported it or disabled this feature also will return false. | ||
| */ | ||
| boolean containsMessage(long ledgerId, long entryId); |
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.
Why did we remove this method in this PR?
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.
Oh, sorry this addresses a previous comment.
See: #17677 (review)
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.
Thanks for the context!
PIP: #16763
Motivation
Add metrics for bucket delayed message tracker.
Modifications
The new metrics and change metrics:
statelabel can besucceed,failed,all(theallmeans is the total number of all states) and thetypelabel can becreate,load,delete,merge.typelabel can becreate,load,delete,mergeThe label
quantilecan be:containsMessagefrom DelayedDeliveryTracker interface ([feat][broker][PIP-195] Implement BookkeeperBucketSnapshotStorage - part3 #17677 (review))closeLedgeraftergetLedgerEntryVerifying 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:)
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: