Skip to content

Conversation

@tbg
Copy link
Member

@tbg tbg commented Oct 31, 2025

Backport 7/7 commits from #156540 on behalf of @tbg.


This attempts to finally put #156530 to rest. See individual commits, but broad stokes are that we repeatedly force-process the split queue (and not only the replicate queue), to make sure the range can quickly have the span config applied to it. I also added a bunch of span config and descriptor related debug output that should make it clear where the problem is should this test fail again.
Unfortunately, reproducing failures in this test seems to be difficult, though others seem to have managed.

Closes #156530.

Epic: none


Release justification: test flake fix

tbg added 7 commits October 30, 2025 14:17
This (hopefully) avoids the timeout in TestPromoteNonVoterInAddVoter
that could previously result if an ill-timed lease transfer prevented
reactively splitting in response to the zone configuration (which would
then delay application of the replication factor in said zone config).

Fixes cockroachdb#156530.
It tends to change as splits happen.
This reverts commit a884f8f (cockroachdb#155861).

As far as I understand, the cluster settings in this commit had the
effect of making sure that the span config for the table in the test
was exactly `[/Table/N,/Table/(N+1))`, i.e. that it wouldn't merge
with adjacent configs. But in a recent flake we see that the real
problem is that the range containing our table sometimes extends
past the span config (in a recent example, it reached the end of
the keyspace and wasn't split down in time for the test to pass).

Since commits in this PR ensure that the splitting happens proactively, it
should not matter whether span configs are coalesced or not, and we back out
that attempt at a fix as it's unclear what positive effect it may have.

@arulajmani: I'm probably missing something here. Happy to update
the description if so.
@tbg tbg requested review from a team as code owners October 31, 2025 09:37
@tbg tbg force-pushed the blathers/backport-release-25.4-156540 branch from 72d6bfa to d52e7e7 Compare October 31, 2025 09:37
@blathers-crl blathers-crl bot added blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. labels Oct 31, 2025
@blathers-crl blathers-crl bot requested a review from arulajmani October 31, 2025 09:37
@blathers-crl
Copy link

blathers-crl bot commented Oct 31, 2025

Thanks for opening a backport.

Before merging, please confirm that the change does not break backwards compatibility and otherwise complies with the backport policy. Include a brief release justification in the PR description explaining why the backport is appropriate. All backports must be reviewed by the TL for the owning area. While the stricter LTS policy does not yet apply, please exercise judgment and consider gating non-critical changes behind a disabled-by-default feature flag when appropriate.

@blathers-crl blathers-crl bot added backport Label PR's that are backports to older release branches T-kv KV Team labels Oct 31, 2025
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@arulajmani arulajmani merged commit cb4e6f5 into cockroachdb:release-25.4 Oct 31, 2025
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Label PR's that are backports to older release branches blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. T-kv KV Team target-release-25.4.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants