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
If you create a consumer for a topic, and produce a message for that topic directly afterwards on the same thread, you will likely not receive the message on the consumer.
This is not the behavior you would expect, and it also makes unit testing difficult.
Two possible solutions come to my mind:
Make consumer creation synchronous by forcing it to fetch partition info before returning
Allow consumers to fetch by offset specifically, and let producers return the offset of a produced message.
The text was updated successfully, but these errors were encountered:
Referring to #10
If you create a consumer for a topic, and produce a message for that topic directly afterwards on the same thread, you will likely not receive the message on the consumer.
This is not the behavior you would expect, and it also makes unit testing difficult.
Two possible solutions come to my mind:
The text was updated successfully, but these errors were encountered: