Also, would this check be redundant because of https://github.com/apache/kafka/blob/7847e9c703f3a0b70519666cdb8a6e4c8e37c3a7/core/src/main/scala/kafka/log/Log.scala#L243
________________________________________ From: Manjunath Shivakumar [manjunath.shivaku...@betfair.com] Sent: 26 September 2014 12:12 To: d...@kafka.apache.org Subject: Log.scala Hi Guys, Just looking at the following snippet https://github.com/apache/kafka/blob/7847e9c703f3a0b70519666cdb8a6e4c8e37c3a7/core/src/main/scala/kafka/log/Log.scala#L259 Presumably this is when the follower is appending to its own log fetching from the leader. ( appendInfo.firstOffset < nextOffset.get ) Isn't the check slightly unsafe as it could lead to gaps in the offsets? Thanks, Manju ________________________________________________________________________ In order to protect our email recipients, Betfair Group use SkyScan from MessageLabs to scan all Incoming and Outgoing mail for viruses. ________________________________________________________________________ ________________________________________________________________________ In order to protect our email recipients, Betfair Group use SkyScan from MessageLabs to scan all Incoming and Outgoing mail for viruses. ________________________________________________________________________