Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
In the current implementation of the KafkaConsumer, the ConsumerCoordinator commits offsets before the consumer is closed, with a call to
maybeAutoCommitOffsetsSync(timer);
The async consumer should provide the same behaviour to commit offsets on close.
This fix should allow to successfully run the following integration tests (defined in PlaintextConsumerTest)
- testAutoCommitOnClose
- testAutoCommitOnCloseAfterWakeup
Attachments
Issue Links
- blocks
-
KAFKA-15865 Ensure consumer.poll() execute autocommit callback
- Resolved
- is part of
-
KAFKA-14246 Update threading model for Consumer
- Resolved
- links to