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

[Bug] msgbacklog grows infinitely after sending a certain amount of messages #23606

Open
2 of 3 tasks
g0715158 opened this issue Nov 18, 2024 · 2 comments
Open
2 of 3 tasks
Labels
type/bug The PR fixed a bug or issue reported a bug

Comments

@g0715158
Copy link

g0715158 commented Nov 18, 2024

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

3.0.1

Minimal reproduce step

  1. Send 1000 messages and stop the producer process
  2. msgbacklog has 1000 messages
  3. Consume 1,000 messages and stop the consumer process
  4. After the consumer stops, msgbacklog is 0

What did you expect to see?

msgbacklog sees messages that are equal to or less than the number of messages I sent

What did you see instead?

The producer stops sending after sending a batch of messages. When subscribing to these states, it is found that the msgbacklog value has been growing continuously.

Anything else?

This problem occurs when I set replicateSubscriptionState to true in the consumer!!!

After both the producer and the consumer are stopped, the msgbacklog has been growing slowly, and no additional messages will be consumed when the consumer is restarted.

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@g0715158 g0715158 added the type/bug The PR fixed a bug or issue reported a bug label Nov 18, 2024
@lhotari
Copy link
Member

lhotari commented Nov 18, 2024

@g0715158 please share exact steps with commands to reproduce this issue. The goal of the reproducing steps is that someone else could follow the instructions and reproduce the issue. The current description of reproducing steps isn't helpful at the moment.

@lhotari
Copy link
Member

lhotari commented Nov 18, 2024

3.0.1

Does this problem also reproduce with the 3.0.7 version of Pulsar broker and Pulsar client? How about 4.0.0 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

No branches or pull requests

2 participants