-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
negative unackedMessages
in consumers stats
#6510
Comments
@codelipenghui #5929, Would you please help on this issue? |
Ok, thanks for your feedback, close this issue via #5929 |
Hi, we are running 2.9.x version of pulsar and we are currently seeing negative values for pulsar_subscription_unacked_messages metrics. We do know that consumer of given subscription is in fact "holding" msg until AckTimeout is reached (issue on our side we are looking to fix), but I was wondering could this also be the reason why pulsar_subscription_unacked_messages is growing (in the wrong direction (negative) ) as well and can I cross reference it in order to conclude that once issue has been resolved from our side this value should be zero. Or is it some bug on your side and this value should never come below 0? Notice that when we restart the consumer everything goes back to normal. P.S backlog remains 0-5 constantly |
Describe the bug
Pulsar docker image
apachepulsar/pulsar:2.5.0
. Standalone mode.I noticed that
pulsar_subscription_unacked_messages
value in the prometheus stats is a negative number fornon-persitent
topics.According my tests (not extensive) the bug appears only when topic type is
non-persistent
.Related: #5929
That is what i get:
To Reproduce
Steps to reproduce the behavior:
See the code below. It creates publisher/consumer for following topics:
non-persistent://sample/ns1/demo-1
# has hegativeunackedMessages
in consumers statspersistent://sample/ns1/demo-1
# no problemAnd that is pretty much it.
Expected behavior
Do not have negative
unackedMessages
/pulsar_subscription_unacked_messages
values.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: