asmaier / mini-kafka

Minimal example code for integration testing of Apache Kafka.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using AdminUtils breaks the build

lukasz-szewc opened this issue · comments

This commit 8616352 breaks build - and test fail. (At least on windows machine.)
Before that commit - works fine.

I just tried it, and it works fine on my machine (Mac OS X 10.11) :-/

But to fix the test can you try to change the timeout in the line 94 of KafkaProducerIT.java ConsumerRecords<Integer, byte[]> records = consumer.poll(1000);
from 1000 back to 3000 and see if the test runs on your machine?

It seems that timeout is causing problems. (at least for me). If I give 3000 works fine.

I increased now the timeout of the consumer to 3 seconds. This should fix this issue. Thank you for reporting it.