-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
server: fix DataDistribution
server error when creating a tenant
#99142
Conversation
This is a stop-gap commit that enables the DataDistribution endpoint to handle the parts of the key space belonging to secondary tenants without error. Despite no error, the result returned for secondary tenants is not correct. The DataDistribution endpoint was written before cockroachdb#79700, and therefore doesn't know that multiple tables can exist within a range. Additionally, the results for the system tenant will be incorrect soon because cockroachdb#81008 is in progress. Fixes: cockroachdb#97993 Release note: None
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.
Reviewed 1 of 3 files at r1, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @zachlite)
pkg/ccl/serverccl/admin_test.go
line 85 at r1 (raw file):
sqlDB.Exec(t, `ALTER PARTITION eu OF TABLE comments CONFIGURE ZONE USING gc.ttlseconds = 9002`) if disableDefaultTestTenant {
why is this conditional here if the value is always true?
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @dhartunian)
pkg/ccl/serverccl/admin_test.go
line 85 at r1 (raw file):
Previously, dhartunian (David Hartunian) wrote…
why is this conditional here if the value is always true?
I wanted to keep this in sync with the value passed to TestServerArgs.DisableDefaultTestTenant
.
If we're running the test through a tenant, we don't need to create a new tenant. Overkill?
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @zachlite)
pkg/ccl/serverccl/admin_test.go
line 85 at r1 (raw file):
Previously, zachlite wrote…
I wanted to keep this in sync with the value passed to
TestServerArgs.DisableDefaultTestTenant
.
If we're running the test through a tenant, we don't need to create a new tenant. Overkill?
👍
bors r+ |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
This PR was included in a batch that successfully built, but then failed to merge into master (it was a non-fast-forward update). It will be automatically retried. |
Build succeeded: |
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.1-99142 is ready: POST https://api.github.com/repos/cockroachdb/cockroach/pulls/100010/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.1.x failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
This is a stop-gap commit that enables the DataDistribution endpoint to handle the parts of the key space belonging to secondary tenants without error.
Despite no error, the result returned for secondary tenants is not correct. The DataDistribution endpoint was written before #79700, and therefore doesn't know that multiple tables can exist within a range.
Additionally, the results for the system tenant will be incorrect soon because #81008 is in progress.
Improvements are tracked by #97942
Fixes: #97993
Release note: None