You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "zhu-mingye (via GitHub)" <gi...@apache.org> on 2023/09/18 04:46:14 UTC
[GitHub] [pulsar] zhu-mingye opened a new issue, #21196: [Bug] about metrics bug
zhu-mingye opened a new issue, #21196:
URL: https://github.com/apache/pulsar/issues/21196
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Version
2.8.4
java8
linux
### Minimal reproduce step
1. Create springboot program integrated with pulsar2.8.4
2. Produce and consume at the same time
3. Modify the code and restart repeatedly during the consumption process
4. Check the status of the topic on the pulsar manage page and check the interface response data. It is found that msgInCounter in the response data is less than msgOutCounter in the subscriber.
<img width="1153" alt="image" src="https://github.com/apache/pulsar/assets/58576849/6fd718bd-5691-4f25-95ca-68de247a884c">
### What did you expect to see?
msgInCounter is equal to or greater than msgOutCounter
### What did you see instead?
Check the status of the topic on the pulsar manage page and check the interface response data. It is found that msgInCounter in the response data is less than msgOutCounter in the subscriber.
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] about metrics bug [pulsar]
Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat closed issue #21196: [Bug] about metrics bug
URL: https://github.com/apache/pulsar/issues/21196
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] about metrics bug [pulsar]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #21196:
URL: https://github.com/apache/pulsar/issues/21196#issuecomment-1773594946
The issue had no activity for 30 days, mark with Stale label.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] about metrics bug [pulsar]
Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat commented on issue #21196:
URL: https://github.com/apache/pulsar/issues/21196#issuecomment-6381724805
Thanks @Zzm0809 for the report. This is expected. `msgOutCounter` counts every message dispatched to consumers, including redeliveries (`Consumer.java` lines 465-466 on master). A subscription also keeps the counts of consumers that have disconnected (`PersistentSubscription.java` line 386). When you restart the consumer during consumption, messages delivered but not yet acknowledged are redelivered to the new consumer and counted again. So `msgOutCounter` can exceed `msgInCounter`. I'm closing this issue. If you see `msgOutCounter` above `msgInCounter` with no redeliveries on a currently supported release (4.0.x, 4.2.x or 5.0.x), please reopen.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org