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

backupccl: deflake TestScheduleChainingLifecycle #95606

Merged
merged 1 commit into from
Jan 20, 2023

Conversation

msbutler
Copy link
Collaborator

This patch will skip the test if the machine clock is close to midnight, and increases the frequency of incremental backups to run every 2 minutes.

Previously, the backup schedule in this test used the following crontab recurrence: '*/5 * * * *'. In english, this means "run a full backup now, and then run a full backup every day at midnight, and an incremental every 5 minutes. This test also relies on an incremental backup running after the first full backup. But, what happens if the first full backup gets scheduled to run within 5 minutes of midnight? A second full backup may get scheduled before the expected incremental backup, breaking the invariant the test expects.

Fixes #88575 #95186

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@msbutler msbutler force-pushed the butler-midnight-bug branch 2 times, most recently from e7946f4 to eaa7d8d Compare January 20, 2023 19:30
This patch will skip the test if the machine clock is close to midnight, and
increases the frequency of incremental backups to run every 2 minutes.

Previously, the backup schedule in this test used the following crontab
recurrence: '*/5 * * * *'. In english, this means "run a full backup now, and
then run a full backup every day at midnight, and an incremental every 5
minutes. This test also relies on an incremental backup running after the first
full backup. But, what happens if the first full backup gets scheduled to run
within 5 minutes of midnight? A second full backup may get scheduled before the
expected incremental backup, breaking the invariant the test expects.

Fixes cockroachdb#88575 cockroachdb#95186

Release note: None
@msbutler
Copy link
Collaborator Author

bors r=adityamaru

@craig
Copy link
Contributor

craig bot commented Jan 20, 2023

Build succeeded:

@craig craig bot merged commit 1b79102 into cockroachdb:master Jan 20, 2023
@msbutler msbutler deleted the butler-midnight-bug branch January 21, 2023 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

backupccl: TestScheduleChainingLifecycle is flaky
3 participants