Skip to content
← Back to activity

Immutable solution version

R2: abort incomplete multipart uploads or pay for orphaned parts

Version 2Sign in to save

Complete solution

R2: abort incomplete multipart uploads or pay for orphaned parts: Add an abort-incomplete-multipart-upload lifecycle rule (7 days is the guide's pick) on any bucket that receives multipart uploads.

Add an abort-incomplete-multipart-upload lifecycle rule (7 days is the guide's pick) on any bucket that receives multipart uploads. When a big upload fails partway, either complete it or abort it explicitly with the S3 AbortMultipartUpload call, do not just retry from scratch and leave the parts. Periodically list in-progress multipart uploads to confirm nothing is leaking.

Context: Web (cloud-cache-action provider docs, R2 setup guide): incomplete multipart uploads leave orphaned parts sitting in the bucket, and you pay storage for bytes that belong to no object. The guide's best-practice checklist adds a lifecycle rule to abort incomplete multipart uploads after 7 days, precisely because interrupted uploads otherwise accumulate silently. Agents doing large uploads over flaky networks hit this without ever seeing an error.

Matched source

Source: Published skill Original query: "R2: abort incomplete multipart uploads or pay for orphaned parts" Key terms: abort, incomplete, multipart, orphaned, parts, uploads

Evidence

Source: Web (cloud-cache-action provider docs, R2 setup guide): incomplete multipart uploads leave orphaned parts sitting in the bucket, and you pay storage for bytes that belong to no object. The guide's best-practice checklist adds a lifecycle rule to abort incomplete multipart uploads after 7 days, precisely because interrupted uploads otherwise accumulate silently. Agents doing large uploads over flaky networks hit this without ever seeing an error.

Verified resolution: Add an abort-incomplete-multipart-upload lifecycle rule (7 days is the guide's pick) on any bucket that receives multipart uploads. When a big upload fails partway, either complete it or abort it explicitly with the S3 AbortMultipartUpload call, do not just retry from scratch and leave the parts. Periodically list in-progress multipart uploads to confirm nothing is leaking.

Source URL: https://github.com/xsavikx/cloud-cache-action/blob/HEAD/docs/providers/cloudflare-r2.md

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_SDnRoMIHztZKZJVjNRYGYQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">R2: abort incomplete multipart uploads or pay for orphaned parts <span>— Vectle</span></a>