-
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: validate-system-schema
works in shared-process deployments
#129485
roachtest: validate-system-schema
works in shared-process deployments
#129485
Conversation
This is failing on some The failure can be reproduced with seed
@cockroachdb/sql-foundations Is this test expected to pass on secondary tenants? |
Yes, it is expected to pass, so I think your change surfaced a bug. Luckily, it's low impact, since it just means that certain system tables for shared-process tenants will not be excluded from backup. They were excluded in #120144 just as an optimization to avoid setting protected timestamps on them. The mistake in #120144 was that the following block only appeared in the
To fix it, we can add another upgrade that does the above for non-system tenants. |
0ffbe7f
to
4683452
Compare
This commit updates the `acceptance/validate-system-schema-after-version-upgrade` roachtest so that it can now work on multi-tenant (shared-process) deployments. In multi-tenant deployments, we also capture the system schema on the tenant and make the same assertion that the schema should match whether we bootstrapped on a version or upgraded to it. In addition, we also verify that the system schema is the same on the system and non-system tenants. Informs: cockroachdb#127378 Release note: None
4683452
to
4c0d94c
Compare
} | ||
|
||
if err := diff(systemComparison.upgraded, tenantComparison.upgraded); err != nil { | ||
t.Fatal(fmt.Errorf("comparing system schema of system and tenant: %w", err)) |
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!
TFTR! bors r=srosenberg |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error setting reviewers, but backport branch blathers/backport-release-23.2-129485 is ready: POST https://api.github.com/repos/cockroachdb/cockroach/pulls/129799/requested_reviewers: 422 Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the cockroachdb/cockroach repository. [] Backport to branch 23.2.x failed. See errors above. error setting reviewers, but backport branch blathers/backport-release-24.1-129485 is ready: POST https://api.github.com/repos/cockroachdb/cockroach/pulls/129800/requested_reviewers: 422 Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the cockroachdb/cockroach repository. [] Backport to branch 24.1.x failed. See errors above. error setting reviewers, but backport branch blathers/backport-release-24.2-129485 is ready: POST https://api.github.com/repos/cockroachdb/cockroach/pulls/129801/requested_reviewers: 422 Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the cockroachdb/cockroach repository. [] Backport to branch 24.2.x failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
This commit updates the
acceptance/validate-system-schema-after-version-upgrade
roachtest sothat it can now work on multi-tenant (shared-process) deployments.
In multi-tenant deployments, we also capture the system schema on the
tenant and make the same assertion that the schema should match
whether we bootstrapped on a version or upgraded to it. In addition,
we also verify that the system schema is the same on the system and
non-system tenants.
Informs: #127378
Release note: None