CCDAK · Question #47
A consumer sends a request to commit offset 2000. There is a temporary communication problem, so the broker never gets the request and therefore never responds. Meanwhile, the consumer processed…
The correct answer is D. Nothing. In this case, because the offset 3000 has been committed and all the messages between 0 and 3000 have all been processed, it is okay not to have committed offset 2000. The right answer is to do "nothing", this behaviour is acceptable.
Question
A consumer sends a request to commit offset 2000. There is a temporary communication problem, so the broker never gets the request and therefore never responds. Meanwhile, the consumer processed another batch and successfully committed offset 3000. What should you do?
Options
- AAdd a new consumer to the group
- BUse the kafka-consumer-group command to manually commit the offsets 2000 for the consumer
- CRestart the consumer
- DNothing
How the community answered
(35 responses)- A3% (1)
- B3% (1)
- C11% (4)
- D83% (29)
Explanation
In this case, because the offset 3000 has been committed and all the messages between 0 and 3000 have all been processed, it is okay not to have committed offset 2000. The right answer is to do "nothing", this behaviour is acceptable.
Topics
Community Discussion
No community discussion yet for this question.