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

[v24.1.x] Fix http client segfault in metrics_reporter #21612

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #21579

In case of exceptions, destroying the client may not be safe because the
underlying output stream may not be fully flushed.

(cherry picked from commit 35fa28b)
It just calls client->stop() (which will make the client unusable and
we need to call anyway before the client is destroyed), so remove it
to avoid confusion.

(cherry picked from commit 59a42de)
@vbotbuildovich vbotbuildovich added this to the v24.1.x-next milestone Jul 24, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jul 24, 2024
@piyushredpanda piyushredpanda modified the milestones: v24.1.x-next, v24.1.12 Jul 24, 2024
@ztlpn
Copy link
Contributor

ztlpn commented Jul 24, 2024

Test failure unrelated, created an issue: #21621

@piyushredpanda piyushredpanda merged commit c3845c2 into redpanda-data:v24.1.x Jul 24, 2024
15 of 18 checks passed
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.

3 participants