Skip to content

Commit

Permalink
System Test Transient Failure on testcase_0122; patched by Sriram Sub…
Browse files Browse the repository at this point in the history
…ramanian; reviewed by Jun Rao and Neha Narkhede; kafka-772
  • Loading branch information
sriramsub authored and junrao committed Mar 5, 2013
1 parent 92ecebe commit 0ee46e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/scala/kafka/server/AbstractFetcherThread.scala
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ abstract class AbstractFetcherThread(name: String, clientId: String, sourceBroke
case(topicAndPartition, partitionData) => case(topicAndPartition, partitionData) =>
val (topic, partitionId) = topicAndPartition.asTuple val (topic, partitionId) = topicAndPartition.asTuple
val currentOffset = partitionMap.get(topicAndPartition) val currentOffset = partitionMap.get(topicAndPartition)
if (currentOffset.isDefined) { // we append to the log if the current offset is defined and it is the same as the offset requested during fetch
if (currentOffset.isDefined && fetchRequest.requestInfo(topicAndPartition).offset == currentOffset.get) {
partitionData.error match { partitionData.error match {
case ErrorMapping.NoError => case ErrorMapping.NoError =>
val messages = partitionData.messages.asInstanceOf[ByteBufferMessageSet] val messages = partitionData.messages.asInstanceOf[ByteBufferMessageSet]
Expand Down

0 comments on commit 0ee46e0

Please sign in to comment.