You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Apoorv Mittal (Jira)" <ji...@apache.org> on 2026/10/01 08:47:00 UTC

[jira] [Resolved] (KAFKA-21195) Use RE2/J in ClientMetricsConfigs

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

Apoorv Mittal resolved KAFKA-21195.
-----------------------------------
    Resolution: Duplicate

> Use RE2/J in ClientMetricsConfigs
> ---------------------------------
>
>                 Key: KAFKA-21195
>                 URL: https://issues.apache.org/jira/browse/KAFKA-21195
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Chia-Ping Tsai
>            Assignee: Andy Huang
>            Priority: Major
>
> ClientMetricsConfigs uses java.util.regex to compile the match patterns of client metrics subscriptions. We should switch to RE2/J, which is already used by the broker and guarantees linear time matching.
> This is a behavior change. A pattern stored on the server may be valid in java.util.regex but invalid in RE2, so we need to catch the error and log a warning instead of failing after upgrade.



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