Skip to content

Multipart upload is left dangling when uploading an empty file #40

@kcalcagno

Description

@kcalcagno

In the event that an upload is completed before any bytes are actually written to the stream, StreamTransferManager instead calls putObject to create the empty object. That's fine, except the multipart upload that was initiated with the call to getMultiPartOutputStreams is never completed or aborted and thus might persist in the bucket forever.

This can be worked around if the caller calls abort directly, or mitigated if the bucket has a lifecycle rule that aborts incomplete multipart uploads, but it would be more appropriate for the library to abort on its own since it knows it won't ever write anything more to that specific upload ID.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions