Handle APIVersions requests #PV1

Has anyone face the issue on kafka versions api codecrafters test,

In my case I have written some unit tests for the exact same input bytes and my tests are passing where as for the cli is failing and mistakenly selects a wrong version with wrong response

Hey @nindaba, could you upload your code to GitHub and share the link? It will be much easier to debug if I can run it directly.

Here is the link to my github repository

@nindaba Looks like you’ve got past this stage. Do you happen to remember what was wrong? Would love to see if we can improve the tester / instructions.

@ andy1li, I have introduced a Log4j logger into the project, so whenever I used it in the ApiVersions class, it would crush your testers, took me long time debugging, however I just gave up after finding that whenever the logger is present it breaks your testers,

Perhaps its something to deal with the way the logs are collected and the streams are read from the sockets, that they are out of sync

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.