Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require that early-return compressed-blobs bytestream uploads set com…
…mitted_size -1 (bazelbuild#213) We require that uncompressed bytestream uploads specify committed_size set to the size of the blob when returning early (if the blob already exists on the server). We also require that for compressed bytestream uploads committed_size refers to the initial write offset plus the number of compressed bytes uploaded. But if the server wants to return early in this case it doesn't know how many compressed bytes would have been uploaded (the client might not know this ahead of time either). So let's require that the server set committed_size to -1 in this case. For early return to work, we also need to ensure that the server does not return an error code. Resolves bazelbuild#212.
- Loading branch information