Hi,
@Martin Thank you for your response.
I do not have much knowledge of the code base for Kafka. I was trying to
use the upstream code as it is. As you suggested I tried to increase the
timeout, and it got worked and network tests got passed. Still, the build
got failed with some other error. (Process 'Gradle Test Executor 12'
finished with non-zero exit value 137).
Full logs can be seen here
https://gist.github.com/STEPHINRACHEL/821de43ad9bd289a194aed09841dd90f
Is that something related to container setup?  The build was
successful when I tried running the test locally on my machine. Is there
any minimum memory requirement for the container?

Thank you in advance,
- Stephin

On Tue, Feb 2, 2021 at 4:16 PM Martin Gainty <mgai...@hotmail.com> wrote:

> 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 <steth...@redhat.com>
> Sent: Tuesday, February 2, 2021 9:11 AM
> To: users@kafka.apache.org <users@kafka.apache.org>
> 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
>


-- 

*Thanks and Regards,*

*Stephin Rachel Thomas*
She/Her
Quality Engineer, Managed Application Services
<https://www.redhat.com/>

Reply via email to