Bug #90448 | INSERT IGNORE not ignored on SQL thread | ||
---|---|---|---|
Submitted: | 16 Apr 2018 12:09 | Modified: | 20 Apr 2018 5:46 |
Reporter: | Simon Mudd (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.7.21 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[16 Apr 2018 12:09]
Simon Mudd
[18 Apr 2018 16:03]
Simon Mudd
One comment: I had 1024 partitions. not sure if that's relevant. At the time of creating this table it was the limit on the number of possible partitions. I'll upload the data requested.
[19 Apr 2018 6:37]
MySQL Verification Team
Thank you, Simon for the requested details.I'll give it a try and come back to you on this. I agree with your last note and better to open the issue. Regards, Umesh
[19 Apr 2018 12:43]
MySQL Verification Team
The error was non-fatal in that I could simply STOP SLAVE;START SLAVE; to recover. -------- TESTCASE -------- 1. Setup replication with SBR .. 2. On mysql connection paste this: Note the \r means reconnect in client. -- ---------- set sql_mode='STRICT_TRANS_TABLES'; use test; drop table if exists t; create table t(a int, primary key(a))engine=innodb partition by range(a) ( partition p1 values less than (10), partition p2 values less than (20), partition p3 values less than (30) ); alter table t truncate partition all; delete from t ; \r insert ignore into t(a) values (31) ; -- ------ On client it says: <cut> mysql> \r Connection id: 6 Current database: test mysql> insert ignore into t(a) values (31) ; Query OK, 0 rows affected, 1 warning (0.00 sec) In error log on slave it says: [Note] Slave I/O thread for channel '': connected to master 'root@127.0.0.1:3306',replication started in log 'i7-bin.000001' at position 154 [ERROR] Slave SQL for channel '': Error 'Incorrect partition name' on query. Default database: 'test'. Query: 'insert ignore into t(a) values (31)', Error_code: 1567 [Warning] Slave: Incorrect partition name Error_code: 1567 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'i7-bin.000001' position 1106
[19 Apr 2018 12:50]
MySQL Verification Team
Bug also occurs on: Version: '5.7.23-debug' socket: '' port: 3307 Built on 2018/04/15
[20 Apr 2018 5:37]
MySQL Verification Team
Does not appear to affect 8.0.11...
[20 Apr 2018 5:46]
Simon Mudd
Thanks for further follow up on this. The issue is not "serious" for me as the affected system is somewhat unusual. I do not usually have servers with such a high number of partitions. Good to see that 8.0 is not affected.