[ 
https://issues.apache.org/jira/browse/KAFKA-20667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ibenchhida updated KAFKA-20667:
-------------------------------
    Labels: authorization perfomance  (was: )

>  O(N) ACL scan in StandardAuthorizerData.checkSection
> -----------------------------------------------------
>
>                 Key: KAFKA-20667
>                 URL: https://issues.apache.org/jira/browse/KAFKA-20667
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.9.2
>            Reporter: ibenchhida
>            Priority: Critical
>              Labels: authorization, perfomance
>
> Root cause: checkSection() iterates all ACLs sharing the same resource 
> pattern via TreePSet.tailSet(), calling HashSet.contains per ACL × topic. 
> With 504 topics × 7001 ACLs → ~3.5M iterations per MetadataRequest.



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

Reply via email to