-
Notifications
You must be signed in to change notification settings - Fork 173
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
GrpcClientProviderTest is flaky #1853
Comments
I'm encountering this in a real environment; any ideas what could be causing it? My current theory is that it's a keep-alive configuration issue.
|
Some more logs from the CI build with extra okhttp logging added:
I don't see anything useful here, unfortunately, but I'll put the logs in anyway. |
I looked into this error a bit, and when the tests flake, it's because the server explicitly cancelled the stream. This is happening in Http2Stream#cancelStreamIfNecessary(). Sometimes it thinks it needs to cancel the stream, but when it does, the client gets an unexpected CANCEL and fails the test. The cancel happens because My current theory is that there's a race between This is super-subtle, and I'm getting tired, so I'll revisit later in the week. Success:
Failure:
7f4249625960b7f10dc61aae4d1896c2e126f538 introduced an optimization that may be connected to this issue. Stack trace:
|
## Description Currently, all gRPC responses are not compressed. This is not optimal for endpoints with huge responses as compression may save us a decent amount of network resource. This PR adds support to compress gRPC responses using gzip, which can be enabled by setting `WebConfig.grpcGzip` to true. ## Testing Strategy - Added test cases to `GrpcSourceSinkTest`. - `GrpcConnectivityTest` doesn't run in CI due to #1853. So I ran it locally and confirmed all test cases passed. ## Related Work - Commit square/wire@17a3d9e adds gzip support to wire-grpc client. ## Rollout Strategy and Risk Mitigation - `WebConfig.grpcGzip` is false by default, so users won't see surprises when they upgrade misk. They can manually turn it on if needed. GitOrigin-RevId: 85c0a8f9f86275b7b11fd50d5a267c593ad5ccac
The text was updated successfully, but these errors were encountered: