pt-table-sync - incorrect return code on error
Bug #1647909 reported by
Ryan Brothers
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The manual for pt-table-sync states that an exit code of 2 indicates "At least one table differed on the destination". In the below example, the error is an invalid username/password, but the return code is 2. Should this be a return code of 1 for "Internal Error"?
[test@test ~]$ pt-table-sync --dry-run h=127.0.
DBI connect(
[test@test ~]$ echo $?
2
tags: | added: pt-table-sync |
To post a comment you must log in.
Thank you for the report.
Verified as described:
sveta@Thinkie: ~/issues$ ~/src/percona- toolkit/ bin/pt- table-sync --sync-to-master --dry-run h=127.0. 0.1,P=13002, u=root, p=foo ';host= 127.0.0. 1;port= 13002;mysql_ read_default_ group=client' ,'root' ,...) failed: Access denied for user 'root'@'localhost' (using password: YES) at /home/sveta/ src/percona- toolkit/ bin/pt- table-sync line 2248. ~/issues$ echo $? ~/issues$ ~/src/percona- toolkit/ bin/pt- table-sync --version
DBI connect(
sveta@Thinkie:
2
sveta@Thinkie:
pt-table-sync 2.2.19