Multiple topics consumer not able to receive the earliest message (python client)
See original GitHub issueDescribe the bug
When using multiple topics with the Python client and initial_position=Earliest
, new subscriptions still begin with the latest message. Related: #3494, #3712.
To Reproduce Code for consumer:
rx = re.compile('persistent://public/default/topic-.*')
sub = pulsar_client.subscribe(rx, 'sub', pulsar.ConsumerType.Shared,
initial_position=pulsar.InitialPosition.Earliest)
When a new topic is created, it is auto-discovered, as expected. However, all messages sent from the creation of the topic, until the subscription is made, are lost.
Expected behavior
When using initial_position=Earliest
with a topic pattern, all new topic subscriptions should begin with the earliest message.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
kafka-python consumer not receiving messages - Stack Overflow
I was testing it with a topic with more than one partition, it so happens that the issue arises only when the producer...
Read more >Kafka: Consume Messages From Multiple Queues - Medium
A. Yes, Kafka's design allows consumers from one consumer group to consume messages from multiple topics. The protocol underlying consumer.
Read more >Chapter 4. Kafka Consumers: Reading Data from Kafka
When multiple consumers are subscribed to a topic and belong to the same consumer group, each consumer in the group will receive messages...
Read more >KafkaConsumer — kafka-python 1.2.3 documentation
The java client defaults to 32768. consumer_timeout_ms (int) – number of millisecond to throw a timeout exception to the consumer if no message...
Read more >Messaging - Apache Pulsar
In this pattern, producers publish messages to topics; consumers subscribe to ... If the acknowledgment is not received, the producer treats the sending ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jiazhai this is 2.4.2.
Closed as stale. Please create a new issue if it’s still relevant to the maintained versions.