Files
seaweedfs/weed/util/constants
25f7e8a0fd filer: refuse chunk appends onto inline and remote-only entries (#12993)
* filer: refuse unsafe chunk appends

* filer: report append representation preconditions

* filer: cover cached remote append eviction safety

* filer: cover lazy remote append refusal

* filer: refuse HTTP appends and offset writes onto remote-only entries

An HTTP append or offset write onto a remote-only entry stored the new
chunk with nothing below it, so reads returned zeros where the remote
bytes were and the entry stopped being remote-only. Small appends failed
with a retryable "inline file changed" error instead.

Refuse both with a client error, matching AppendToEntry.

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

* filer: AppendToEntry appends after a sparse tail

AppendToEntry placed new chunks at the end of the existing chunks, so a
file extended past them by a truncate got the appended bytes inside its
logical length instead of after it, and its size did not grow. Use the
entry size, as the HTTP append path does.

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

---------

Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:22:46 -08:00
..