alibaba/sentinel-golang

[BUG] 熔断器规则rule 参数 ProbeNum更新,loadRule 后未生效

sinceHYJ opened this issue · 0 comments

Describe what happened

当熔断器的规则配置发生变更时,只调整了probeNum 字段值,然后使用circuitbreaker.LoadRules(rules) 更新熔断器未生效。

Describe what you expected to happen

可能原因:
rule isEqualsTo() 判断相等时,未对probeNum 字段进行判断,导致loadrule 时判断规则未发生变更,使用了旧的熔断器,代码位置位于:calculateReuseIndexFor