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

Fix a segfault when recovery mode is partially enabled #17013

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

ztlpn
Copy link
Contributor

@ztlpn ztlpn commented Mar 12, 2024

In a mixed-mode clusters RPC requests for uploading consumer offsets to cloud storage could be issued from a node in normal mode to a node in recovery mode. Previously this resulted in a segfault.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x

Release Notes

Bug Fixes

  • Fix a crash that happened when a cluster that was partially in recovery mode tried to upload consumer offsets to cloud storage.

Previously these requests resulted in segfaults.
Mostly this test is a smoke test for mixed recovery mode - nodes should
successfully restart and not segfault.
@ztlpn ztlpn marked this pull request as ready for review March 12, 2024 07:18
@mmaslankaprv mmaslankaprv added this to the v23.3.x-next milestone Mar 12, 2024
@@ -42,13 +42,21 @@ class offsets_recovery_rpc_service : public offsets_recovery_service {

ss::future<offsets_upload_reply> offsets_upload(
offsets_upload_request req, rpc::streaming_context& ctx) override {
if (!_offsets_upload_router.local_is_initialized()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice.

@ztlpn ztlpn merged commit 4739456 into redpanda-data:dev Mar 12, 2024
18 checks passed
@vbotbuildovich
Copy link
Collaborator

/backport v23.3.x

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.

None yet

6 participants