-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
User report: the kc-repl client fails to initialize properly due to an authorization problem.
I do see that the list of topics is returned by the broker. It happens twice, not sure why. Right after the second response the log mentions that the consumer is assigned to one of the topic. Then there is a call to get more information about the topic and that fails with an exception.
Exception in thread "async-dispatch-1" org.apache.kafka.common.errors.TopicAuthorizationException: Not authorized to access topics: [--topic_name--]
The issue is likely the fact that the client attempts to assign an arbitrary topic returned from the initial topic listing here, and if the client identity used does not have access to that topic, this fails. The fix is likely to either
- Allow specification of a starting topic, that the user knows the client auth will have access to, rather than reading an arbitrary one from the
list-topicsresult - Keep trying to assign discovered topics until one of them succeeds (more resilience)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels