there are 2 things you will notice from your stacktrace consumerClient = new ConsumerNetworkClient(client, metadata, time, 100, 1000); your 10k request timeout is too short so why not increase 10000ms to something more reasonable
the specific testcase (which i do not have) is trying to decompress an image when testcase = CompressionType.NONE private MemoryRecords records = MemoryRecords.emptyRecords(ByteBuffer.allocate(1024), CompressionType.NONE); private MemoryRecords nextRecords = MemoryRecords.emptyRecords(ByteBuffer.allocate(1024), CompressionType.NONE); so why is your FetcherTest testcase attempting to decompress a record whose contained Image has no Compression? (I am admittedly more of a redhat guy than docker expert) ________________________________ From: Stephin Thomas <[email protected]> Sent: Tuesday, February 2, 2021 9:11 AM To: [email protected] <[email protected]> Subject: Unable to run unit tests inside a docker container Hi, I have cloned the apache-Kafka repo inside a docker container that has java 11 installed on it and on running the ./gradlew uniTest command I'm getting build failure with failing network tests. The logs from the container are uploaded here https://gist.github.com/STEPHINRACHEL/9fbce12db303eb0285d14ff322dbd15d#file-gistfile1-txt-L1235 Could someone guide me on how to run the unit tests inside a docker container? Thanks and Regards, -Stephin
