Bug #69191 | replicate-rewrite-db configuration not shown in SHOW SLAVE STATUS output | ||
---|---|---|---|
Submitted: | 10 May 2013 9:41 | Modified: | 8 Jul 2014 5:35 |
Reporter: | Simon Mudd (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.5.23 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[10 May 2013 9:41]
Simon Mudd
[10 May 2013 10:37]
Arnaud Adant
Hi Simon, Thank you for the bug report. I verified it. About the dynamic variables, see http://bugs.mysql.com/bug.php?id=29703 BUG 11746919 - REPLICATE-* RULES SHOULD BE DYNAMICALLY CONFIGURABLE Best regards,
[10 May 2013 10:41]
Arnaud Adant
About the I_S tables, why not displaying the variables as part of the SHOW GLOBAL VARIABLES ? I suppose it is Bug #53777 Include all options and variables in SHOW GLOBAL VARIABLES output, a duplicate of the previous bug.
[10 May 2013 11:26]
Simon Mudd
My comment about using a I_S table or mysql tables was for the whole of the current SHOW SLAVE STATUS output, not for this specific option. Why? because you can not extract the information from the SHOW SLAVE STATUS output with the same flexibility you can with a normal SELECT statement. So use SQL for what it's designed for and make the interfaces to the current "special" commands work using normal SQL syntax. So a theoretical SELECT * FROM mysql.slave_status , or SELECT * FROM INFORMATION_SCHEMA.SLAVE_STATUS is just as easy to understand but doing something like: INSERT INTO mydb.SLAVE_STATUS_HISTORY SELECT * FROM mysql.slave_status can be done the new way but not directly using the current tools. The request to make the slave configuration dynamic would lead me to want to put the table in the mysql db, as then you could do: STOP SLAVE; UPDATE SLAVE_STATUS SET setting = 'bp->de' WHERE NAME = 'replicate-rewrite-db'; START SLAVE; This is easy to understand and it makes it easy to add new configuration settings. It would almost make the change master command obsolete, or just a wrapper around the type of code above. So first let's get the missing replication configuration entries into SHOW SLAVE STATUS output and while doing that consider the other enhancements mentioned.
[10 May 2013 11:35]
Simon Mudd
Note also that the current SHOW SLAVE STATUS output shows a mix of 'configuration settings' and 'status settings', that is the configuration settings are "static", don't change over time and the "status" settings are while replication is running expected to change over time. The later information is important so unlike the SHOW GLOBAL STATUS "counters" which can be lost or reset without any issues, these values can not be lost. However from a configuration management point of view mixing them all in the same output is not identical, as storage for historical analysis or change management purposes needs to be done differently.
[8 Jul 2014 5:35]
Erlend Dahl
[3 Jul 2014 23:12] Venkatesh Duggirala Starting from 5.7.3, Replicate-Rewrite-db is part of "Show Slave status" output. Please refer the following link for more details: http://dev.mysql.com/doc/refman/5.7/en/show-slave-status.html