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] Optimize send path error handling #12859

Conversation

rockwotj
Copy link
Contributor

Backport of PR #12472

Create less of a continuation chain by handling all the exceptions in a
single coroutine.

Signed-off-by: Tyler Rockwood <[email protected]>
(cherry picked from commit 9670361)
Remove the double dose of ssx::handle_shutdown_exceptions by inlining
the gate handling into a single place.

Remove the extra overhead of some lambdas and a couple of extra
continuations by handling unexpected errors and closing the gate in a
single continuation.

Signed-off-by: Tyler Rockwood <[email protected]>
(cherry picked from commit 0b3fa8c)
@rockwotj rockwotj added this to the v23.1.x-next milestone Aug 16, 2023
@rockwotj rockwotj added the kind/backport PRs targeting a stable branch label Aug 16, 2023
@rockwotj rockwotj linked an issue Aug 16, 2023 that may be closed by this pull request
Copy link
Contributor

@NyaliaLui NyaliaLui left a comment

Choose a reason for hiding this comment

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

the commits are fine but the compilation error is strange

@rockwotj
Copy link
Contributor Author

I think this is a clang bug with inlining a coroutine function?

I think I'll just not do this backport then, it's probably not worth the effort and this is really more of a performance optimization.

@rockwotj rockwotj closed this Aug 17, 2023
@piyushredpanda piyushredpanda modified the milestones: v23.1.x-next, v23.1.17 Aug 24, 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.

[v23.1.x] Optimize send path error handling
3 participants