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

rpc: Wrap ZSTD_error_memory_allocation to std::bad_alloc & catch exceptions from dispatch #3567

Merged
merged 3 commits into from
Jan 24, 2022

Conversation

VadimPlh
Copy link
Contributor

@VadimPlh VadimPlh commented Jan 21, 2022

Cover letter

Wrap ZSTD_error_memory_allocation to std::bad_alloc and catch it in rpc::simple_protocol

Release notes

  • Replace ZSTD allocation_error to bad_alloc
  • Catch all exception in fiber inside rps_simple_protocol

@VadimPlh
Copy link
Contributor Author

#3511 (review) is related

src/v/rpc/simple_protocol.cc Outdated Show resolved Hide resolved
src/v/compression/stream_zstd.cc Outdated Show resolved Hide resolved
src/v/rpc/simple_protocol.cc Outdated Show resolved Hide resolved
@jcsp jcsp changed the title Wrap ZSTD_error_memory_allocation to std::bad_alloc rpc: Wrap ZSTD_error_memory_allocation to std::bad_alloc & catch exceptions from dispatch Jan 21, 2022
@jcsp
Copy link
Contributor

jcsp commented Jan 21, 2022

Don't forget release notes in the description, even if it's just marking it as not having any like this:

Release notes

  • None

@jcsp
Copy link
Contributor

jcsp commented Jan 24, 2022

Retried debug build for "Failed to remove..." failure.

jcsp
jcsp previously approved these changes Jan 24, 2022
Copy link
Contributor

@jcsp jcsp left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@VadimPlh VadimPlh merged commit 4a8bc5d into redpanda-data:dev Jan 24, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants