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

[pulsar-client] Fix pending queue-size stats for batch messages #12704

Merged
merged 1 commit into from Nov 10, 2021

Conversation

rdhabalia
Copy link
Contributor

Motivation

Right now, pulsar-client prints stats with incorrect pending queue size for the batch messages. if the user configures batch-message size 100 (or batch delay is 10ms) and publishes 1000 messages then the producer prints stats with < 10 pending messages instead 1000 messages which is published by user. It confuses the user because the user sees a different counter than actual published messages. it creates confusion when the user gets ProducerQueueFull Error and stats prints queue size is 10 and allowed pending-messages are 1000.

Modification

Show correct pending messages for batch messages.

@rdhabalia rdhabalia added this to the 2.10.0 milestone Nov 10, 2021
@rdhabalia rdhabalia self-assigned this Nov 10, 2021
@github-actions
Copy link

@rdhabalia:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

1 similar comment
@github-actions
Copy link

@rdhabalia:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@Anonymitaet
Copy link
Member

@rdhabalia seems that this is a bug fix and does not affect the user guide, so no need to update docs here?

@rdhabalia
Copy link
Contributor Author

@Anonymitaet it won't require doc change.

@rdhabalia rdhabalia merged commit 9a3e7ec into apache:master Nov 10, 2021
@rdhabalia rdhabalia deleted the pending_stat_batch branch November 10, 2021 07:16
@Anonymitaet Anonymitaet added doc-not-needed Your PR changes do not impact docs and removed doc-label-missing labels Nov 10, 2021
@Anonymitaet
Copy link
Member

@rdhabalia thanks. when submitting a PR, can you help provide a doc label (tick the box)? Thanks
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client cherry-picked/branch-2.9 Archived: 2.9 is end of life doc-not-needed Your PR changes do not impact docs release/2.9.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants