Skip to content

Commit

Permalink
fix(topicdata): no topic data when 1 record with newest sort (#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisSouquiere authored Apr 26, 2023
1 parent 4713261 commit d898b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/akhq/repositories/RecordRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ private Optional<EndOffsetBound> getOffsetForSortNewest(KafkaConsumer<byte[], by
last = options.after.get(partition.getId()) - 1;
}

if (last == partition.getFirstOffset() || last < 0) {
if (last < 0) {
consumer.close();
return null;
} else if (!(last - pollSizePerPartition < first)) {
Expand Down

0 comments on commit d898b46

Please sign in to comment.