alibaba/Sentinel

[BUG] 资源名称使用正则表达式时,当使用非快速失败的CONTROL_BEHAVIOR时,配置的流控规则不会加载

Open

#3,544 建立於 2025年8月18日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Java (23,109 star) (8,150 fork)batch import
good first issue

描述

Issue Description

Type: bug report

Describe what happened

请问下流控规则,资源名称要使用正则表达式时,流控效果CONTROL_BEHAVIOR_DEFAULT要限制是快速失败才允许使用regex,当我使用其他CONTROL_BEHAVIOR时,配置的流控规则不会加载 com/alibaba/csp/sentinel/slots/block/flow/FlowRuleUtil.java:249 if (rule.isRegex()) { return !rule.isClusterMode() && rule.getControlBehavior() == RuleConstant.CONTROL_BEHAVIOR_DEFAULT; }

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

Anything else we need to know?

貢獻者指南

[BUG] 资源名称使用正则表达式时,当使用非快速失败的CONTROL_BEHAVIOR时,配置的流控规则不会加载 · alibaba/Sentinel#3544 | Good First Issue