-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
rac2,replica_rac2: implement Processor.AdmitForEval #129573
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First commit is from #129521
Reviewable status:
complete! 0 of 0 LGTMs obtained (waiting on @kvoli and @pav-kv)
c1fab20
to
b622045
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 7 of 7 files at r2, all commit messages.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @pav-kv)
TFTR! |
bors r=kvoli |
Build failed: |
8df85f5
to
bb0b5f4
Compare
bors r=kvoli |
Build failed: |
- RangeController.WaitForEval is changed to additionally return a waited bool, so that it conforms to the callers expectation that (false, nil) will be returned when the RangeController is closed during waiting. This allows the caller to wait on the local store (before eval) and not completely bypass all AC. - Processor.AdmitForEval consults the existing kvadmission.flow_control.mode cluster setting to decide whether a request should be subject to replication AC, and if yes, forwards to the RangeController. Fixes cockroachdb#129522 Epic: CRDB-37515 Release note: None
bors r=kvoli |
bool, so that it conforms to the callers expectation that (false, nil)
will be returned when the RangeController is closed during waiting.
This allows the caller to wait on the local store (before eval) and
not completely bypass all AC.
kvadmission.flow_control.mode cluster setting to decide whether a
request should be subject to replication AC, and if yes, forwards to
the RangeController.
Fixes #129522
Epic: CRDB-37515
Release note: None