-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
运行polaris-go里的example的circuitbreaker时崩溃报空指针错误 #102
Comments
2022/10/21 17:58:27 [errot] send request to 127.0.0.1:28082 fail : Get "http://127.0.0.1:28082/echo": dial tcp 127.0.0.1:28082: connect: connection refused goroutine 84 [running]: |
我修复下 |
是什么原因导致panic? |
err := g.engine.SyncReportStat(model.CircuitBreakStat, 这里原先的逻辑,塞入的是 preCBStatus,会导致 nil panic |
Describe the bug
运行polaris-go里的example的circuitbreaker时崩溃报空指针错误
To Reproduce
分别运行circuitbreaker的provider 和 consumer ,运行两个provider实例,按照readme步骤测试熔断功能,先停止一个provider实例,curl 向 consumer再发起请求,consumer就崩溃了。
Expected behavior
希望能正常测试熔断功能
Environment
Additional context
分别运行circuitbreaker的provider 和 consumer ,运行两个provider实例,按照readme步骤测试熔断功能,先停止一个provider实例,curl 向 consumer再发起请求,consumer就崩溃了。
The text was updated successfully, but these errors were encountered: