-
Notifications
You must be signed in to change notification settings - Fork 8
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
Another controller panic under very high load #1900
Comments
This is an easy one. The code should be: response, err := deployment.plugin.Client.Call(ctx, req)
if err != nil {
return nil, err
}
return connect.NewResponse(response.Msg), nil |
Awesome! I'll try to get a quick fix out |
@alecthomas did you say there was a lint rule we could turn back on to find all the lines where we have an unchecked err? I wonder if we should just do that now - should be quick enough and it could be hiding more panics |
That was a different linter, which is now enabled. I don't think there is one for this situation, but I could be wrong. |
Ahh, got it |
Fixes #1900 I'm not totally confident in the error code here - possibly CodeUnknown would be more appropriate?
It is possible to panic the controller somehow when hammering ftl dev with a very high rate of verb calls for over a minute. I managed to hit this while sending 1 request every 10 ms and have not yet been able to reproduce it.
In case the controller code changes significantly from my local version as I hit this, here's a reference to the line in the above call stack:
ftl/backend/runner/runner.go:200
:The text was updated successfully, but these errors were encountered: