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.

Question about auto committing

See original GitHub issue

If I am using auto commit - is there a chance that a message will be committed when I haven’t actually handled it?

eg

await consumer.run({
    eachMessage: async ({ topic, partition, message }) => {
       await takeaverylongtimeifever()
  }
)

could messages get auto committed before takeaverylongtimeifever is done?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Nevoncommented, Aug 9, 2019

This seems to be resolved for now, so I’m going to close this. Feel free to re-open it if you run into any issues.

1reaction
tulioscommented, Jul 15, 2019

@gilesbradshaw, the consumer won’t commit in 2 cases:

  1. user code throws an error (takeaverylongtimeifever throws)
  2. the session times out, so the consumer has to rejoin the group

In general, you are in control. If you throw inside eachMessage it will interrupt the auto-commit

Read more comments on GitHub >

github_iconTop Results From Across the Web

Question about auto-commit behavior.
Hi Jordan,. When you have two objects that are associated 1 to 1 to each other then they will both be committed if...
Read more >
Newest 'auto-commit' Questions
I am trying to understand the relationship between the concepts of transaction chaining and autocommit. Autocommit is usually exposed in a client-side ......
Read more >
What is meant by AUTO COMMIT - DBA FYI center
DBA Job Interview Questions and Answers - What is meant by AUTO COMMIT - DB2 ... AUTO COMMIT is a SPUFI option that...
Read more >
How Kafka's Consumer Auto Commit Configuration Can ...
One fundamental problem we've encountered involves Kafka's consumer auto commit configuration—specifically, how data loss or data ...
Read more >
AUTO COMMIT - Ask TOM
AUTO COMMIT Hi Sir, We have an application that executes stored procedure via VBA . Apparently ,it auto commits that statement. Is there...
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