多线程访问同一个资源,限流策略不生效 #2423
Answered
by
kangzhixing
kangzhixing
asked this question in
Q&A
-
使用sentinel过程中测试发现如下问题:
测试结果显示限流策略生效于线程内,请问是否是设计如此? |
Beta Was this translation helpful? Give feedback.
Answered by
kangzhixing
Oct 20, 2021
Replies: 1 comment 1 reply
-
已经解决:sentinel初始化过程非线程安全,并发测试前先同步访问资源一次可避免上述问题 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sczyh30
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
已经解决:sentinel初始化过程非线程安全,并发测试前先同步访问资源一次可避免上述问题