Skip to content

Commit 29887cb

Browse files
committed
Hot fix polling
1 parent f5ed4a4 commit 29887cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka-ui-api/src/main/java/com/provectus/kafka/ui/cluster/service/ConsumingService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void emit(FluxSink<ConsumerRecord<Bytes, Bytes>> sink) {
104104
while (!sink.isCancelled()) {
105105
ConsumerRecords<Bytes, Bytes> records = consumer.poll(POLL_TIMEOUT_MS);
106106
log.info("{} records polled", records.count());
107-
if (records.count() == 0 && emptyPollsCount < MAX_EMPTY_POLLS_COUNT) {
107+
if (records.count() == 0 && emptyPollsCount > MAX_EMPTY_POLLS_COUNT) {
108108
break;
109109
} else {
110110
emptyPollsCount++;

0 commit comments

Comments
 (0)