mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
StagedChunks is counted when staging remembers a chunk for reuse, so a round interrupted partway counts what it finished instead of nothing; the copy window, which shares the upload stream, does not count. The counter's contract (only grows, a re-staged chunk counts again, in-process) is stated in the status and in a new invariant row with its tests: an exact count of 6 for a failed attempt, 0 for its reusing retry, and 5 of 6 for a round whose upload fails at the sixth chunk. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>