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

Fix: Returning error if received UnknownTopicOrPartition from readPartitions #1315

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arxon31
Copy link

@arxon31 arxon31 commented Aug 6, 2024

First suggestion to fix issue #1314 with no rebalance after consumer in consumer group receives empty assignment

#1314

Cause of the issue:

  1. assignTopicToPartition ignores error UnknownTopicOrPartition
  2. Topic in Kafka creates after p.1
  3. partitionWatcher receives num of partition from created topic and fall through in loop
  4. If partitions will never be added to a topic, the group will never rebalance
  5. Consumers never consume their messages

Solution:
assignTopicToPartition should fail with error if receives UnknownTopicOrPartition and start next generation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant