Skip to content

ccl/multiregionccl: make multi-region dd less flaky#109050

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
kvoli:230818.make-mr-datadriven-less-flaky
Aug 21, 2023
Merged

ccl/multiregionccl: make multi-region dd less flaky#109050
craig[bot] merged 1 commit intocockroachdb:masterfrom
kvoli:230818.make-mr-datadriven-less-flaky

Conversation

@kvoli
Copy link
Copy Markdown
Contributor

@kvoli kvoli commented Aug 18, 2023

Previously, it was possible for lease transfers to be initiated in-between assertions which relied on a steady leaseholder.

This commit reduces the likelihood of lease transfers which would break assumptions the TestMultiRegionDataDriven test makes, by stopping load based rebalancing, and follow-the-workload lease transfers.

Informs: #108759

Release note: None

Previously, it was possible for lease transfers to be initiated
in-between assertions which relied on a steady leaseholder.

This commit reduces the likelihood of lease transfers which would break
assumptions the `TestMultiRegionDataDriven` test makes, by stopping
load based rebalancing, and follow-the-workload lease transfers.

Informs: cockroachdb#108759

Release note: None
@kvoli kvoli self-assigned this Aug 18, 2023
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@kvoli kvoli added backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only backport-23.1.9-rc labels Aug 18, 2023
@kvoli kvoli requested a review from rafiss August 18, 2023 21:49
@kvoli kvoli marked this pull request as ready for review August 18, 2023 21:49
@kvoli kvoli requested a review from a team as a code owner August 18, 2023 21:49
Copy link
Copy Markdown
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

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

nice!

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @kvoli)

@kvoli
Copy link
Copy Markdown
Contributor Author

kvoli commented Aug 21, 2023

TYFTR

bors r=rafiss

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 21, 2023

Build succeeded:

@craig craig bot merged commit 7970632 into cockroachdb:master Aug 21, 2023
kvoli added a commit to kvoli/cockroach that referenced this pull request Aug 31, 2023
Previously, `TestMultiRegionDataDriven` allowed kvserver (replicate
queue) lease transfers to occur for lease count rebalancing. Load based
rebalancing was disabled in an earlier patch cockroachdb#109050, however we saw in
interleaving replication changes -- leading to flaky behavior.

Bump the `kv.allocator.min_lease_transfer_interval` to 5 minutes,
effectively disabling internal lease transfers. Lease transfers which
are required for lease preference satisfaction, and manual transfers are
still permitted.

Fixes: cockroachdb#109215
Release note: None
craig bot pushed a commit that referenced this pull request Sep 1, 2023
109819: ccl/multiregionccl: deflake multi-region datadriven test r=rafiss a=kvoli

Previously, `TestMultiRegionDataDriven` allowed kvserver (replicate queue) lease transfers to occur for lease count rebalancing. Load based rebalancing was disabled in an earlier patch #109050, however we saw in interleaving replication changes -- leading to flaky behavior.

Bump the `kv.allocator.min_lease_transfer_interval` to 5 minutes, effectively disabling internal lease transfers. Lease transfers which are required for lease preference satisfaction, and manual transfers are still permitted.

Fixes: #109215
Release note: None

---

`TestMultiRegionDataDriven` speeds up replication changes by proactively
enqueuing replicas into various queues. This has the benefit of reducing
the time taken after zone config changes, however the downside of added
overhead.

Disable the test under deadlock builds, as the test is slow and
susceptible to (legitimate) timing issues on a deadlock build.

Informs: #109215
Release note: None

109826: jobs: add a reference to the resumer in the claimed jobs map r=dt a=adityamaru

This change adds a reference to the resumer in the map maintained by every registry of the jobs that it has claimed. This will be used in a follow up commit to request the resumer to dump its job profiler details on demand as explained in

Informs: #109671
Release note: None

109907: workload/indexes: support insert and update workloads r=DrewKimball,srosenberg a=nvanbenschoten

This commit adds support for Insert and Update statements in the indexes workload. Insert statements will fail if they find a collision and update statements will fail if they don't, so each workload has specific requirements, which are documented on the flag.

Epic: None
Release note: None

Co-authored-by: Austen McClernon <austen@cockroachlabs.com>
Co-authored-by: adityamaru <adityamaru@gmail.com>
Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
kvoli added a commit to kvoli/cockroach that referenced this pull request Sep 5, 2023
Previously, `TestMultiRegionDataDriven` allowed kvserver (replicate
queue) lease transfers to occur for lease count rebalancing. Load based
rebalancing was disabled in an earlier patch cockroachdb#109050, however we saw in
interleaving replication changes -- leading to flaky behavior.

Bump the `kv.allocator.min_lease_transfer_interval` to 5 minutes,
effectively disabling internal lease transfers. Lease transfers which
are required for lease preference satisfaction, and manual transfers are
still permitted.

Fixes: cockroachdb#109215
Release note: None
kvoli added a commit to kvoli/cockroach that referenced this pull request Sep 5, 2023
Previously, `TestMultiRegionDataDriven` allowed kvserver (replicate
queue) lease transfers to occur for lease count rebalancing. Load based
rebalancing was disabled in an earlier patch cockroachdb#109050, however we saw in
interleaving replication changes -- leading to flaky behavior.

Bump the `kv.allocator.min_lease_transfer_interval` to 5 minutes,
effectively disabling internal lease transfers. Lease transfers which
are required for lease preference satisfaction, and manual transfers are
still permitted.

Fixes: cockroachdb#109215
Release note: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants