-
Notifications
You must be signed in to change notification settings - Fork 798
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
WriteMessages function will block the goroutine while topic not exist and client no permission to create topic #806
Comments
I got the same problem, I need to set WriteMessages ctx WithTimeout so that can cancel and return error TopicOrPartitionNotFound. I review the code about Lines 704 to 707 in 8dfb915
Caused by this option, client will to refresh metadata to try to get expect topics from broker, so it call Lines 418 to 420 in 8dfb915
In this method, it send Lines 436 to 474 in 8dfb915
I think kafka-go should expose the option of |
Skip refrash metadata in roundTrip about errored topic, such as write message to a not exist topic, kafka will response error UNKNOWN_TOPIC_OR_PARTITION to the topic, it causes indefinitely metadata refreshing. Fixes segmentio#806
Skip refrash metadata in roundTrip about errored topic, such as write message to a not exist topic, kafka will response error UNKNOWN_TOPIC_OR_PARTITION to the topic, it causes indefinitely metadata refreshing. Fixes segmentio#806
Skip refrash metadata in roundTrip about errored topic, such as write message to a not exist topic, kafka will response error UNKNOWN_TOPIC_OR_PARTITION to the topic, it causes indefinitely metadata refreshing. Fixes segmentio#806
Skip refrash metadata in roundTrip about errored topic, such as write message to a not exist topic, kafka will response error UNKNOWN_TOPIC_OR_PARTITION to the topic, it causes indefinitely metadata refreshing. Fixes segmentio#806
* Skip refresh metadata for errored topic. Skip refrash metadata in roundTrip about errored topic, such as write message to a not exist topic, kafka will response error UNKNOWN_TOPIC_OR_PARTITION to the topic, it causes indefinitely metadata refreshing. Fixes #806 * Create unit test to detect issue #806
Describe the bug
When the topic does not exist and the client does not have permission to create the topic, the WriteMessages function will block indefinitely.
Kafka Version
v1.1.0
To Reproduce
Steps to reproduce the behavior. Bonus points for a code sample.
Expected behavior
WriteMessages function will not block the goroutine and get errors return while client no permission to create topic
The text was updated successfully, but these errors were encountered: