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

keys,kvserver: introduce RaftReplicaID #75761

Merged
merged 1 commit into from
Feb 4, 2022

Commits on Feb 4, 2022

  1. keys,kvserver: introduce RaftReplicaID

    The RaftReplicaIDKey is an unreplicated range-id local key that
    contains the ReplicaID of the replica whose HardState is represented
    in the RaftHardStateKey. These two keys are removed atomically when
    we clear the range-id local keys for a replica. See
    store_create_replica.go for a detailed comment on correctness
    and version compatibility.
    
    We currently do not utilize this information on node restart
    to figure out whether we should cleanup stale uninitialized replicas.
    Doing such cleanup can wait until we implement and start using
    ReplicasStorage. The change here is meant to set us up to rely
    on RaftReplicaID from the next release onwards.
    
    Informs cockroachdb#75740
    
    Release note: None
    sumeerbhola committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    0d6e8b6 View commit details
    Browse the repository at this point in the history