Skip to content

feat(storage): add full object checksum to reader.Attrs#10538

Merged
BrennaEpp merged 4 commits into
googleapis:mainfrom
BrennaEpp:expose-checksum
Jul 19, 2024
Merged

feat(storage): add full object checksum to reader.Attrs#10538
BrennaEpp merged 4 commits into
googleapis:mainfrom
BrennaEpp:expose-checksum

Conversation

@BrennaEpp

@BrennaEpp BrennaEpp commented Jul 11, 2024

Copy link
Copy Markdown
Contributor

note - JSON does not currently support returning the checksum for range reads

  • GRPC does not support decompression

note - JSON does not currently support returning the checksum for range reads
@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Jul 11, 2024
@BrennaEpp BrennaEpp added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 11, 2024
@BrennaEpp BrennaEpp removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 17, 2024
@BrennaEpp BrennaEpp marked this pull request as ready for review July 17, 2024 17:42
@BrennaEpp BrennaEpp requested review from a team July 17, 2024 17:42

@tritone tritone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, one doc suggestion.

Comment thread storage/reader.go Outdated
// Castagnoli93 polynomial, if available.
CRC32C uint32

// Decompressed is true if the object was read decompressed and different

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems a little vague, I would make something that more closely echoes the NewRangeReader docs about transcoding (and/or update those docs to clarify that this field will be True if decompressive transcoding occurs).

@BrennaEpp BrennaEpp requested review from a team and tritone July 17, 2024 18:43
@BrennaEpp BrennaEpp enabled auto-merge (squash) July 19, 2024 17:58
@BrennaEpp BrennaEpp merged commit 245d2ea into googleapis:main Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants