question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Listener gets duplicated records with 2.2.0

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
garyrussellcommented, Jan 4, 2019

Thanks for reporting back.

0reactions
MartinX3commented, Jan 4, 2019

Maybe the Upgrade to Apache Kafka 2.1.0 after the 20. Nov fixed the problem. I can’t reproduce it anymore. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found