Check privileges on backup start

Bug #1135431 reported by Alexey Kopytov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Status tracked in 2.4
2.0
Won't Fix
Medium
Unassigned
2.1
Won't Fix
Medium
Unassigned
2.2
Won't Fix
Medium
Unassigned
2.3
Fix Released
Medium
Vasily Nemkov
2.4
Fix Released
Medium
Vasily Nemkov

Bug Description

XtraBackup documentation provides information on connection privileges required by innobackupex depending on options: http://www.percona.com/doc/percona-xtrabackup/innobackupex/privileges.html

The problem is that innobackupex does not check those privileges on startup. The only thing it checks is whether it is able to connect to the server. If that works, it then proceeds to copy InnoDB tables.

Which means it can take hours after starting a backup and before a user can discover innobackupex does not have sufficient privileges to execute FTWRL or start/stop the slave thread, etc., or there's a typo in credentials.

Checking the privileges on backup start and aborting would be a nice usability improvement.

Revision history for this message
Vasily Nemkov (vasily.nemkov) wrote :
Revision history for this message
Vasily Nemkov (vasily.nemkov) wrote :

Added an option '--check-privileges', in pxb was executed with that option, backup may terminate right after starting if some of the required privileges are missing. However, there is a level of uncertainty and some missing privileges may not be required to perform a backup, those are marked as warnings and backup is not aborted.

Revision history for this message
Vasily Nemkov (vasily.nemkov) wrote :

Porting to 2.4

Revision history for this message
Vasily Nemkov (vasily.nemkov) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-39

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.