minio-go icon indicating copy to clipboard operation
minio-go copied to clipboard

Enable stat operations for specific ranges

Open r-scheele opened this issue 2 years ago • 3 comments

ref issue number: #1813

Stat() was designed to always work on the original file size, and not a portion of the object

r-scheele avatar Jun 29 '23 10:06 r-scheele

Please fix the tests @r-scheele

harshavardhana avatar Jul 25 '23 19:07 harshavardhana

2023-07-06T11:10:48.3248895Z === RUN   TestCoreCopyObject
2023-07-06T11:10:48.3294758Z ##[error]    core_test.go:472: Error: number of bytes in stat does not match, want 32768, got 0
2023-07-06T11:10:48.3304410Z --- FAIL: TestCoreCopyObject (0.03s)
2023-07-06T11:10:48.3304745Z === RUN   TestCoreCopyObjectPart
2023-07-06T11:10:48.3305160Z --- PASS: TestCoreCopyObjectPart (0.41s)
2023-07-06T11:10:48.3305442Z === RUN   TestCorePutObject
2023-07-06T11:10:48.3306219Z ##[error]    core_test.go:737: Error: number of bytes in stat does not match, want 32768, got 0
2023-07-06T11:10:48.3306961Z --- FAIL: TestCorePutObject (0.03s)

klauspost avatar Jul 26 '23 12:07 klauspost

Hi @harshavardhana @klauspost please review again

r-scheele avatar Aug 07 '23 13:08 r-scheele