GitHub user becketqin opened a pull request: https://github.com/apache/kafka/pull/204
Kafka 2477 Tried two fixes. I prefer the second approach because it saves an additional offset search. You can merge this pull request into a Git repository by running: $ git pull https://github.com/becketqin/kafka KAFKA-2477 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/204.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #204 ---- commit e7610fb69a4007ae661a768635e930355c8caa76 Author: Jiangjie Qin <becket....@gmail.com> Date: 2015-09-11T02:17:12Z KAFKA-2477: Fix a race condition between log append and fetch that causes OffsetOutOfRangeException commit 45364d76e756fc6075924b3a07651b7fbbcc391a Author: Jiangjie Qin <becket....@gmail.com> Date: 2015-09-11T03:06:35Z A second fix that avoids an addition offset search ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---