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][client] Consumer incomingMessageSize and client memory usage is negative #23622

Closed
3 tasks done
TakaHiR07 opened this issue Nov 21, 2024 · 0 comments · Fixed by #23624
Closed
3 tasks done

[Bug][client] Consumer incomingMessageSize and client memory usage is negative #23622

TakaHiR07 opened this issue Nov 21, 2024 · 0 comments · Fixed by #23624
Labels
triage/lhotari/important lhotari's triaging label for important issues or PRs type/bug The PR fixed a bug or issue reported a bug

Comments

@TakaHiR07
Copy link
Contributor

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

master

Minimal reproduce step

use a simple demo to consume. Found that client memory usage is negative, and ConsumerBase#incomingMessagesSize is also negative.

Consumer<byte[]> consumer = client.newConsumer(Schema.BYTES)
                .topic("persistent://test/normal/test")
                .subscriptionInitialPosition(SubscriptionInitialPosition.Earliest)
                .subscriptionName("test")
                .subscriptionType(SubscriptionType.Shared)
                .autoScaledReceiverQueueSizeEnabled(true)
                .subscribe();

while (true) {
    Message msg = consumer.receive();
}

What did you expect to see?

incomingMessageSize and client memory usage should not be negative

What did you see instead?

incomingMessageSize and client memory usage is negative

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@TakaHiR07 TakaHiR07 added the type/bug The PR fixed a bug or issue reported a bug label Nov 21, 2024
@TakaHiR07 TakaHiR07 changed the title [Bug][client] Consumer incomingMessageSize and client memory usage is negative value [Bug][client] Consumer incomingMessageSize and client memory usage is negative Nov 21, 2024
@lhotari lhotari added the triage/lhotari/important lhotari's triaging label for important issues or PRs label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/lhotari/important lhotari's triaging label for important issues or PRs type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants