Skip to content

roachtest/cdc: disable distribution strategy in old versions #116888

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
jayshrivastava:cdc-mixed-versions
Dec 20, 2023
Merged

roachtest/cdc: disable distribution strategy in old versions #116888
craig[bot] merged 1 commit intocockroachdb:masterfrom
jayshrivastava:cdc-mixed-versions

Conversation

@jayshrivastava
Copy link
Copy Markdown
Contributor

@jayshrivastava jayshrivastava commented Dec 20, 2023

oachtest/cdc: disable distribution strategy in old versions
The DistributionStrategy feature flag was added to randomly set the
changefeed.default_range_distribution_strategy cluster setting. Since this setting
was added in 23.2, this feature flag should be disabled when testing versions < 23.2.

This change updates the feature flag to not be set in versions < 23.2. It also
refactors how enum feature flags work: they should use the featureUnset, featureDisabled,
and featureEnabled states. For enum feature flags, unset and disabled can be considered
equivalent (ie. for a cluster setting which is an enum, don't set a value). In the future,
this can be changed to add a specific case for disabled. For now, this suffices.

Closes: #116865
Release note: None
Epic: None

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

The `DistributionStrategy` feature flag was added to randomly set the
`changefeed.default_range_distribution_strategy` cluster setting. Since this setting
was added in 23.2, this feature flag should be disabled when testing versions < 23.2.

This change updates the feature flag to not be set in versions < 23.2. It also
refactors how enum feature flags work: they should use the `featureUnset`, `featureDisabled`,
and `featureEnabled` states. For enum feature flags, unset and disabled can be considered
equivalent (ie. for a cluster setting which is an enum, don't set a value). In the future,
this can be changed to add a specific case for disabled. For now, this suffices.

Closes: cockroachdb#116865
Release note: None
Epic: None
@jayshrivastava jayshrivastava changed the title Cdc mixed versions roachtest/cdc: disable distribution strategy in old versions Dec 20, 2023
@jayshrivastava jayshrivastava marked this pull request as ready for review December 20, 2023 21:05
@jayshrivastava jayshrivastava requested a review from a team as a code owner December 20, 2023 21:05
@jayshrivastava jayshrivastava requested review from DarrylWong and herkolategan and removed request for a team December 20, 2023 21:05
@jayshrivastava
Copy link
Copy Markdown
Contributor Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 20, 2023

Build succeeded:

@craig craig bot merged commit d590dd0 into cockroachdb:master Dec 20, 2023
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.

roachtest: cdc/mixed-versions failed

3 participants