Bug #71776 mysqlfailover utility some headings are not proper.
Submitted: 20 Feb 2014 8:22 Modified: 26 Aug 2016 18:15
Reporter: shahid hussain Email Updates:
Status: In progress Impact on me:
None 
Category:MySQL Utilities Severity:S3 (Non-critical)
Version:Mysql 5.6.16 OS:Linux (RHEL6)
Assigned to: Charles Bell CPU Architecture:Any

[20 Feb 2014 8:22] shahid hussain
Description:
Hello,
I am running mysqlfailover utility as below
mysqlfailover --master=root:root@172.20.0.212 --discover-slaves-login=root:root --failover=auto --force
and i received output as below
MySQL Replication Failover Utility
Failover Mode = auto     Next Interval = Thu Feb 20 13:17:08 2014

Master Information
------------------
Binary Log File   Position  Binlog_Do_DB  Binlog_Ignore_DB
mysql-bin.000010  33025836

GTID Executed Set
6a0782ae-8f41-11e3-a901-525400d8d607:1-29 [...]

Replication Health Status
+---------------+-------+---------+--------+------------+---------+
| host          | port  | role    | state  | gtid_mode  | health  |
+---------------+-------+---------+--------+------------+---------+
| 172.20.0.225  | 3306  | MASTER  | UP     | ON         | OK      |
| 172.20.0.212  | 3306  | SLAVE   | UP     | ON         | OK      |
+---------------+-------+---------+--------+------------+---------+
Q-quit R-refresh H-health G-GTID Lists U-UUIDs L-log entries
*******************************************************************************

This is fine. Now i will press key 'G',i will get output as below
Master GTID Executed Set
+------------------------------------------------+
| gtid                                           |
+------------------------------------------------+
| 6a0782ae-8f41-11e3-a901-525400d8d607:1-29      |
| fcab0e0a-9796-11e3-9f59-5254006e4bc5:1-113081  |
+------------------------------------------------+
Q-quit R-refresh H-health G-GTID Lists U-UUIDs L-log entries
*******************************************************************************

This also is fine. now i will press 'H' key to check replication health  status,i m getting output as below
Master GTID Executed Set
+---------------+-------+---------+--------+------------+---------+
| host          | port  | role    | state  | gtid_mode  | health  |
+---------------+-------+---------+--------+------------+---------+
| 172.20.0.225  | 3306  | MASTER  | UP     | ON         | OK      |
| 172.20.0.212  | 3306  | SLAVE   | UP     | ON         | OK      |
+---------------+-------+---------+--------+------------+---------+
Q-quit R-refresh H-health G-GTID Lists U-UUIDs L-log entries

What i am expecting is heading of this output should be "Replication Health Status" not "Master GTID Executed Set". For health key it is always giving heading of its previous key output.

Regards,
Shahid Hussain

How to repeat:
1. Run mysqlfailover utility 
2. observe heading as "Replication Health Status"
3. Press viable key listed below of output(ex. 'G')
4. Observe heading of output
5. again press 'H' ,and observe the heading 

Suggested fix:
Make it display heading as "Replication Health Status" when we press 'H' after pressing any other key