Bug #57250 mark INSERT...SELECT with autoinc column unsafe when innodb_autoinc_lock_mode=2
| Submitted: | 5 Oct 2010 14:07 | Modified: | 5 Oct 2010 14:22 |
|---|---|---|---|
| Reporter: | Sven Sandberg | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
| Version: | 5.1+ | OS: | Any |
| Assigned to: | Assigned Account | CPU Architecture: | Any |
| Tags: | auto_increment, bulk insert, innodb_autoinc_lock_mode, insert select, REPLACE SELECT | ||
[5 Oct 2010 14:07]
Sven Sandberg
[5 Oct 2010 14:22]
Valeriy Kravchuk
Verified with current 5.1.52 from bzr on Ubuntu: openxs@ubuntu:/home2/openxs/dbs/5.1/mysql-test$ ./mtr --mysqld=--innodb_autoinc_lock_mode=2 bug57250 | more Logging: ./mtr --mysqld=--innodb_autoinc_lock_mode=2 bug57250 101005 17:21:06 [Note] Plugin 'FEDERATED' is disabled. MySQL Version 5.1.52 Checking supported features... - skipping ndbcluster, mysqld not compiled with ndbcluster - SSL connections supported - binaries are debug compiled Collecting tests... vardir: /home2/openxs/dbs/5.1/mysql-test/var Checking leftover processes... Removing old var directory... Creating var directory '/home2/openxs/dbs/5.1/mysql-test/var'... Installing system database... Using server port 49501 ============================================================================== TEST RESULT TIME (ms) ------------------------------------------------------------ worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009 main.bug57250 [ fail ] Test ended at 2010-10-05 17:21:15 CURRENT_TEST: main.bug57250 === SHOW MASTER STATUS === ---- 1. ---- File slave-bin.000001 Position 88531 Binlog_Do_DB Binlog_Ignore_DB ========================== === SHOW SLAVE STATUS === ---- 1. ---- Slave_IO_State Waiting for master to send event Master_Host 127.0.0.1 Master_User root Master_Port 13000 Connect_Retry 1 Master_Log_File master-bin.000001 Read_Master_Log_Pos 88760 Relay_Log_File slave-relay-bin.000003 Relay_Log_Pos 88686 Relay_Master_Log_File master-bin.000001 Slave_IO_Running Yes Slave_SQL_Running No Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno 1062 Last_Error Error 'Duplicate entry '128' for key 'PRIMARY'' on query. Defaul t database: 'test'. Query: 'INSERT INTO t1(b) SELECT 1 FROM t2' Skip_Counter 0 Exec_Master_Log_Pos 88540 Relay_Log_Space 89061 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 Master_SSL_Verify_Server_Cert No Last_IO_Errno 0 Last_IO_Error Last_SQL_Errno 1062 Last_SQL_Error Error 'Duplicate entry '128' for key 'PRIMARY'' on query. Defaul t database: 'test'. Query: 'INSERT INTO t1(b) SELECT 1 FROM t2' ...
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.043 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.