Skip to content

Commit

Permalink
Merge pull request #1227 from gburanov/fix_consuming_compressed_topic
Browse files Browse the repository at this point in the history
Fix consuming compacted topic
  • Loading branch information
bai authored Feb 15, 2019
2 parents 45ea73e + 36aaf2e commit a3e71cf
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 @@ -511,7 +511,7 @@ func (child *partitionConsumer) parseMessages(msgSet *MessageSet) ([]*ConsumerMe
}
}
if len(messages) == 0 {
return nil, ErrIncompleteResponse
child.offset++
}
return messages, nil
}
Expand Down Expand Up @@ -539,7 +539,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 a3e71cf

Please sign in to comment.