Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v23.1.x] net/batched_output_stream: call close() in a finally block #11605

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #11586
Fixes #11604,

close() must always be called; move it to a finally block.

Prevent
`Assertion `!_in_batch && "Was this stream properly closed?"' failed."`
in `seastar::output_stream<char>::~output_stream()`

Fix redpanda-data#11564

Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit 5df1e41)
@vbotbuildovich vbotbuildovich added this to the v23.1.x-next milestone Jun 22, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jun 22, 2023
@vbotbuildovich vbotbuildovich requested a review from dotnwat June 22, 2023 12:33
@BenPope BenPope marked this pull request as ready for review June 22, 2023 13:53
@BenPope BenPope self-assigned this Jun 22, 2023
@BenPope
Copy link
Member

BenPope commented Jun 22, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants