Listener gets duplicated records with 2.2.0
See original GitHub issueI get duplicated records in my listener. On the kafka bus are single items. That’s my listener:
@KafkaListener(id = "courses-administration-listener",
topicPartitions =
{@TopicPartition(topic = "courses",
partitionOffsets = @PartitionOffset(partition = "0", initialOffset = "0"))})
public void listen(ConsumerRecord<String, String> cr) {
try {
Operation op = mapper.readValue(cr.value(), Operation.class);
} catch (IllegalArgumentException | IOException e) {
log.error(e.getMessage());
}
}
They are coming from the listen method.
Which informations do you need and where I can debug? 😃
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Duplicate Entries Added In listener.ora File After Each ...
Using Fleet Maintenance in Enterprise Manager 13.2.2 Cloud Control duplicates an entry in the the listener.ora file for each emcli ...
Read more >4. Reference - Spring
When using a BatchMessageListener , the failed record is passed to the application along with the remaining records in the batch, so it...
Read more >KafkaConsumer (kafka 2.2.0 API)
A client that consumes records from a Kafka cluster. This client transparently handles the failure of Kafka brokers, and transparently adapts as topic ......
Read more >Consumer application causing duplicate while reading ...
You most likely have a thread-safetly problem in code you are calling from your listener; when using multiple threads, you must not use ......
Read more >HAProxy Enterprise Documentation version 2.2r1 - Changelog
2022/11/22 : 2.2r1 (1.0.0-250.876) - BUILD: listener: fix build warning on ... Set port before IP address when processing SRV records - BUG/MINOR:...
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 Free
Top 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
Thanks for reporting back.
Maybe the Upgrade to Apache Kafka 2.1.0 after the 20. Nov fixed the problem. I can’t reproduce it anymore. 😃