You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guozhang Wang (JIRA)" <ji...@apache.org> on 2015/12/03 20:02:11 UTC
[jira] [Resolved] (KAFKA-2942) Inadvertent auto-commit when
pre-fetching can cause message loss
[ https://issues.apache.org/jira/browse/KAFKA-2942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guozhang Wang resolved KAFKA-2942.
----------------------------------
Resolution: Fixed
Fix Version/s: 0.9.0.1
Issue resolved by pull request 623
[https://github.com/apache/kafka/pull/623]
> Inadvertent auto-commit when pre-fetching can cause message loss
> ----------------------------------------------------------------
>
> Key: KAFKA-2942
> URL: https://issues.apache.org/jira/browse/KAFKA-2942
> Project: Kafka
> Issue Type: Bug
> Reporter: Jason Gustafson
> Assignee: Jason Gustafson
> Fix For: 0.9.0.1
>
>
> Before returning from KafkaConsumer.poll(), we update the consumed position and invoke poll(0) to send new fetches. In doing so, it is possible that an auto-commit is triggered which would commit the updated offsets which hasn't yet been returned. If the process then crashes before consuming the messages, there would be a gap in the delivery.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)