Skip to content
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

Clarify WriteRequest.write_offset spec for compressed blobs #193

Merged
merged 9 commits into from
Apr 22, 2021
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions build/bazel/remote/execution/v2/remote_execution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,11 @@ service ActionCache {
// the uploaded data once uncompressed, and MUST return an
// `INVALID_ARGUMENT` error in the case of mismatch.
//
// Note that when writing compressed blobs, the `WriteRequest.write_offset`
// refers to the offset in the uncompressed form of the blob.
// Note that when writing compressed blobs, the `WriteRequest.write_offset` in
// the initial request refers to the offset in the uncompressed form of the
nodirg marked this conversation as resolved.
Show resolved Hide resolved
// blob. In subsequent requests, `WriteRequest.write_offset` MUST be the sum of
// previous `WriteRequest.write_offset` and the size of the chunk in the
nodirg marked this conversation as resolved.
Show resolved Hide resolved
// previous request.
//
// Uploads of the same data MAY occur concurrently in any form, compressed or
// uncompressed.
Expand Down