You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ibenchhida (Jira)" <ji...@apache.org> on 2026/06/05 15:20:00 UTC
[jira] [Updated] (KAFKA-20667) O(N) ACL scan in StandardAuthorizerData.checkSection
[ 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)