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

roachtest: wait for upgrade to complete using retry loop in tpcc #92153

Merged

Conversation

renatolabs
Copy link
Contributor

Previously, the tpcc/mixed-headroom roachtests would reset the preserve_downgrade_option setting and then wait for the upgrade to finish by running a SET CLUSTER SETTING version = '...' statement. However, that is not reliable as it's possible for that statement to return an error if the resetting of the preserve_downgrade_option has not been propagated yet (see #87201).

To avoid this type of flake (which has been observed in manual runs), we use a retry loop waiting for the cluster version to converge, as is done by the majority of upgrade-related roachtests.

Epic: None.
Release note: None

@renatolabs renatolabs added the A-testing Testing tools and infrastructure label Nov 18, 2022
@renatolabs renatolabs requested review from a team, herkolategan and smg260 and removed request for a team November 18, 2022 20:20
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Previously, the `tpcc/mixed-headroom` roachtests would reset the
`preserve_downgrade_option` setting and then wait for the upgrade to
finish by running a `SET CLUSTER SETTING version = '...'`
statement. However, that is not reliable as it's possible for that
statement to return an error if the resetting of the
`preserve_downgrade_option` has not been propagated yet (see cockroachdb#87201).

To avoid this type of flake (which has been observed in manual runs),
we use a retry loop waiting for the cluster version to converge, as is
done by the majority of upgrade-related roachtests.

Epic: None.
Release note: None
@renatolabs renatolabs force-pushed the rc/multiple-upgrade-setting-delay-fix branch from 930a173 to 8859c76 Compare November 18, 2022 20:22
Copy link
Member

@srosenberg srosenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @herkolategan and @smg260)

@renatolabs
Copy link
Contributor Author

bors r=srosenberg

@craig
Copy link
Contributor

craig bot commented Nov 18, 2022

Build succeeded:

@craig craig bot merged commit e9f217f into cockroachdb:master Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testing Testing tools and infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants