mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
* filer.proto: mark a forwarded StreamRenameEntry with is_moved Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * filer: send a rename whose source misses locally to the write owner Exclusive and conditional creates are stored on the path's write owner. With separate filer stores, a rename sent to another filer before it has replayed the create found no source and failed, so a mount that flushed a deferred create and renamed the file right after got EIO. Such a rename now goes to the source's write owner, which moves the entry and whose events are relayed to the caller, unless the owner runs on this filer's store. A forwarded rename is applied only by the filer its own ring names as the owner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * filer: send an AtomicRenameEntry whose source misses locally to the write owner The same race reaches the unary rename that S3, WebDAV, SFTP and fs.mv use: an object or file created through the owner and renamed through another filer before replication found no source. It is forwarded like the stream rename, with is_moved bounding it to one hop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * rename: report a missing source as ENOENT A rename whose source is absent fails with the store's "no entry is found" error, which neither the filer's errno mapping nor the mount's message mapping recognized, so the client got EIO instead of ENOENT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * filer.proto: report a forwarded AtomicRenameEntry's last event position Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * filer: answer a forwarded rename once the owner's events are replayed here The rename's target is stored on the owner only until this filer replays it, so an unlink of that name sent here right after the rename would miss it and report success. The owner now reports the log position of the rename's last event, and the forwarding filer holds its answer (bounded) until its stream from the owner has delivered that far. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * filer: refuse a forwarded no-replace rename over a target this filer has Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * filer: wait for an owner this filer no longer follows before answering a forwarded rename PeersCaughtUpTo counts an untracked peer as caught up. An owner whose stream was down long enough to be dropped has replayed nothing here, so a forwarded rename answered then could leave a follow-up unlink through this filer missing the target. Require the owner to be tracked with a watermark at or past the rename, still bounded by ownerEventsCatchUpCap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>