This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds support for propagating grpc server-side cancellations (#844)
* adds support for propagating grpc server-side cancellations * adds messages to test assertions * closes trailers eagerly to allow pure header responses to be published asap * removes unnecessary when clauses * avoids overloading the id field in CourierRequest introduces separate variant field to determine cancellation operation adds unary server exit case cleans up return values from the grpc client adds assertion on grpc health check response body * documents reasons for closing the channels * adds tests for client-side streaming and server-side cancellations with unary responses * initializes grpc client result Status to UNKNOWN instead of OK asserts on individual fields on the ping response * improves assertion messages avoids warnings due to presence of overloaded methods in grpc client * improves assertion messages avoids warnings due to presence of overloaded methods in grpc client adds correlation-id to logs from grpc client * avoids race in reading status on error path in grpc-client
- Loading branch information
Showing
7 changed files
with
1,038 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
455 changes: 385 additions & 70 deletions
455
containers/test-apps/courier/src/main/java/com/twosigma/waiter/courier/GrpcClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.