-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: cdc/mixed-versions support for shared-process deployments #128473
roachtest: cdc/mixed-versions support for shared-process deployments #128473
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@@ -401,6 +402,10 @@ func (cmvt *cdcMixedVersionTester) runWorkloadCmd(r *rand.Rand) *roachtestutil.C | |||
func (cmvt *cdcMixedVersionTester) initWorkload( | |||
ctx context.Context, l *logger.Logger, r *rand.Rand, h *mixedversion.Helper, | |||
) error { | |||
if err := enableTenantSplitScatter(l, r, h); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: seems arbitrary here, but I get why it's needed. Maybe the planner can automatically enable this for multi-tenant scenarios?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrmm, maybe, but some tests work fine without it -- it's only needed for tests that invoke workloads that perform split/scatter. For now I think having tests call this helper function explicitly is fine.
This commit updates the `cdc/mixed-versions` test so that it is able to run on a shared-process deployment. Specifically, it updates the changefeed creator to take two connections: one to the tenant being tested (which could be the system tenant as well), and one to the system tenant. The latter is used to set cluster settings that are only visible to the system tenant and control how changefeeds work. Informs: cockroachdb#127378 Release note: None
`enthropy` -> `entropy` Epic: none Release note: None
49c0d72
to
9afac09
Compare
TFTR! bors r=srosenberg |
This commit updates the
cdc/mixed-versions
test so that it is able to run on a shared-process deployment. Specifically, it updates the changefeed creator to take two connections: one to the tenant being tested (which could be the system tenant as well), and one to the system tenant. The latter is used to set cluster settings that are only visible to the system tenant and control how changefeeds work.Informs: #127378
Release note: None