-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: add RangeAppliedState.RaftAppliedIndexTerm #75671
Labels
A-kv-replication
Relating to Raft, consensus, and coordination.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Comments
sumeerbhola
added
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
A-kv-replication
Relating to Raft, consensus, and coordination.
labels
Jan 28, 2022
sumeerbhola
added a commit
to sumeerbhola/cockroach
that referenced
this issue
Jan 28, 2022
The same field is also introduced in ReplicaState, since ReplicaState is used in internal data-structures and when sending a state machine snapshot. The migration code uses a special unused term value in a ReplicatedEvalResult to signal to the state machine application machinery to start populating the term field. Fixes cockroachdb#75671 Release note: None
sumeerbhola
added a commit
to sumeerbhola/cockroach
that referenced
this issue
Feb 1, 2022
The same field is also introduced in ReplicaState, since ReplicaState is used in internal data-structures and when sending a state machine snapshot. The migration code uses a special unused term value in a ReplicatedEvalResult to signal to the state machine application machinery to start populating the term field. Fixes cockroachdb#75671 Release note: None
sumeerbhola
added a commit
to sumeerbhola/cockroach
that referenced
this issue
Feb 2, 2022
The same field is also introduced in ReplicaState, since ReplicaState is used in internal data-structures and when sending a state machine snapshot. The migration code uses a special unused term value in a ReplicatedEvalResult to signal to the state machine application machinery to start populating the term field. Fixes cockroachdb#75671 Release note: None
sumeerbhola
added a commit
to sumeerbhola/cockroach
that referenced
this issue
Feb 2, 2022
The same field is also introduced in ReplicaState, since ReplicaState is used in internal data-structures and when sending a state machine snapshot. The migration code uses a special unused term value in a ReplicatedEvalResult to signal to the state machine application machinery to start populating the term field. Fixes cockroachdb#75671 Release note: None
sumeerbhola
added a commit
to sumeerbhola/cockroach
that referenced
this issue
Feb 2, 2022
The same field is also introduced in ReplicaState, since ReplicaState is used in internal data-structures and when sending a state machine snapshot. The migration code uses a special unused term value in a ReplicatedEvalResult to signal to the state machine application machinery to start populating the term field. Fixes cockroachdb#75671 Release note: None
sumeerbhola
added a commit
to sumeerbhola/cockroach
that referenced
this issue
Feb 3, 2022
The same field is also introduced in ReplicaState, since ReplicaState is used in internal data-structures and when sending a state machine snapshot. The migration code uses a special unused term value in a ReplicatedEvalResult to signal to the state machine application machinery to start populating the term field. Fixes cockroachdb#75671 Release note: None
sumeerbhola
added a commit
to sumeerbhola/cockroach
that referenced
this issue
Feb 3, 2022
The same field is also introduced in ReplicaState, since ReplicaState is used in internal data-structures and when sending a state machine snapshot. The migration code uses a special unused term value in a ReplicatedEvalResult to signal to the state machine application machinery to start populating the term field. Fixes cockroachdb#75671 Release note: None
sumeerbhola
added a commit
to sumeerbhola/cockroach
that referenced
this issue
Feb 3, 2022
The same field is also introduced in ReplicaState, since ReplicaState is used in internal data-structures and when sending a state machine snapshot. The migration code uses a special unused term value in a ReplicatedEvalResult to signal to the state machine application machinery to start populating the term field. Fixes cockroachdb#75671 Release note: None
craig bot
pushed a commit
that referenced
this issue
Feb 4, 2022
75084: rfc: enable Datestyle/IntervalStyle by Default r=e-mbrown a=e-mbrown This is a proposal for enabling Datestyle and Intervalstyle by default. Release note: None 75176: sql: refactor ConcurrentWriteBuffer into ConcurrentBufferGuard r=Azhng a=Azhng This commit refactors the pattern used in ConcurrentWriterBuffer used in transaction ID cache into a generic helper data structure to allow for future reuse. Partially address #74487 Release note: None 75675: kvserver: introduce RangeAppliedState.RaftAppliedIndexTerm r=sumeerbhola a=sumeerbhola The same field is also introduced in ReplicaState, since ReplicaState is used in internal data-structures and when sending a state machine snapshot. The migration code uses a special unused term value in a ReplicatedEvalResult to signal to the state machine application machinery to start populating the term field. Fixes #75671 Release note: None Co-authored-by: e-mbrown <ebsonari@gmail.com> Co-authored-by: Azhng <archer.xn@gmail.com> Co-authored-by: sumeerbhola <sumeer@cockroachlabs.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-kv-replication
Relating to Raft, consensus, and coordination.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
This value is the term of the raft entry corresponding to
RangeAppliedState.RaftAppliedIndex
.The design of the
ReplicasStorage
interface described in the long comment herecockroach/pkg/storage/replicas_storage.go
Lines 38 to 519 in 4a73be0
Even though the initial
ReplicasStorage
implementation will store both in the same engine, there are multiple worrisome corner cases with our current implementation (inconsistencies when raft application is done using sideloaded files, and #73462) that we want to transition to an implementation based on the new design. A pre-requisite is to introduceRangeAppliedState.RaftAppliedIndexTerm
. Doing this in the current implementation and having a migration that ensures it is populated in v22.1 clusters will simplify the larger future transition toReplicasStorage
.cc: @tbg @erikgrinaker
The text was updated successfully, but these errors were encountered: