apache / apache/pulsar

[Bug] about metrics bug

Open
#21,196 1 comment 0 reactions 0 assignees View on GitHub
help wanted Stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### 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.

image

### 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!

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the issue with Pulsar 2.8.4, Java 8, Linux, and a Spring Boot producer/consumer while repeatedly restarting during consumption. Compare the topic management page and interface response values for msgInCounter and msgOutCounter; done means the counters satisfy the expected relationship under this scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, distributed-systems, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.