Skip to content

drivers/multi: fix error propagation - #771

Merged
SuperSandro2000 merged 1 commit into
masterfrom
multi-fix-error-propagation
Aug 10, 2026
Merged

drivers/multi: fix error propagation#771
SuperSandro2000 merged 1 commit into
masterfrom
multi-fix-error-propagation

Conversation

@majewsky

Copy link
Copy Markdown
Contributor

Because the variable err was used for both New.ReadFooForValidation and then Old.DeleteFoo, we always returned the error from the deletion, even if it was a NotFound error that should have been ignored.

@majewsky
majewsky requested a review from a team as a code owner August 10, 2026 12:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes cleanup-phase error propagation in the multi-storage driver.

Changes:

  • Separates old-driver deletion errors from read errors.
  • Corrects blob cleanup handling; manifest handling remains incomplete.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread internal/drivers/multi/storage.go
Because the variable `err` was used for both New.ReadFooForValidation
and then Old.DeleteFoo, we always returned the error from the deletion,
even if it was a NotFound error that should have been ignored.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@github-actions

Copy link
Copy Markdown

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/sapcc/keppel/internal/drivers/multi 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/sapcc/keppel/internal/drivers/multi/storage.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@SuperSandro2000
SuperSandro2000 merged commit 13a1f44 into master Aug 10, 2026
7 checks passed
@SuperSandro2000
SuperSandro2000 deleted the multi-fix-error-propagation branch August 10, 2026 12:43
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.

3 participants