使用网关整合Sentinel,熔断降级规则,使用异常比例和异常数不生效
- Dominant language
- Java
- Stars
- 23.1k
- Forks
- 8.1k
- PR merge metrics
- No merged PRs in 30d
Description
使用spring cloud gateway网关整合sentinel后,测试异常数和异常比例熔断,不生效
1.设置的熔断策略

2.请求一个异常的接口

3.通过debug查看源码,可以看到自己设置的熔断策略

4.但是没有看到的异常,导致没法统计异常数,所以异常数和异常比例的熔断策略失效

Contributor guide
Research direction
Start by reproducing the Spring Cloud Gateway and Sentinel integration described in the steps, including the configured exception-count and exception-ratio rules. Inspect the circuit-breaking and exception-statistics path while requesting the failing endpoint; done means both rules count the observed exception and trigger as configured.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100