Skip to content

Commit

Permalink
Fix consuming compacted topic
Browse files Browse the repository at this point in the history
  • Loading branch information
gburanov committed Nov 27, 2018
1 parent cebb584 commit 8a81924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ func (child *partitionConsumer) parseMessages(msgSet *MessageSet) ([]*ConsumerMe
}
}
if len(messages) == 0 {
return nil, ErrIncompleteResponse
child.offset++
}
return messages, nil
}
Expand All @@ -531,7 +531,7 @@ func (child *partitionConsumer) parseRecords(batch *RecordBatch) ([]*ConsumerMes
child.offset = offset + 1
}
if len(messages) == 0 {
child.offset += 1
child.offset++
}
return messages, nil
}
Expand Down

0 comments on commit 8a81924

Please sign in to comment.