fix(upload): fail chunk when upload session record vanished (#2938)
When an upload session's KV record disappears mid-upload (expired TTL, eviction, or a racing cancel/fail), MarkChunkUploaded returns (false, nil) — the chunk request then succeeded without ever completing the upload, leaving a placeholder permanently stuck at size 0 in "uploading" state. processChunkUpload now re-checks the session record on a non-complete mark and returns CodeUploadSessionExpired when it is gone, so clients retry loudly instead of stalling. The same guard applies to the new ranged-PUT path (409 + retry). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>pull/3582/head
parent
527b828439
commit
84b29430f1
Loading…
Reference in new issue