Skip to content

fix: redirect client commands during snapshot transfer#612

Merged
kjnilsson merged 1 commit intorabbitmq:mainfrom
specula-org:fix/receive-snapshot-redirect-client
Mar 27, 2026
Merged

fix: redirect client commands during snapshot transfer#612
kjnilsson merged 1 commit intorabbitmq:mainfrom
specula-org:fix/receive-snapshot-redirect-client

Conversation

@Qian-Cheng-nju
Copy link
Copy Markdown
Contributor

Hi — sorry, I know I said "last one" before, but I found one more that I think is worth fixing.

During snapshot transfer, handle_receive_snapshot doesn't have a clause for client commands or queries. They hit the catch-all and get a permanent {error, unsupported_call}. Since snapshot transfers can take a while, this means clients hitting this node during that window get hard errors instead of being redirected to the leader.

This adds handling so client requests get a proper rejection that lets the client rediscover the leader, similar to what was done for await_condition in #610.

@kjnilsson kjnilsson merged commit 1302869 into rabbitmq:main Mar 27, 2026
7 checks passed
@kjnilsson
Copy link
Copy Markdown
Contributor

Hi — sorry, I know I said "last one" before, but I found one more that I think is worth fixing.

Absolutely no need to apologise for contributing good fixes. Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants