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

[v22.3.x] Set promise on exceptions in dispatch_method_once #10461

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #8519
Fixes #10460,

Changes the logic of `dispatch_method_once` to avoid a broken promise
when the connection is closed before the input is skipped for unknown
methods and unknown versions. This ensures that we are always setting
the body_parse promise after reading in all the input and before we send
a reply.

(cherry picked from commit e47ab0d)
@vbotbuildovich vbotbuildovich added this to the v22.3.x-next milestone Apr 28, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Apr 28, 2023
@piyushredpanda piyushredpanda modified the milestones: v22.3.x-next, v22.3.18 May 9, 2023
@ballard26 ballard26 marked this pull request as ready for review May 9, 2023 15:24
@ballard26 ballard26 merged commit af557c0 into redpanda-data:v22.3.x May 9, 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.

3 participants