Skip to content

fix(dav-server): abort writer on write failure#7569

Open
andrei-21 wants to merge 1 commit into
apache:mainfrom
andrei-21:fix/abort-on-failure
Open

fix(dav-server): abort writer on write failure#7569
andrei-21 wants to merge 1 commit into
apache:mainfrom
andrei-21:fix/abort-on-failure

Conversation

@andrei-21
Copy link
Copy Markdown

Which issue does this PR close?

Closes #7425.

Rationale for this change

OpenDAL writers must be explicitly finalized with either close() or abort(). The dav-server integration previously adapted Writer into FuturesAsyncWriter, which only exposed AsyncWrite operations and did not allow abort() to be called when a write path failed before close().

What changes are included in this PR?

Keep the OpenDAL Writer in OpendalFile so failed write and close paths can abort the writer before returning an error. This prevents failed PUT operations from leaving the writer to be dropped without explicit termination.

Are there any user-facing changes?

No.

AI Usage Statement

Codex with gpt-5.5 model was used.

@andrei-21 andrei-21 requested review from Xuanwo and tisonkun as code owners May 20, 2026 12:32
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. releases-note/fix The PR fixes a bug or has a title that begins with "fix" labels May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/fix The PR fixes a bug or has a title that begins with "fix" size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: dav-server-opendalfs: OpendalFile drops opendal::Writer without close() or abort() on write failure

1 participant