diff options
author | Dana Powers <dana.powers@gmail.com> | 2016-07-16 21:11:33 -0700 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2016-07-16 23:36:06 -0700 |
commit | 77e47a53b5247f2e77188adf21c29d98b7128081 (patch) | |
tree | a530f29e741526a1b26dc3926eba018f7f82fbc1 /kafka | |
parent | 50b96cafc4ae2d9a41fde5c07acb3316a650ec33 (diff) | |
download | kafka-python-exclude_internal_topics.tar.gz |
Raise error during rebalance if subscribed topics are not authorizedexclude_internal_topics
Diffstat (limited to 'kafka')
-rw-r--r-- | kafka/coordinator/consumer.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kafka/coordinator/consumer.py b/kafka/coordinator/consumer.py index fd728d9..2543238 100644 --- a/kafka/coordinator/consumer.py +++ b/kafka/coordinator/consumer.py @@ -136,9 +136,8 @@ class ConsumerCoordinator(BaseCoordinator): def _handle_metadata_update(self, cluster): # if we encounter any unauthorized topics, raise an exception - # TODO - #if self._cluster.unauthorized_topics: - # raise TopicAuthorizationError(self._cluster.unauthorized_topics) + if cluster.unauthorized_topics: + raise Errors.TopicAuthorizationFailedError(cluster.unauthorized_topics) if self._subscription.subscribed_pattern: topics = [] |