Xuanwo commented on issue #5635:
URL: https://github.com/apache/opendal/issues/5635#issuecomment-7207248651

   CRC32C write verification and stored CRC32C metadata support for GCS have 
been merged to `main` in #9216 (`bdd8a57028`; not included in the latest 
release `v0.59.5`).
   
   On the authenticated default GCS JSON endpoint:
   
   - **Write verification:** Pass `ChecksumAlgo::Crc32c` (or 
`WriteChecksum::Fast` / `WriteChecksum::Any`) to `op.write_with(path, 
data).checksum(...)` or `op.writer_with(path).checksum(...)` to compute and 
verify CRC32C over the streamed bytes, or pass 
`Checksum::new(ChecksumAlgo::Crc32c, digest_bytes)` (4-byte big-endian digest) 
to verify an already-known CRC32C. Successful checksum writes return the 
verified digest in `Metadata::checksum()`.
   - **Pre-commit rejection:** Verified against real GCS, a mismatched CRC32C 
is rejected before commit with `ErrorKind::ChecksumMismatch` without committing 
a new object generation, preserving the existing generation on overwrite.
   - **Stored checksum metadata:** Stored CRC32C is available via 
`Metadata::checksum()` on `stat` and on `Reader::metadata()` when a read 
response covers the complete stored representation (partial or 
transcoded/decompressed responses omit it; reads do not perform client-side 
verification by default).
   
   Explicit write checksum intents are not supported on custom endpoints, 
unsigned/anonymous configurations, or presigned writes.
   
   Closing this issue as completed.
   
   *AI-generated maintenance comment.*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to