Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
125687: upgrade/upgrades: TestLeasingClusterVersionStarvation flake r=fqazi a=fqazi Previously, the TestLeasingClusterVersionStarvation could fail because session based leasing migration with a lease duration of 0. This is because leases will expire instantly on the range feed, because of the zero duration. So, during the migration the system.lease descriptor is upgraded and expired instantly, and the clean up of the new lease is asynchronous. After the descriptor update a WaitForOneVersion is run on the system.lease table, which will now need to acquire the new version, which will run into trouble (because the old entry is not cleaned). To address this, this patch uses the default lease duration for this test, since production environments will never have this set to 0, and this scenario is unsupported. Fixes: cockroachdb#123618 Release note: None Co-authored-by: Faizan Qazi <faizan@cockroachlabs.com>
- Loading branch information