-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asyncproducer fails with topic does not exist when consecutive messages are published to different topics in the same millisecond #2438
Comments
Thank you for taking the time to raise this issue. However, it has not had any activity on it in the past 90 days and will be closed in 30 days if no updates occur. |
@dineshudayakumar please can you test with latest sarama to see if the concurrency fixes have resolved this issue? |
Sure, will test and confirm in a day or two (and thanks for fixing) |
Looks like I am not seeing this issue anymore, happy to close it. Thank you!! |
Versions
Configuration
Logs
When I enable logs to print directly to stdout it takes few ms so the issue is not reproducible so I have the logger to print to stdout using a goroutine, so the below logs lines might not be in the exact order.
I updated source code to print stacktrace at places where all
ErrUnknownTopicOrPartition
was thrownThe below test uses a consumer to consume from 2 topics and a async producer to publish to 2 topics
logs: CLICK ME
Problem Description
We are using the AsyncProducer to publish messages to Kafka and in one of our test cases we are creating the AsyncProducer and publishing multiple messages and intermittently we see that the publish fails with topic/partition does not exist on this broker. By looking at the Kafka request logs and the sarama source code, I could identify that when the first 2 messages getting published are sent at the same millisecond the refreshMetadata method is returning
nil
andparitionMessage
method is throwing the error.This could be due to the below line in method
tryRefreshMetadata
inclient.go
The text was updated successfully, but these errors were encountered: