[
https://issues.apache.org/jira/browse/KAFKA-21195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18121491#comment-18121491
]
Apoorv Mittal commented on KAFKA-21195:
---------------------------------------
This is a duplicate of: https://issues.apache.org/jira/browse/KAFKA-15677.
[~ojain] has started working on it.
> 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)