Skip to content

[common] Abort multipart staging when the final part upload fails - #11556

Open
zhangyue19921010 wants to merge 1 commit into
apache:masterfrom
zhangyue19921010:contrib/abort-failed-final-multipart
Open

zhangyue19921010 wants to merge 1 commit into
apache:masterfrom
zhangyue19921010:contrib/abort-failed-final-multipart

Conversation

@zhangyue19921010

Copy link
Copy Markdown
Contributor

Purpose

Fixes #11555.

When a format table's final multipart part fails to upload, the stream is already closed and no committer reaches the writer's abort path. Previously uploaded parts remain staged. Abort that upload before propagating the final-part failure, preserving any cleanup error as a suppressed exception.

Tests

Added regressions for the failed final part, failure during abort, and the FormatTableSingleFileWriter.close() cleanup path, using injected storage failures. All three fail on the unchanged base. Focused multipart, rename-based two-phase output and format writer tests pass with the fix, with the normal Maven quality checks enabled (JDK 11).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Final multipart upload failures leave staged parts behind

1 participant