mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
* plugin/worker: look up a volume's EC shard holders on the master LookupEcVolumeLocations returns every server the master currently lists for any shard of the volume. The master's "ec volume N not found" answer means no holders; any other failure is returned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * erasure_coding: clear stale EC shards on every holder the master lists The encode preflight and the post-distribute rollback cleared stale shards only on the planned targets and on the EC holders detection saw. A server that was down at detection and came back with a failed attempt's shards was outside both, so its shards survived and ended up beside the new encode: EC balance could later keep that stale copy as a duplicate. The cleanup now also asks the master for the volume's current holders and clears every one of them. A lookup failure counts as a cleanup failure, so the preflight retries later instead of encoding beside shards it cannot see. Without a master address the cleanup behaves as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * erasure_coding: ask every master for the EC shard holders The execution defaults keep only the first master address, so a follower there failed every holder lookup and with it the encode preflight. The plugin handler now hands the task the whole cluster master list, and the lookup moves on past a master that refuses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * erasure_coding: refuse the preflight wipe when a regular replica is gone A replayed job whose earlier run already committed the EC copy and deleted the source would wipe those shards, now on every holder the master lists, before failing on the missing source. Check that every regular replica is still there before clearing anything. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>