mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
* filer: retry a chunk delete that a replica in maintenance mode refused
The filer sends BatchDelete to every replica on its own, and BatchDelete does
not replicate. A volume server in maintenance mode refuses it with "volume
server X is in maintenance mode", which the deletion pipeline took for a
permanent error, so the delete was dropped while the other replicas had
already applied it. That replica then kept the needle live for good, which
breaks EC encode ("no union") until volume.check.disk -syncDeleted repairs it.
Maintenance mode is what a rolling upgrade puts each volume server into, so
every filer delete in that window was lost on one replica.
Treat the maintenance-mode refusal as retryable. The retry runs after the
server leaves maintenance mode; the replicas that already deleted the needle
answer it as not modified.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* seaweed-volume: refuse in maintenance mode with Unknown, as the Go server does
The Go server refuses with a plain error, which arrives as Unknown. The
Rust server sent Unavailable with no details, which Go clients take for
a dead channel: each refused BatchDelete closed the filer's shared
connection to the server and cancelled the other RPCs on it. The message
is unchanged, so the filer still retries the refused delete.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ec: stop describing a Rust maintenance refusal as Unavailable
Both volume servers now refuse in maintenance mode with Unknown, so the
orphan sweep's Ping disambiguation comments no longer name Rust.
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>