Bug #71792 MysqlFabric additional parameters only support lower case
Submitted: 21 Feb 2014 19:01 Modified: 23 May 2014 3:29
Reporter: Andres Eduardo Sanchez Rodriguez Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Fabric Severity:S3 (Non-critical)
Version:1.4.0 OS:Linux (2.6.39-200.24.1.el6uek.x86_64)
Assigned to: CPU Architecture:Any

[21 Feb 2014 19:01] Andres Eduardo Sanchez Rodriguez
Description:
Command help usage shows parameter in upper case, but it actually is expecting lower case:

bash-4.1$ mysqlfabric help sharding split_shard
sharding split_shard shard_id group_id  [--SPLIT_VALUE=NONE] [--SYNCHRONOUS=TRUE] 

It only works for lower case--> "--split_value="

Same story when used  promote command

-bash-4.1$ mysqlfabric help group promote
group promote group_id  [--SLAVE_UUID=NONE] [--SYNCHRONOUS=TRUE]  

Promote a server into master.

How to repeat:
mysqlfabric sharding split_shard 1 my_group1 --SPLIT_VALUE=60000

<Fault 1: "<type 'exceptions.TypeError'>:execute() takes at most 5 arguments (6 given)">

Suggested fix:
We should change help usage to lower case or it will be better to make it support both if possible.
[21 Feb 2014 19:45] Andres Eduardo Sanchez Rodriguez
Actual error message when used UpperCase:

     [java] com.sun.mysql.jet.testcases.Fabric.FabricCommandException: Errorcode 2 when running  fabric script!
     [java] stdout: Usage: mysqlfabric <grp> <cmd> [<option> ...] arg ...
     [java] 
     [java] mysqlfabric: error: no such option: --SPLIT_VALUE
[24 Feb 2014 9:24] Mats Kindahl
Thank you for the bug report. Verified as described.
[23 May 2014 3:29] Philip Olson
Fixed as of the upcoming MySQL Utilities 1.4.3 release, and here's the changelog entry:

The "mysqlfabric" command help usage examples showed some parameters in
uppercase, but they ("--synchronous" and "--split-value") are lowercase
options.

Thank you for the bug report.