Bug #23997 | Replication fails between Linux master and OS X slave using mixed case names | ||
---|---|---|---|
Submitted: | 6 Nov 2006 3:14 | Modified: | 10 Jan 2013 11:21 |
Reporter: | Jeff Kilbride | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.0.27 | OS: | Linux (Linux, Mac OS X) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[6 Nov 2006 3:14]
Jeff Kilbride
[6 Nov 2006 3:16]
Jeff Kilbride
Script for populating test tables
Attachment: test_table.pl (text/plain), 480 bytes.
[6 Nov 2006 4:28]
Jeff Kilbride
With further testing, I have confirmed that using an all lower case database name when creating the database on the master avoids this problem. In this case, show open tables only shows one instance of the replicated db/table: mysql> show open tables; +----------+---------------+--------+-------------+ | Database | Table | In_use | Name_locked | +----------+---------------+--------+-------------+ | testme | testnumberone | 0 | 0 | +----------+---------------+--------+-------------+ 1 row in set (0.00 sec) This should prominent in the documentation until this problem is resolved.
[11 Nov 2006 12:07]
Domas Mituzas
Thanks for bug report! Verified at 5.0-bk, 5.1-bk. The problem: though table names are lowercased, database names are not, hence ending up with dupe file descriptors. +----------+-------------+--------+-------------+ | Database | Table | In_use | Name_locked | +----------+-------------+--------+-------------+ | test | reptest | 0 | 0 | | mysql | slow_log | 1 | 0 | | mysql | general_log | 1 | 0 | | MuHaHa | testme | 0 | 0 | | muhaha | testme | 0 | 0 | +----------+-------------+--------+-------------+
[14 Dec 2006 15:36]
Jonathan Miller
Attempted mysql-test test case
Attachment: rpl_name_case.test (application/octet-stream, text), 2.15 KiB.
[14 Dec 2006 15:36]
Jonathan Miller
Results with --lower-case-table-names=1
Attachment: rpl_name_case.log.opt1 (application/octet-stream, text), 1.03 KiB.
[14 Dec 2006 15:37]
Jonathan Miller
Results with --lower-case-table-names=2
Attachment: rpl_name_case.log.opt2 (application/octet-stream, text), 1.68 KiB.
[14 Dec 2006 15:42]
Jonathan Miller
slave option file
Attachment: rpl_name_case-slave.opt (application/octet-stream, text), 28 bytes.
[5 Jul 2007 15:01]
Jeffrey Pugh
Any solution should take into consideration a solution for #22166 and 27425.
[5 Jul 2007 16:25]
Brian Aker
Table A gets dropped, but never gets replicated to the slave. Later the master has the table reappear. On replicating the data hits the wrong object. Tables should be allowed to have different definitions, but we should know when the "objects" differ by creation.
[10 Jan 2013 11:21]
Erlend Dahl
The reported problem (Linux-Mac) was not reproducible hence the bug is closed with status "can't repeat". But a similar problem was observed between (Linux-Windows) a new internal issue has been reported to track the that.