Files
floci/src/main/java/io
Niels Kootstra 888a718924 fix(s3): stream GetObject bodies from disk instead of the heap (#4691)
* fix(s3): stream GetObject bodies from disk instead of the heap

GetObject read the whole object into a byte array before responding, so
every concurrent download of a large object held a full copy in the heap.

Add S3Service.openObject, which runs the same dataGeneration check as
getObject but opens a file channel instead of reading the bytes. Writes
replace the object file with an atomic move, so the open channel keeps
serving the version its headers describe. Full, Range and website index
responses stream from it and close it on every early exit.

* fix(s3): close the object stream when a response fails to build
2026-09-30 10:57:53 -04:00
..