Skip to content

fix(jetstream): surface close error on unarchive open-failure path#5635

Merged
norman-abramovitz merged 1 commit into
cloudfoundry:developfrom
nabramovitz:fix/unarchive-error-path-close
Jul 13, 2026
Merged

fix(jetstream): surface close error on unarchive open-failure path#5635
norman-abramovitz merged 1 commit into
cloudfoundry:developfrom
nabramovitz:fix/unarchive-error-path-close

Conversation

@nabramovitz

Copy link
Copy Markdown
Contributor

Clears the last open Code Quality warning (go/unhandled-writable-file-close, unarchive.go).

The entry.Open error path in cfapppush's unarchive discarded the error from out.Close(). Now the close error is joined with the open error via errors.Join, so a failed close is surfaced instead of silently dropped while the more significant open failure still leads the chain.

Verified: cfapppush build and tests pass, make lint clean on both modules, full check gate green.

The entry.Open error path discarded out.Close()'s error, leaving the
last go/unhandled-writable-file-close Code Quality warning. Join the
close error with the open error instead of dropping it.
@norman-abramovitz norman-abramovitz marked this pull request as ready for review July 13, 2026 00:01
@norman-abramovitz norman-abramovitz marked this pull request as draft July 13, 2026 00:06
@nabramovitz nabramovitz marked this pull request as ready for review July 13, 2026 01:03
@norman-abramovitz norman-abramovitz merged commit 7a73712 into cloudfoundry:develop Jul 13, 2026
21 checks passed
@nabramovitz nabramovitz deleted the fix/unarchive-error-path-close branch July 13, 2026 04: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.

2 participants