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

spanconfigsqlwatcher: deflake TestSQLWatcherOnEventError #99745

Merged

Conversation

arulajmani
Copy link
Collaborator

Previously, this test was setting the no-op checkpoint duration to be
every hour to effectively disable checkpoints. Doing so is integral to
what the test is testing. However, this was a lie, given how util.Every works -- A call to ShouldProcess returns true the very first time.

This patch achieves the original goal by introducing a new testing knob. Previously, the test would fail in < 40 runs locally. Have this running strong for ~1000 runs.

Fixes #76765

Release note: None

Previously, this test was setting the no-op checkpoint duration to be
 every hour to effectively disable checkpoints. Doing so is integral to
what the test is testing. However, this was a lie, given how
`util.Every` works -- A call to `ShouldProcess` returns true the very
first time.

This patch achieves the original goal by introducing a new testing knob.
Previously, the test would fail in < 40 runs locally.  Have this running
strong for ~1000 runs.

Fixes cockroachdb#76765

Release note: None
@arulajmani arulajmani requested a review from irfansharif March 28, 2023 00:13
@arulajmani arulajmani requested a review from a team as a code owner March 28, 2023 00:13
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@arulajmani arulajmani added backport-22.1.x backport-23.1.x Flags PRs that need to be backported to 23.1 labels Mar 28, 2023
@arulajmani
Copy link
Collaborator Author

Thanks!

bors r+

@craig
Copy link
Contributor

craig bot commented Mar 28, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Mar 28, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Mar 28, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Mar 28, 2023

Build failed:

@arulajmani
Copy link
Collaborator Author

All flakes, all different, all unrelated.

bors r+

@craig craig bot merged commit 0745cd4 into cockroachdb:master Mar 28, 2023
@craig
Copy link
Contributor

craig bot commented Mar 28, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pkg/ccl/spanconfigccl/spanconfigsqlwatcherccl/spanconfigsqlwatcherccl_test: TestSQLWatcherOnEventError failed
3 participants