Files
floci/src/main/java/io
TATSUNO “Taz” Yasuhiro a5ab1672f9 perf(s3): drop unused hashes on S3Object creation (#3589)
* perf(s3): stop computing an unused SHA-256 for each stored object

The S3Object constructor hashed the whole body with SHA-256.
storeObjectInternal replaces that checksum before the object is published,
and delete markers never return a checksum, so nothing read the value.

* perf(s3): pass the composite ETag in when completing a multipart upload

CompleteMultipartUpload stored the object with an MD5 of the whole body
under the bucket lock, then replaced it with the composite ETag. Passing
the composite ETag in skips that hash.

The composite ETag is now also on the first write. WAL storage logs a
record when it is put, so the version record used to keep the plain MD5,
and a restart after a crash returned that MD5 for the version.

* test(s3): check the stored composite ETag without counting storage keys

The test pinned how many object store puts a completion makes. It now
checks that every stored ETag is the composite one, which still fails
when nothing was stored.
2026-09-14 00:18:00 -04:00
..