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: use simulator to evaluate 23.2 allocation changes #111838

Closed
shralex opened this issue Oct 5, 2023 · 3 comments · Fixed by #114080
Closed

kvserver: use simulator to evaluate 23.2 allocation changes #111838

shralex opened this issue Oct 5, 2023 · 3 comments · Fixed by #114080
Assignees
Labels
branch-release-23.2 Used to mark GA and release blockers, technical advisories, and bugs for 23.2 C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) GA-blocker O-premortem Issues identified during premortem exercise. T-kv KV Team

Comments

@shralex
Copy link
Contributor

shralex commented Oct 5, 2023

We should use the Simulator to evaluate any 23.2 changes, related to MR or other.

Jira issue: CRDB-32088

@shralex shralex added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. GA-blocker T-kv KV Team O-premortem Issues identified during premortem exercise. labels Oct 5, 2023
@blathers-crl
Copy link

blathers-crl bot commented Oct 5, 2023

Hi @shralex, please add branch-* labels to identify which branch(es) this release-blocker affects.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@kvoli kvoli changed the title kvserver: use Simulator to evaluate 23.2 allocation changes kvserver: use simulator to evaluate 23.2 allocation changes Oct 5, 2023
@kvoli kvoli added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) and removed C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. labels Oct 5, 2023
@kvoli kvoli added the branch-release-23.2 Used to mark GA and release blockers, technical advisories, and bugs for 23.2 label Oct 30, 2023
@kvoli
Copy link
Collaborator

kvoli commented Oct 30, 2023

I went through allocator related changes since 2023-03-01 on the release-23.2 branch and flagged any that would be candidates for additional simulator testing:

@kvoli
Copy link
Collaborator

kvoli commented Oct 31, 2023

Mapping the commits to their respective pull requests and adding some additional information on the change, and level of testing (inc simulator) currently:

kvoli added a commit to kvoli/cockroach that referenced this issue Nov 8, 2023
Make `LeasePreferencesStatus` and associated helpers public. These are
later used in the allocator simulator for conformance assertions.

Part of: cockroachdb#111838
kvoli added a commit to kvoli/cockroach that referenced this issue Nov 8, 2023
Add support for parsing lease preferences and diffing lease preferences
from the default (empty) zone config.

Part of: cockroachdb#111838
Release note: None
kvoli added a commit to kvoli/cockroach that referenced this issue Nov 8, 2023
Add support for parsing and asserting on lease preferences in simulator
tests. This commit adds support for asserting on the number of leases
violating preferences and the number of leases on store's with less
preferred localities/attributes.

Resolves: cockroachdb#111838
Release note: None
craig bot pushed a commit that referenced this issue Nov 9, 2023
113981: allocator: bump ranges by up to 1 per iter in full disk test r=andrewbaptist a=kvoli

`TestAllocatorTestAllocatorFullDisks` adds ranges to stores incrementally over 100 generations, mocking rebalancing each generation. The test fails if a store ever reaches, or exceeds the disk capacity.

This test recently failed in #113822 during the add step of the generation loop. Add a maximum of 1 range each iteration, as opposed to the previous 2.

Resolves: #113822
Release note: None

114080: asim: add lease preference testing r=wenyihu6 a=kvoli

Add support for parsing and asserting on lease preferences in simulator
tests. This commit adds support for asserting on the number of leases
violating preferences and the number of leases on store's with less
preferred localities/attributes.

Resolves: #111838
Release note: None

114182: dev: add a shorthand for sql-bootstrap-data r=RaduBerinde,rickystewart,celiala a=andyyang890

This patch adds a `dev` shorthand for the `sql-bootstrap-data` CLI tool.

Informs: #112629

Release note: None

Co-authored-by: Austen McClernon <[email protected]>
Co-authored-by: Andy Yang <[email protected]>
@craig craig bot closed this as completed in 662f3ed Nov 9, 2023
@github-project-automation github-project-automation bot moved this to Closed in KV Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-release-23.2 Used to mark GA and release blockers, technical advisories, and bugs for 23.2 C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) GA-blocker O-premortem Issues identified during premortem exercise. T-kv KV Team
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants