Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improve] [ml] compress individual ack info to make maintain more records #21105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

poorbarcode
Copy link
Contributor

@poorbarcode poorbarcode commented Aug 31, 2023

Motivation

Broker serialize individualDeletedMessages as an array (1:1..1:5000],(2:-1..3:5000],,(100:-1..100:5000], each ledger will have a separate record, even if multiple ledgers are contiguous.

We can compress the contiguous records to one, such as (1:1...100:5000]. This can make one entry maintain more data.

Modifications

Compress the contiguous records to one to make one entry maintain more data.

Next to do: push another PR to compress the response of pulsar-admin topics stats.

In what cases would it be useful

  • There are several messages with a very long delay.
  • One shared consumer is stuck.
  • Lost some messages in clients due to incorrect usage

(Highlight) Note: This patch will have a big impact and needs to be cherry-picked and reviewed carefully.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: x

@poorbarcode poorbarcode self-assigned this Aug 31, 2023
@poorbarcode poorbarcode added the category/reliability The function does not work properly in certain specific environments or failures. e.g. data lost label Aug 31, 2023
@poorbarcode poorbarcode added this to the 3.2.0 milestone Aug 31, 2023
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Aug 31, 2023
@github-actions
Copy link

github-actions bot commented Oct 1, 2023

The pr had no activity for 30 days, mark with Stale label.

@github-actions github-actions bot added the Stale label Oct 1, 2023
@Technoboy- Technoboy- modified the milestones: 3.2.0, 3.3.0 Dec 22, 2023
@coderzc coderzc modified the milestones: 3.3.0, 3.4.0 May 8, 2024
@lhotari lhotari modified the milestones: 4.0.0, 4.1.0 Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category/reliability The function does not work properly in certain specific environments or failures. e.g. data lost doc-not-needed Your PR changes do not impact docs Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants