apache / apache/pulsar

[Bug] The topic message storageSize is 0, Cannot skip msgBacklog for consumer

Open
#18,880 1 comment 0 reactions 0 assignees View on GitHub
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.9.3

### Minimal reproduce step

The commands clear-backlog, skip-all, skip --count do not skip the msgBacklog

### What did you expect to see?

skip msgBacklog for consumer

### What did you see instead?

![image](https://user-images.githubusercontent.com/1320933/206953792-70adf2a3-4024-49c2-af81-fbb5792e52cd.png)

![image](https://user-images.githubusercontent.com/1320933/206953865-aa0a6549-38ad-4a25-a7a9-7c17b4345847.png)

![Uploading image.png…]()

### Anything else?

Topic Message TTL set 43200 secnons

### Are you willing to submit a PR?

- [X] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue on Pulsar 2.9.3 with a topic TTL of 43,200 seconds, then run clear-backlog, skip-all, and skip --count against a consumer. Trace the consumer backlog and message storageSize handling; done means these commands skip the msgBacklog as expected and a regression test covers the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.