Bug #12408 | Regression of bug #9361: Replication breaks when using SUBSELECTS | ||
---|---|---|---|
Submitted: | 6 Aug 2005 4:03 | Modified: | 16 Sep 2005 18:49 |
Reporter: | Jang Kim | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S1 (Critical) |
Version: | 4.1.13 | OS: | Linux (Linux CentOS) |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
[6 Aug 2005 4:03]
Jang Kim
[6 Aug 2005 4:04]
Jang Kim
The bug category should be "Replication".
[16 Sep 2005 18:49]
MySQL Verification Team
I was unable to repeat with current 4.1.15 source servers: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 4.1.15-debug-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. master>grant all on *.* to 'replyguy'@'localhost' identified by 'thereplyguy'; Query OK, 0 rows affected (0.00 sec) master>show master status; +------------------+----------+--------------+------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | +------------------+----------+--------------+------------------+ | hegel-bin.000003 | 180 | | | +------------------+----------+--------------+------------------+ 1 row in set (0.00 sec) Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 to server version: 4.1.15-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. slave>CHANGE MASTER TO -> MASTER_HOST='localhost', -> MASTER_USER='replyguy', -> MASTER_PASSWORD='thereplyguy', -> MASTER_LOG_FILE='hegel-bin.000003', -> MASTER_LOG_POS=180; Query OK, 0 rows affected (0.16 sec) slave>start slave; Query OK, 0 rows affected (0.00 sec) slave>show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: localhost Master_User: replyguy Master_Port: 3306 Connect_Retry: 60 Master_Log_File: hegel-bin.000003 Read_Master_Log_Pos: 180 Relay_Log_File: hegel-relay-bin.000001 Relay_Log_Pos: 47 Relay_Master_Log_File: hegel-bin.000003 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 180 Relay_Log_Space: 47 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 1 row in set (0.00 sec) master>use test Database changed master>drop table if exists mailsettings; Query OK, 0 rows affected, 1 warning (0.00 sec) master>drop table if exists domains; Query OK, 0 rows affected, 1 warning (0.01 sec) master> master>create table mailsettings ( -> value char(30), -> domain_id int, -> mailaccount_id int, -> program char(30), -> keey char(30) -> ); Query OK, 0 rows affected (0.07 sec) master> master>create table domains ( -> id int, -> domain char(30) -> ); Query OK, 0 rows affected (0.07 sec) master> master>insert into mailsettings values ('Yes', 1, NULL, 'spamfilter', -> 'scan_incoming'); Query OK, 1 row affected (0.01 sec) master>insert into domains values (1, 'example.com'); Query OK, 1 row affected (0.00 sec) master> master>UPDATE mailsettings ms -> , domains d -> SET ms.value='No' -> WHERE ms.domain_id = (SELECT id -> FROM domains -> WHERE domain='example.com') -> AND ms.mailaccount_id IS NULL -> AND ms.program='spamfilter' -> AND ms.keey='scan_incoming'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 master> master>DELETE FROM domains WHERE id = 1; Query OK, 1 row affected (0.01 sec) slave>show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: localhost Master_User: replyguy Master_Port: 3306 Connect_Retry: 60 Master_Log_File: hegel-bin.000003 Read_Master_Log_Pos: 1193 Relay_Log_File: hegel-relay-bin.000001 Relay_Log_Pos: 1060 Relay_Master_Log_File: hegel-bin.000003 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 1193 Relay_Log_Space: 1060 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 1 row in set (0.00 sec) slave>use test; Database changed slave>show tables; +----------------+ | Tables_in_test | +----------------+ | domains | | mailsettings | +----------------+ 2 rows in set (0.01 sec)