[
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)