Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close write stream for CAS writes via ByteStream API (#10395)
### Problem The gRPC library used by the Rust engine cancels streams on drop; close must be called explicitly. BuildGrid's CAS daemon was [generating errors on writes](https://gitlab.com/BuildGrid/buildgrid/-/blob/master/buildgrid/server/cas/instance.py#L392) via the ByteStream API due to the stream being cancelled. ### Solution Explicitly close the stream to the ByteStream Write RPC. ### Result With this PR, I did not see the CAS write errors any more in the log of the BuildGrid CAS server.
- Loading branch information
Tom Dyas
committed
Jul 20, 2020
1 parent
669b5f3
commit 1f6267f
Showing
1 changed file
with
56 additions
and
46 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