-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
熔断器熔断状态不能正确开启 #3967
Comments
只开一个进程测试 |
https://github.com/limingxinleo/hyperf-demo/tree/breaker
|
@limingxinleo |
server.php 配置贴一下 |
use Fangzhen\Rpcservice\JsonRpc\CalculatorServiceInterface; /**
这是服务消费者的调用
}` |
@limingxinleo |
下周一发版本 |
@limingxinleo |
#寻求大佬帮助
/**
* @CIRCUITBREAKER(failCounter=1, fallback="App\Controller\IndexController::index", timeout=0.01)
*/
public function add()
{
$a = $this->request->input('a',100);
$b = $this->request->input('b',100);
return $this->calculatorService->add($a,$b);
}
debug信息:
[DEBUG] App\Controller\IndexController::add success, use 1.0054850578308s.
[DEBUG] The current state is closed.
[DEBUG] App\Controller\IndexController::add success, use 1.0047399997711s.
[DEBUG] The current state is closed.
[DEBUG] App\Controller\IndexController::add success, use 1.0051550865173s.
[DEBUG] The current state is closed.
[DEBUG] The duration=12.561861991882s of closed state longer than the annotation duration=10s and is reset to the closed state.
[DEBUG] App\Controller\IndexController::add success, use 1.0037009716034s.
[DEBUG] The current state is closed.
[DEBUG] App\Controller\IndexController::add success, use 1.0025861263275s.
[DEBUG] The current state is closed.
[DEBUG] App\Controller\IndexController::add success, use 1.0041949748993s.
[DEBUG] The current state is closed.
[DEBUG] The duration=10.756902933121s of closed state longer than the annotation duration=10s and is reset to the closed state.
[DEBUG] App\Controller\IndexController::add success, use 1.0021090507507s.
[DEBUG] The current state is closed.
The text was updated successfully, but these errors were encountered: