Bug #73059 show status: --backup and --process don't work together
Submitted: 20 Jun 2014 7:40 Modified: 15 Jul 2014 17:22
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster Manager: CLI Severity:S3 (Non-critical)
Version:1.3.1 OS:Any
Assigned to: CPU Architecture:Any

[20 Jun 2014 7:40] Daniël van Eeden
Description:
show status accepts a combination of --backup and --process, but rejects many other option invalid combinations.

How to repeat:
mcm> show status --backup --process mycluster;
+-----------------------------------------+
| Command result                          |
+-----------------------------------------+
| No backup currently active in mycluster |
+-----------------------------------------+
1 row in set (0.09 sec)

mcm> 

Suggested fix:
Return an error if both --backup and --process are specified.
[20 Jun 2014 17:34] MySQL Verification Team
Hello Daniel,

Thank you for the bug report.
Verified as described.

Thanks,
Umesh
[20 Jun 2014 17:34] MySQL Verification Team
// 
mcm>version;
+-------------------------------------+
| Version                             |
+-------------------------------------+
| MySQL Cluster Manager 1.3.1 (64bit) |
+-------------------------------------+
1 row in set (0.00 sec)

mcm>show status --backup --process mycluster;
+-----------------------------------------+
| Command result                          |
+-----------------------------------------+
| No backup currently active in mycluster |
+-----------------------------------------+
1 row in set (0.02 sec)

mcm>show status --process --backup mycluster;
+-----------------------------------------+
| Command result                          |
+-----------------------------------------+
| No backup currently active in mycluster |
+-----------------------------------------+
1 row in set (0.01 sec)

mcm>show status --process --cluster mycluster;
ERROR 10 (00MGR): Options --cluster and --process can not be combined for command show status
mcm>
mcm>show status --process --operation mycluster;
ERROR 10 (00MGR): Options --operation and --process can not be combined for command show status
mcm>
mcm>show status --backup --cluster mycluster;
+-----------------------------------------+
| Command result                          |
+-----------------------------------------+
| No backup currently active in mycluster |
+-----------------------------------------+
1 row in set (0.04 sec)

mcm>show status --backup --operation mycluster;
+---------------+----------+--------------+
| Command       | Status   | Description  |
+---------------+----------+--------------+
| start cluster | finished | <no message> |
+---------------+----------+--------------+
1 row in set (0.05 sec)
[15 Jul 2014 17:22] Daniel So
Added the following entry to the MySQL Cluster Manager 1.3.2 changelog:

"Client: When using the 'show status' command with the --backup option, the MySQL Cluster Manager client sometimes accepted an additional option, which was actually meaningless. This fix makes the client throw an error when any other option is used in combination with --backup."