alibaba / Sentinel

A powerful flow control component enabling reliability, resilience and monitoring for microservices. (面向云原生微服务的高可用流控防护组件)
https://sentinelguard.io/
Apache License 2.0
22.44k stars 8.03k forks source link

请问这个是我单测写的有问题吗?我限流设置的是1,但是多线程访问进入了线程数的请求。 #3449

Open aa310958153 opened 2 months ago

aa310958153 commented 2 months ago

正常我的理解只会打印一个helloword /**

aa310958153 commented 2 months ago
sentinel-core com.alibaba.csp 1.8.8
S0Louis commented 2 months ago

我也好奇这个问题,源码层面是先执行限流规则判断,再累加统计信息,所以多线程场景下会出现这个问题

S0Louis commented 2 months ago

找了一个历史的issues:https://github.com/alibaba/Sentinel/issues/59

aa310958153 commented 1 month ago

找了一个历史的issues:#59

非常感谢您的回答,我了解一下