Bug #71370 The prefix store.dump_* gives a false impression about update operations
Submitted: 14 Jan 2014 10:24 Modified: 7 Feb 2014 5:26
Reporter: Alfranio Junior Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Fabric Severity:S3 (Non-critical)
Version:1.4.1 OS:Any
Assigned to: Alfranio Junior CPU Architecture:Any

[14 Jan 2014 10:24] Alfranio Junior
Description:
From the manual: http://dev.mysql.com/doc/mysql-utilities/1.4/en/fabric-util-store-commands.html

The store commands are used to get the contents of shard definitions.

 . store dump_shard_maps: Return information about all shard mappings matching any of the provided patterns.

 . store dump_shard_index: Return information about the index for all mappings matching any of the patterns provided.

 . store dump_servers: Return information about all servers.

 . store dump_sharding_information: Return all the sharding information about the tables passed as patterns.

 . store dump_shard_tables: Return information about all tables belonging to mappings matching any of the provided patterns.

 . store lookup_fabrics: Return a list of Fabric nodes.

"Store" means "write" but all of these commands are intended to read and retrieve information, not write information.

How to repeat:
Check the manual and the code.

Suggested fix:
Do the following changes:

 . store dump_shard_maps --> dump shard_maps

 . store dump_shard_index --> dump shard_index

 . store dump_servers --> dump servers

 . store dump_shard_tables --> dump shard_tables

 . store lookup_fabrics --> dump fabric_nodes
[7 Feb 2014 5:26] Philip Olson
Fixed as of the upcoming MySQL Utilities 1.4.2 release, and here's the changelog entry:

The text for the "store.dump_*" commands was updated to better reflect
how these commands are for retrieving information, instead of writing it.

Also, the documentation was updated.

Thank you for the bug report.