Mickael Maison created KAFKA-15517:
--------------------------------------

             Summary: Improve MirrorMaker logging in case of authorization 
errors
                 Key: KAFKA-15517
                 URL: https://issues.apache.org/jira/browse/KAFKA-15517
             Project: Kafka
          Issue Type: Improvement
          Components: mirrormaker
            Reporter: Mickael Maison


In case MirrorMaker is missing DESCRIBE_CONFIGS on the source cluster, all 
youget in the logs are lines like:

{noformat}
2023-09-27 11:56:54,989 ERROR 
[my-cluster-source->my-cluster-target.MirrorSourceConnector|worker] Scheduler 
for MirrorSourceConnector caught exception in scheduled task: refreshing topics 
(org.apache.kafka.connect.mirror.Scheduler) [Scheduler for 
MirrorSourceConnector-refreshing topics]
java.util.concurrent.ExecutionException: 
org.apache.kafka.common.errors.TopicAuthorizationException: Topic authorization 
failed.
{noformat}

It would be good to report the exact call that failed and include the cluster 
as well to make it easy to figure out which permissions are missing.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to