You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Fileservice MinIO upload retry races with an in-flight request body on storage failure #33519
Checked open and closed issues for SectionReader + MinIO, hookReader and MinIO upload retry races.
Branch Name
main-targeted #33438 test branch (incidental upload-path finding, separate from read-cache invalidation).
Commit ID
847c2b8 (tested production changes; the upload implementation and SDK dependency were unchanged from the PR base).
Other Environment Information
Go 1.27.1 darwin/arm64 fileservice test client with -race, minio-go/v7 v7.0.99, isolated real MinIO RELEASE.2024-12-18T13-15-44Z.
Actual Behavior
During fixture setup, the object store ran out of space. A failed PUT caused the race detector to report concurrent writes to the same io.SectionReader offset. One goroutine was in SectionReader.Seek via minio hookReader.Seek / Client.executeMethod retry; the other was in SectionReader.Read via hookReader.Read and the HTTP request-body writer. The caller received an error from storage. No successful corrupt upload or production data loss was observed.
Expected Behavior
A failed upload may return a storage error, but a retry must not rewind a body which the preceding request is still reading.
Steps to Reproduce
In isolated tests, write objects through S3FS backed by MinIO with a known size. With a bounded test bucket filesystem full, the server returned a retryable failure (internal error caused by ENOSPC). During retries the fileservice race build emitted the two stacks above. This is the observed setup, not a deterministic minimal reproducer.
Additional Information
MO upload entry. The outer MO retry builds a fresh bytes.Reader in this branch; the shown seek is inside the SDK retry. Please distinguish transport/body completion from outer retry ownership before choosing a fix. Re-running the cache validations with healthy backing storage did not show this race.
Activity