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] Dynamically expanding partitions leads to a continuous increase in the number of consumers #23936

Open
2 of 3 tasks
GuanZFF opened this issue Feb 6, 2025 · 1 comment
Labels
type/bug The PR fixed a bug or issue reported a bug

Comments

@GuanZFF
Copy link

GuanZFF commented Feb 6, 2025

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

java 1.8
pulsar client 2.7.2
pulsar broker 2.7.2

Minimal reproduce step

The broker notified the consumer to go offline while triggering the execution of the dynamic expansion partition task. Reconnected consumers cannot be restored

What did you expect to see?

No need to exclude consumers, during the process of reconnecting consumers

What did you see instead?

consumers.entrySet().removeIf(e -> TopicName.get(e.getKey()).getPartitionedTopicName().equals(topicName) && !e.getValue().isConnected());

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@GuanZFF GuanZFF added the type/bug The PR fixed a bug or issue reported a bug label Feb 6, 2025
@GuanZFF
Copy link
Author

GuanZFF commented Feb 12, 2025

Reproduction steps:

  1. At this point, the breakpoint consumers. introySet(). removeIf (e ->TopicName. get (e.g. etKey()). getPartitionedTopicName(). equals (topicName)&&! e.getValue().isConnected());
  2. Execute the reset cursor command
  3. MultiTopicscosumerImpl will delete consumers and continuously add consumers corresponding to the last partition

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

1 participant