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: wiring of RACv2 to eval, and v1 => v2 transition code #129521

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

sumeerbhola
Copy link
Collaborator

The replicaFlowControlIntegration object for v1, which is a member of Replica.mu, is destroyed and replaced by a noop implementation.

The admissionDemuxHandle implements the new ReplicationAdmissionHandle and handles a switch from v1 to v2 during the wait.

At raft log entry encoding time, for the entries that were subject to replication admission control, we look at the latest value of the EnabledWhenLeaderLevel to decide whether we can use the v2 encoding.

Fixes #129129
Fixes #128756

Epic: CRDB-37515

Release note: None

@sumeerbhola sumeerbhola requested review from pav-kv and kvoli August 22, 2024 21:26
@sumeerbhola sumeerbhola requested review from a team as code owners August 22, 2024 21:26
@cockroach-teamcity
Copy link
Member

This change is Reviewable

The replicaFlowControlIntegration object for v1, which is a member of
Replica.mu, is destroyed and replaced by a noop implementation.

The admissionDemuxHandle implements the new ReplicationAdmissionHandle
and handles a switch from v1 to v2 during the wait.

At raft log entry encoding time, for the entries that were subject to
replication admission control, we look at the latest value of the
EnabledWhenLeaderLevel to decide whether we can use the v2 encoding.

Fixes cockroachdb#129129
Fixes cockroachdb#128756

Epic: CRDB-37515

Release note: None
Copy link
Collaborator

@kvoli kvoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 8 of 8 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @pav-kv)

@sumeerbhola
Copy link
Collaborator Author

TFTR!

@sumeerbhola
Copy link
Collaborator Author

bors r=kvoli

@craig
Copy link
Contributor

craig bot commented Aug 26, 2024

Build failed (retrying...):

@craig craig bot merged commit 81f6a82 into cockroachdb:master Aug 26, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants