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

Make cluster replicas return ASK and TRYAGAIN #495

Merged

Commits on May 13, 2024

  1. Make replicas return ASK and TRYAGAIN

    After READONLY, a replicas behaves as its primary regarding returning
    ASK redirects and TRYAGAIN.
    
    Without this patch, a client reading from replicas cannot tell if a
    key doesn't exist or if it's being migrated to another slot. Therefore,
    without an ASK redirect in this situation, reading from replicas wasn't
    reliable.
    
    The target of a redirect is always a primary. If a client wants to
    continue reading from a replica after following a redirect, it needs to
    figure out the replicas of that primary using CLUSTER SHARDS or similar.
    
    Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
    zuiderkwast committed May 13, 2024
    Configuration menu
    Copy the full SHA
    689ee06 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Configuration menu
    Copy the full SHA
    7f8edc1 View commit details
    Browse the repository at this point in the history
  2. Fix badly resolved merge conflict

    Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
    zuiderkwast committed May 23, 2024
    Configuration menu
    Copy the full SHA
    b1461ee View commit details
    Browse the repository at this point in the history