Bug #79278 | mysqlrpladmin returns 0 exit status on failure | ||
---|---|---|---|
Submitted: | 13 Nov 2015 19:56 | Modified: | 23 Nov 2016 10:40 |
Reporter: | monty solomon | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Utilities | Severity: | S2 (Serious) |
Version: | 1.5, 1.6 | OS: | CentOS |
Assigned to: | CPU Architecture: | Any |
[13 Nov 2015 19:56]
monty solomon
[13 Nov 2015 22:08]
MySQL Verification Team
Thank you for the bug report. This was already filed and discussed for other command clients and the answer from development was won't fix, please see the last comment of bug https://bugs.mysql.com/bug.php?id=62877 which explains why.
[15 Nov 2015 3:53]
monty solomon
That comment was from three (3) years ago and should be revisited. In this case, the _switchover() and _failover() functions know they failed and they return False but the return code is ignored by the execute_command() function. It is not possible to create a script that executes mysqlrpladmin switchover and then changes the DNS CNAMEs only if the switchover succeeds.
[23 Nov 2016 10:40]
Chiranjeevi Battula
Hello monty solomon, Thank you for the bug report. Verified based on internal discussion with dev's. Thanks, Chiranjeevi.