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.2.x] c/archival_stm: translate sync error to not_leader error code #14997

Commits on Nov 16, 2023

  1. c/archival_stm: translate sync error to not_leader error code

    When `persisted_stm::sync()` method fails it is indicating that the
    current node is not longer a leader. The `sync()` executed before
    `replicate` call in archival stm `command_batch_builder` prevents
    replicate from being called. The end result for such an error is
    deterministic and we can translate the sync error to `not_leader` error
    code.
    
    Fixes: redpanda-data#14898
    
    Signed-off-by: Michal Maslanka <michal@redpanda.com>
    (cherry picked from commit 4dfdc53)
    mmaslankaprv authored and vbotbuildovich committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    2e2e61c View commit details
    Browse the repository at this point in the history