Bug #52473 | NDB inserts row when updating slave's empty table (with PK) | ||
---|---|---|---|
Submitted: | 30 Mar 2010 12:51 | Modified: | 24 Apr 2010 11:14 |
Reporter: | Luis Soares | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Cluster: Replication | Severity: | S3 (Non-critical) |
Version: | mysql-5.1-telco-6.3 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | telco-6.3 |
[30 Mar 2010 12:51]
Luis Soares
[24 Apr 2010 11:14]
Sveta Smirnova
Thank you for the report. Verified as described with mysql-5.1-telco-7.1 tree.
[10 May 2010 13:37]
Luis Soares
See also: BUG#48215.
[25 May 2010 11:36]
Frazer Clement
Probably the testcase is confused or the recorded result is confused. I would expect that : When ndb-log-update-as-write = 0 An Update will be logged as UPDATE_ROW An Insert will be logged as WRITE_ROW For the error on the update (row doesn't exist) to be skipped, special error handling will be required on the slave (as described in the comment excerpt listed here). I suspect that this is what the testcase was intended to initially test. When ndb-log-update-as-write = 1 An Update will be logged as WRITE_ROW An Insert will be logged as WRITE_ROW On the slave, the Ndb table handler maps WRITE_ROW onto an NdbApi 'write operation'. This operation is a kind of 'insert on duplicate update' operation. When the write operation is used, it will 'silently' turn the Update into an Insert. In this bug, it seems that the insert then fails as it is missing an essential column. If it has the column info then it succeeds. So it seems like the testcase needs to separate out testing of IDEMPOTENT/STRICT mode between scenarios with log-slave-updates on and off.
[8 Oct 2010 13:29]
Bugs System
Pushed into mysql-next-mr (revid:alexander.nozdrin@oracle.com-20101008132832-pbzewvmi9f365ak4) (version source revid:alexander.nozdrin@oracle.com-20101008132832-pbzewvmi9f365ak4) (pib:21)
[13 Nov 2010 16:24]
Bugs System
Pushed into mysql-trunk 5.6.99-m5 (revid:alexander.nozdrin@oracle.com-20101113155825-czmva9kg4n31anmu) (version source revid:vasil.dimov@oracle.com-20100629074804-359l9m9gniauxr94) (merge vers: 5.6.99-m4) (pib:21)