apache / apache/pulsar

Add the backlog to the ledger of the topic's subscription

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

Description

**Is your feature request related to a problem? Please describe.**
At present, when the disk space of bookie cannot be released, you can only view the topic subscription's backlog or the partition's backlog, but there are several ledgers in a partition. You don't know which ledger the backlog is stuck on.

**Describe the solution you'd like**
In the broker component, add a backlog on the ledger.
![image](https://user-images.githubusercontent.com/54351417/138984983-ea6b293d-1348-4e01-a507-d46519097fd6.png)

Contributor guide

Open the contributing guide

Research direction

Start in the broker component where topic or partition subscription backlog is calculated, then trace how backlog state is associated with individual ledgers. Use the attached example to confirm the expected ledger-level information and add coverage for partitions containing multiple ledgers. Done means users can identify which ledger is retaining backlog.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, distributed-systems
Issue type
Feature
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.