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

kvserver,rac2,replica_rac2: consistently read from RawNode #132049

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sumeerbhola
Copy link
Collaborator

The replica_rac2.RaftNode interface is no more, and is replaced by RaftNodeBasicState that is passed in to Processor by the caller.

The rac2.RaftInterface remains, and is solely for use by RangeController. Various methods on replica_rac2.Replica are also removed.

kvserver.Replica is responsible for populating RaftNodeBasicState and RaftEvent.ReplicasStateInfo (the latter was previously being populated in processorImpl).

For the raft state accessed by RAC2 code during Replica.handleRaftReady, this centralizes all Raft state access to when
Replica.handleRaftReadyRaftMuLocked locks the Replica.mu.

Epic: CRDB-37515

Release note: None

The replica_rac2.RaftNode interface is no more, and is replaced by
RaftNodeBasicState that is passed in to Processor by the caller.

The rac2.RaftInterface remains, and is solely for use by RangeController.
Various methods on replica_rac2.Replica are also removed.

kvserver.Replica is responsible for populating RaftNodeBasicState
and RaftEvent.ReplicasStateInfo (the latter was previously being
populated in processorImpl).

For the raft state accessed by RAC2 code during Replica.handleRaftReady,
this centralizes all Raft state access to when
Replica.handleRaftReadyRaftMuLocked locks the Replica.mu.

Epic: CRDB-37515

Release note: None
@sumeerbhola sumeerbhola requested review from a team as code owners October 6, 2024 19:11
@cockroach-teamcity
Copy link
Member

This change is Reviewable

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