Sentinel [BUG] NPE causes SystemRule cannot effect

ddarikpa  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(59)

Issue Description

Type: bug report

Describe what happened

版本: V1.8.6
由于系统规则抛出时是直接抛出,没有包裹 Rule 对象。而在 LogSlot 记录日志时,会去获取 Rule 对象,导致此处出现 NPE ,使得 SystemBlockException 没有抛出被吞掉,使得系统规则失效。

下图是发生 NPE 时,导致 SystemBlockException 被吞掉的情况,其他限流规则是否会被吞掉,还待测试。

Describe what you expected to happen

不应该出现 NPE 导致规则失效

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

Tell us your environment

Anything else we need to know?

相关问题