Bug #55282 MCM should handle multi-value config parameters

Submitted: 15 Jul 2010 12:37 Modified: 7 Oct 2010 10:08
Reporter: Andrew Morgan Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Cluster Manager: CLI Severity:S3 (Non-critical)
Version:1.1.0, MCM 1.0 OS:Any
Assigned to: CPU Architecture:Any

[15 Jul 2010 12:37] Andrew Morgan
Description:
MySQL Replication has a number of configuration parameters that do not work like others. Theses are:

replicate-do-db
replicate-ignore-db
replicate-do-table
replicate-ignore-table
replicate-rewrite-db
replicate-wild-do-table
replicate-wild-ignore-table

If one of these parameters is set multiple times in the configuration file then all of the database/table names are added to the list (rather than just the last assignment overwriting the previous ones).

For example...

replicate-do-db=test
replicate-do-db=clusterdb

... results in the tables test and clusterdb being replicated to the slave.

An alternative to this might have been for the server to allow:

replicate-do-db=test,clusterdb

but that wouldn't work as database (and table) names are allowed to include ",". In fact that setting would result in only the table called `test,clusterdb` being replicated to the slave.

There is no way to set these parameters to hold more than one database/table name when using MCM and so this would rule MCM out of any Cluster deployment which made non-simple use of these replication parameters.

How to repeat:
From mcm, try setting one of these parameters to contain more than one name.

Suggested fix:
Extend the MCM CLI to allow multiple names against an individual parameter and then turn that into multiple rows in the configuration file. For example, for this MCM input...

mcm> set replicate-do-db:mysqld:51=test,replicate-do-db:mysqld:51+=clusterdb,replicate-do-db:mysqld:51+="cluster,db";

...

produce these lines in the my.cnf file...

replicate-do-db=test
replicate-do-db=clusterdb
replicate-do-db=cluster,db

... Note that this syntax is just a suggestion and not a requirement.
[13 Mar 2014 13:37] Omer Barnir
This bug is not scheduled to be fixed at this time.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.059 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.