You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2026/10/01 08:41:00 UTC
[jira] [Created] (KAFKA-21195) Use RE2/J in ClientMetricsConfigs
Chia-Ping Tsai created KAFKA-21195:
--------------------------------------
Summary: 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: Chia-Ping Tsai
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)