apache / apache/pulsar

Topic subscription backlog can't be cleared

Open
#12,075 2 comments 0 reactions 0 assignees View on GitHub
lifecycle/stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

**Describe the bug**
Pulsar v2.6.2
Use clear-backlog command:
bin/pulsar-admin topics clear-backlog ***
Topic subscription backlog can't be cleared.

Use unload command:
bin/pulsar-admin topics unload ***
Topic subscription backlog can be cleared.

But I don't know if any messages are lost, and why the clear backlog can't be cleared. Is it a counter error?

![image](https://user-images.githubusercontent.com/54351417/133718778-5c730f9c-88bf-4c41-b205-97e83a63944c.png)

**To Reproduce**
Steps to reproduce the behavior:
1.start consumer, receive msg
2.reconsumerLater msg

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the `pulsar-admin topics clear-backlog` and `unload` commands, following the consumer and `reconsumerLater` steps in the report. Trace the topic subscription backlog handling for both commands and verify whether clearing the backlog removes or loses messages. Done means the behavior is explained and the clear-backlog path works as intended with regression coverage.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.