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

Return TabletManager.GetPermissions results in a consistent order #4694

Merged
merged 1 commit into from
Mar 31, 2019

Conversation

dweitzman
Copy link
Member

This avoids false alarms from vtctl ValidatePermissionsKeyspace which
seems to assume the results will be in a consistent order but doesn't
explicitly sort them. MyISAM does not seem to return results in a
consistent order from mysql.user or mysql.db without an explicit ORDER BY.

Another change: "vtctl GetPermissions" will now print a json result to stdout
instead of logging an asciiproto to stderr/INFO so it's easier to examine or
debug output.

Signed-off-by: David Weitzman dweitzman@pinterest.com

This avoids false alarms from vtctl ValidatePermissionsKeyspace which
seems to assume the results will be in a consistent order but doesn't
explicitly sort them. MyISAM does not seem to return results in a
consistent order from mysql.user or mysql.db without an explicit ORDER BY.

Another change: "vtctl GetPermissions" will now print a json result to stdout
instead of logging an asciiproto to stderr/INFO so it's easier to examine or
debug output.

Signed-off-by: David Weitzman <dweitzman@pinterest.com>
@dweitzman dweitzman requested a review from sougou as a code owner March 2, 2019 01:13
@sougou sougou merged commit cb2c60c into vitessio:master Mar 31, 2019
systay pushed a commit that referenced this pull request Jul 22, 2024
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