Files
seaweedfs/weed/filer/elastic/v7
370fd46ed9 filer/elastic: report a failed read as an error, not as a missing entry (#13334)
* filer/elastic: report a failed read as an error, not as a missing entry

FindEntry returned filer_pb.ErrNotFound for any error from Elasticsearch
other than not-found, so a lookup that timed out or met an unavailable
cluster answered that an existing entry was gone. It now returns the
error, as #13287 and #13289 made the TiKV, MongoDB, ArangoDB and RocksDB
stores do.

KvGet reported a value it could not decode as missing. It now returns the
decode error.

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

* filer/elastic: keep a top-level directory whose lookup failed

DeleteEntry looked up a top-level entry to decide whether to drop its
index, and treated a failed lookup like a file: it deleted the entry and
left the directory's index behind. Return the lookup error instead, so the
delete fails and a retry drops the index.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
2026-12-03 10:32:34 -08:00
..
2022-09-14 23:06:44 -07:00