Skip to content

Comments

kvserver: deflake TestConsistencyQueueRecomputeStats#137044

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
miraradeva:mira-136596-stats
Dec 10, 2024
Merged

kvserver: deflake TestConsistencyQueueRecomputeStats#137044
craig[bot] merged 1 commit intocockroachdb:masterfrom
miraradeva:mira-136596-stats

Conversation

@miraradeva
Copy link
Contributor

The test manually adds voters and expects a leaseholder to be established before forcing a stats re-computation (which runs on the leaseholder). With leader leases, it might take an extra election timeout for the leader lease to be established after adding the new voters, so the test flaked if the re-computation ran (and failed) before the leaseholder was ready.

This commit makes the test retry the re-computation until a leasholder is established.

Fixes: #136596

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@miraradeva miraradeva marked this pull request as ready for review December 10, 2024 14:05
@miraradeva miraradeva requested a review from a team as a code owner December 10, 2024 14:05
Copy link
Collaborator

@arulajmani arulajmani 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 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @miraradeva)

@miraradeva
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Dec 10, 2024

🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

The test manually adds voters and expects a leaseholder to be
established before forcing a stats re-computation (which runs on the
leaseholder). With leader leases, it might take an extra election
timeout for the leader lease to be established after adding the new
voters, so the test flaked if the re-computation ran (and failed)
before the leaseholder was ready.

This commit makes the test retry the re-computation until a leasholder
is established.

Fixes: cockroachdb#136596

Release note: None
@miraradeva
Copy link
Contributor Author

Rebased master to kick off the stuck license GH action.

@craig
Copy link
Contributor

craig bot commented Dec 10, 2024

GitHub status checks took too long to complete, so bors is giving up. You can adjust bors configuration to have it wait longer if you like.

@miraradeva
Copy link
Contributor Author

bors r+

@craig craig bot merged commit 95d95a6 into cockroachdb:master Dec 10, 2024
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.

kv/kvserver: TestConsistencyQueueRecomputeStats failed

3 participants