Comments (2)
And here is the log,
testParamFlowDefaultCheckSingleValueCheckQpsMultipleThreads: sleep for 3 seconds
189:passDefaultLocalCheck:2024-03-28T17:08:36.698,currentTime:1711645716698,passTime:3014,oldQps:4
200:passDefaultLocalCheck:2024-03-28T17:08:36.699,currentTime:1711645716698
200:passDefaultLocalCheck:2024-03-28T17:08:36.699,currentTime:1711645716698
200:passDefaultLocalCheck:2024-03-28T17:08:36.699,currentTime:1711645716699
200:passDefaultLocalCheck:2024-03-28T17:08:36.699,currentTime:1711645716699
200:passDefaultLocalCheck:2024-03-28T17:08:36.699,currentTime:1711645716699
200:passDefaultLocalCheck:2024-03-28T17:08:36.7,currentTime:1711645716699
189:passDefaultLocalCheck:2024-03-28T17:08:36.699,currentTime:1711645716698,passTime:3014,oldQps:0
[ERROR] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.613 s <<< FAILURE! -- in com.alibaba.csp.sentinel.slots.block.flow.param.
[ERROR] com.alibaba.csp.sentinel.slots.block.flow.param.ParamFlowDefaultCheckerTest.testParamFlowDefaultCheckSingleValueCheckQpsMultipleThreads -- LURE!
java.lang.AssertionError: expected:<5> but was:<8>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:631)
at com.alibaba.csp.sentinel.slots.block.flow.param.ParamFlowDefaultCheckerTest.testParamFlowDefaultCheckSingleValueCheckQpsMultipleThreadsjava:320)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
from sentinel.
This is a typical ABA Problem. And on passDefaultLocalCheck, we maintain two variables status and keep them in sync(restQps&lastAddTokenTime).
With this background, we could introduce TokenUpdateStatus
, to record restQps&lastAddTokenTime, and update in atomic way..
from sentinel.
Related Issues (20)
- [BUG] feign.sentinel.enable=true Error HOT 1
- spring.cloud.sentinel.transport.client-ip 真是一个糟糕的配置
- 希望可以给一个sentinel1.8.2版本接入nacos数据源的教程谢谢 HOT 1
- 如何控制不在服务器上生成sentinel的文件(csp路径下的那些文件) HOT 1
- sentinel 1.8.6 持久化数据到nacos配置中心,修改规则刷新页面数据有延迟 HOT 1
- Spi重复初始化资源问题 HOT 9
- 请问 有1.8.8或者1.9.0或者2.0.0的发布计划么 HOT 1
- Dashboard向应用服务发起Metric请求,请求失败后,无详细错误信息 HOT 1
- Improve the performance and latency for the cluster limiter
- Same name fallback/blockHandler with different parameter types cause reflect exception HOT 1
- sentinel dashboard push.,支持 nacos、apollo...实现方式
- [BUG] 多个微服务拥有相同配置,相同依赖,启动后,只有一个微服务可以在控制台看到 HOT 1
- sentinel-apache-dubbo3-adapter Specifies whether the adapter supports dubbo 3.2.x
- `defaultFallback` annotation attribute on class cause `defaultFallback` handling conflicts on methods with different return types. HOT 3
- 建议给Flow/DegradationRuleManager的规则添加append方法
- [BUG] 容器环境中tokenserver检测到的机器远多于现存应用
- [BUG] 使用nacos作为规则数据源时,获取初始化配置失败
- [BUG] Sentinel push Mode GatewayApiDefinitionManager.ApiDefinitionPropertyListener Deserialization fail
- Integrate Sentinel, performance torture testing with increasing number of rule configurations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentinel.