Browse Source

Hot fix polling

German Osin 4 years ago
parent
commit
29887cb4e0

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

@@ -104,7 +104,7 @@ public class ConsumingService {
 				while (!sink.isCancelled()) {
 					ConsumerRecords<Bytes, Bytes> records = consumer.poll(POLL_TIMEOUT_MS);
 					log.info("{} records polled", records.count());
-					if (records.count() == 0 && emptyPollsCount < MAX_EMPTY_POLLS_COUNT) {
+					if (records.count() == 0 && emptyPollsCount > MAX_EMPTY_POLLS_COUNT) {
 						break;
 					} else {
 						emptyPollsCount++;