Bug #18271 Replication of auto_increment when master or slave table is using "NDB" engine
| Submitted: | 16 Mar 2006 7:56 | Modified: | 27 Nov 2006 16:24 |
|---|---|---|---|
| Reporter: | Magnus Blåudd | Email Updates: | |
| Status: | Won't fix | Impact on me: | |
| Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
| Version: | 5.1.8 | OS: | Any (all) |
| Assigned to: | CPU Architecture: | Any |
[16 Mar 2006 7:56]
Magnus Blåudd
[24 May 2006 9:14]
Guilhem Bichot
assigning it to me, as could be fixed as part of WL#3146.
[31 May 2006 11:21]
Guilhem Bichot
More details on what the testcase produces (btw there needs to be a sync_slave_with_master in it): the INSERT into t2 fails on slave with duplicate entry "1" for primary key. This is because the first row does use the value set by the SET INSERT_ID=1 present in binlog, but, as NDB resets thd->next_insert_id to 0 immediately, the 2nd row calls the NDB engine (get_auto_increment()) which returns 1. When my work on WL#3146 is finished, thd->next_insert_id will not be reset to 0 and NDB will not be contacted, so INSERT_ID and INSERT_ID+1 will be inserted.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.056 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.