Page MenuHomePhabricator

Make `bin/storage upgrade` and `bin/storage adjust` emit detailed messages if the user has no access to databases
ClosedPublic

Authored by epriestley on Jan 21 2016, 9:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 1, 4:46 PM
Unknown Object (File)
Mon, Jan 27, 7:37 AM
Unknown Object (File)
Sun, Jan 26, 3:45 AM
Unknown Object (File)
Fri, Jan 24, 11:21 AM
Unknown Object (File)
Fri, Jan 24, 11:21 AM
Unknown Object (File)
Fri, Jan 24, 11:21 AM
Unknown Object (File)
Fri, Jan 24, 11:21 AM
Unknown Object (File)
Wed, Jan 22, 4:54 PM
Subscribers
None

Details

Summary

Ref T10195. Distinguish between "database does not exist" and "database exists, you just don't have permission to access it".

We can't easily get this information out of INFORMATION_SCHEMA but can just SHOW TABLES IN ... every database that looks like it's missing and then look at the error code.

Test Plan
  • Created a user limited with limited access.
  • Ran bin/storage adjust.
  • Got hopefully more helpful messages about access problems, instead of "Missing" errors.

Diff Detail

Repository
rP Phabricator
Branch
access1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 10243
Build 12456: Run Core Tests
Build 12455: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Make `bin/storage upgrade` and `bin/storage adjust` emit detailed messages if the user has no access to databases.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jan 21 2016, 9:05 PM
This revision was automatically updated to reflect the committed changes.