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

rac2,replica_rac2: implement Processor.AdmitForEval #129573

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

sumeerbhola
Copy link
Collaborator

  • 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 #129522

Epic: CRDB-37515

Release note: None

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

This change is Reviewable

Copy link
Collaborator Author

@sumeerbhola sumeerbhola left a 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: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @kvoli and @pav-kv)

@sumeerbhola sumeerbhola force-pushed the proc_eval branch 2 times, most recently from c1fab20 to b622045 Compare August 23, 2024 19:03
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 7 of 7 files at r2, 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:

@sumeerbhola sumeerbhola force-pushed the proc_eval branch 2 times, most recently from 8df85f5 to bb0b5f4 Compare August 27, 2024 01:44
@sumeerbhola
Copy link
Collaborator Author

bors r=kvoli

@craig
Copy link
Contributor

craig bot commented Aug 27, 2024

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
@sumeerbhola
Copy link
Collaborator Author

bors r=kvoli

@craig craig bot merged commit eada67c into cockroachdb:master Aug 27, 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
Development

Successfully merging this pull request may close these issues.

rac2: implement Processor.AdmitForEval
3 participants