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

Static subscription works incorrectly #1130

Open
4 of 5 tasks
gromas opened this issue Feb 4, 2024 · 2 comments
Open
4 of 5 tasks

Static subscription works incorrectly #1130

gromas opened this issue Feb 4, 2024 · 2 comments

Comments

@gromas
Copy link

gromas commented Feb 4, 2024

Description

When consumer with static subscription reconnect to kafka cluster then it can't subscribe to required topics.

How to reproduce

Create consumer with group.instance.id "instance1" then subscribe to topic "topic1". Do poll some messages. Subscribe to topic "topic2" and do poll some message. Then do hard disconnect/application shutdown.
Some time later restart consumer again with same sequence. After consumer subscribe to topic1 it poll messages from topic2 only not from topic1.

Workaround: Create a new static consumer on every restart [I use "group.instance.id": uuid.new().string()]

Checklist

Please provide the following information:

  • confluent-kafka-go and librdkafka version (LibraryVersion()): v2.3.0
  • Apache Kafka broker version: any
  • Client configuration: ConfigMap{...} "group.id": "group1", "group.instance.id": "instance1", "go.application.rebalance.enable": true, "enable.partition.eof": true, "enable.auto.offset.store": false, "enable.auto.commit": false
  • Operating system: Ubuntu 22.04.3 TLS 64 bit @ Windows 11 hyper-v
  • Critical issue
@gromas
Copy link
Author

gromas commented Feb 4, 2024

If required I can attach source code for reproduce

@gromas gromas closed this as completed Feb 4, 2024
@gromas gromas reopened this Feb 4, 2024
@gromas
Copy link
Author

gromas commented Feb 4, 2024

I'm sorry. I accidentally clicked the wrong button and closed it. Opened it again.

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

No branches or pull requests

1 participant