Files
seaweedfs/weed/filer/mongodb
Chris LuandClaude Opus 5.5 4cb096e32f filer, s3: report a failed read as an error, not as a missing entry (#13289)
* filer/mongodb: report a failed read as an error, not as a missing entry

FindEntry logged any read error other than ErrNoDocuments and returned
filer_pb.ErrNotFound, so a lookup that could not reach MongoDB answered
that an existing entry was gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* filer/arangodb: report a failed read as an error, not as a missing entry

FindEntry logged any ReadDocument error other than not-found and
returned filer_pb.ErrNotFound, so a lookup that could not reach ArangoDB
answered that an existing entry was gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* filer/rocksdb: report a failed read as an error, not as a missing entry

FindEntry and KvGet checked for a missing value before the read error,
and the value is nil after any failed read, so every read error came back
as not found.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3: a versioned read whose lookup fails is not NoSuchKey

In a versioned bucket, GetObject, HeadObject and GetObjectAttributes
answered NoSuchKey for any error from getLatestObjectVersion, so a filer
or store outage told clients that existing objects were gone. They now
classify the error the way CopyObject's source lookup does: NoSuchKey
only when the object is missing, 503 for transient failures and 500
otherwise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3: keep the cause when the latest version file cannot be read

doGetLatestObjectVersion formatted a failed read of the version file the
pointer names with %v, so a transient failure there answered 500 instead
of 503.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 04:20:06 -08:00
..