mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
FindEntry turned every failed read into filer_pb.ErrNotFound, because the value it checks is still nil after any error. While TiKV cannot be reached, or a region has lost its leader, a lookup of an existing entry answers "not found" once the client library gives up its backoff (about 40 s): the S3 gateway returns 404 NoSuchKey to HEAD and CopyObject, weed mount returns ENOENT and the filer HTTP API 404. Writes in the same outage fail with an error, so only reads report the entry as gone. A read that TiKV answers with "not exist" is still a missing entry; any other error is returned to the caller. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>