We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In producer/kafka.py in KafkaProducer._wait_on_metadata, if an exception was identified in the future, it is not propagated.
KafkaProducer._wait_on_metadata
The revised code should probably be something like:
future = self._metadata.request_update() future.add_both(lambda e, *args: e.set(), metadata_event) self._sender.wakeup() metadata_event.wait(max_wait - elapsed) if future.exception: # Propagate exception raise future.exception
The text was updated successfully, but these errors were encountered:
Unclear why this isn't sufficient:
740 elif topic in self._metadata.unauthorized_topics: 741 raise Errors.TopicAuthorizationFailedError(set([topic]))
Sorry, something went wrong.
No branches or pull requests
In producer/kafka.py in
KafkaProducer._wait_on_metadata
, if an exception was identified in the future, it is not propagated.The revised code should probably be something like:
The text was updated successfully, but these errors were encountered: