Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,14 @@ public static <K, V> ConsumerRecords<K, V> getRecords(Consumer<K, V> consumer, D
do {
long t1 = System.currentTimeMillis();
ConsumerRecords<K, V> received = consumer.poll(Duration.ofMillis(remaining));
if (received == null) {
throw new IllegalStateException("null received from consumer.poll()");
}
logger.debug(() -> "Received: " + received.count() + ", "
+ received.partitions().stream()
.flatMap(p -> received.records(p).stream())
// map to same format as send metadata toString()
.map(r -> r.topic() + "-" + r.partition() + "@" + r.offset()).toList());
if (received == null) {
throw new IllegalStateException("null received from consumer.poll()");
}
if (minRecords < 0) {
return received;
}
Expand Down