You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe you are just seeing the eventually consistent nature of Kafka. Just because you've successfully created a topic does not necessarily mean you'll be able to query it immediately. It may take time to appear. You'd get the same behaviour with just plain old Kafka.
If you add to your test, the problem should go away.
await().atMost(Duration.ofSeconds(5)).until(() -> admin.listTopics().namesToListings().get(),
n -> n.size() == 2);
The @Topic annotation guarantees you that the topic is available.
Describe the bug
I discovered when I run whole class test I have a second independent test failing when I need to create topics.
To Reproduce
This gist : https://gist.github.com/callaertanthony/571eeeca9b406b2cf0770df6394948bc
Expected behavior
The two tests must success as they run exactly the same method without sharing context
Logs
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: