Skip to content

Commit 7ac7d33

Browse files
authored
Merge pull request #12 from sesamzoo/accept-empty-offsets-map
Accept empty map of offsets instead of throwing
2 parents 06afdea + d7a946b commit 7ac7d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/omarsmak/kafka/consumer/lag/monitoring/client/impl/KafkaConsumerLagJavaClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ internal class KafkaConsumerLagJavaClient (
3131
val offsets = javaAdminClient.listConsumerGroupOffsets(consumerGroup)
3232
.partitionsToOffsetAndMetadata()
3333
.get()
34-
if (offsets == null || offsets.isEmpty())
34+
if (offsets == null)
3535
throw KafkaConsumerLagClientException("Consumer group `$consumerGroup` does not exist in the Kafka cluster.")
3636

3737
return getConsumerOffsetsPerTopic(offsets)

0 commit comments

Comments
 (0)