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

crdbutil: fix user table scan query #1

Merged
merged 1 commit into from
Mar 31, 2020

Conversation

irfansharif
Copy link
Contributor

@irfansharif irfansharif commented Mar 30, 2020

Informs recent failures on cockroachdb/cockroach#44066, cockroachdb/cockroach#43284, cockroachdb/cockroach#45645, cockroachdb/cockroach#43273, cockroachdb/cockroach#43839, cockroachdb/cockroach#41528.

cockroachdb/cockroach#45827 broke the query to
retrieve users from the database, it was previously expecting one column,
and needs to be updated to accept three.

Previous to #45827 the column name was user_name (it's not
username), so the binary built off LATEST is not suitable for
roachtests run on v19.2 and below. I'm not sure how to construct a query
that would work across the two versions, we'll add a patch to previous
release branches to use a fixed SHA from this repo.

@irfansharif irfansharif force-pushed the 200325.scaledata-user-table branch from 9622526 to a0dfaa2 Compare March 30, 2020 18:21
@nvanbenschoten
Copy link
Member

Previous to #45827 the column name was user_name (it's not
username), so the binary built off LATEST is not suitable for
roachtests run on v19.2 and below. I'm not sure how to construct a query
that would work across the two versions, we'll add a patch to previous
release branches to use a fixed SHA from this repo.

SHOW USERS was implemented as a view on top of system.users both before and after cockroachdb/cockroach#45827. Could we avoid the compatibility question by replacing this with SELECT username FROM system.users?

@irfansharif irfansharif force-pushed the 200325.scaledata-user-table branch from a0dfaa2 to 781454c Compare March 30, 2020 20:47
@irfansharif
Copy link
Contributor Author

Could we avoid the compatibility question by replacing this with SELECT username FROM system.users?

Nice, done.

Informs recent failures on #44066, #43284, #45645, #43273, #43839, #41528.

cockroachdb/cockroach#45827 broke the query to
retrieve users from the database, it was previously expecting one column,
and needs to be updated to accept three. We now use `SELECT username
FROM system.users` instead.
@irfansharif irfansharif force-pushed the 200325.scaledata-user-table branch from 781454c to 7e1e38b Compare March 30, 2020 20:48
@irfansharif irfansharif merged commit fd13cd2 into master Mar 31, 2020
@irfansharif irfansharif deleted the 200325.scaledata-user-table branch March 31, 2020 18:20
This was referenced Apr 2, 2020
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.

2 participants