| Bug #36756 | deleting non exiting row inside transaction breaks transaction | ||
|---|---|---|---|
| Submitted: | 16 May 13:54 | Modified: | 30 May 15:40 |
| Reporter: | Bogdan Kecman | ||
| Status: | Closed | ||
| Category: | Server: Cluster | Severity: | S2 (Serious) |
| Version: | ndb-6.x.x | OS: | Linux |
| Assigned to: | Frazer Clement | Target Version: | |
| Tags: | transaction | ||
[16 May 13:54]
Bogdan Kecman
[17 May 0:42]
Bogdan Kecman
Here is the simple test case: -- The problem is with TEXT field. If we remove TEXT field everything works ok DROP TABLE `t1`; CREATE TABLE `t1` ( `f1` int(11) NOT NULL DEFAULT -1, `f11` text, UNIQUE KEY `i1` (`f1`) ) ENGINE=ndbcluster DEFAULT CHARSET=utf8; INSERT INTO `t1` VALUES (123,NULL); DROP TABLE `t2`; CREATE TABLE `t2` ( `f1` int(11) NOT NULL DEFAULT -1, UNIQUE KEY `i2` (`f1`) ) ENGINE=ndbcluster DEFAULT CHARSET=utf8; BEGIN; delete from t1 where f1=123; delete from t2 where f1=5; COMMIT;
[21 May 18:40]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/46918 ChangeSet@1.2598, 2008-05-21 17:39:51+01:00, frazer@forth.ndb.mysql.com +5 -0 Bug#36756 IgnoreError Delete of nonexisting tuple aborts Problem was that once a transaction handled Blobs, AbortOption was treated differently.
[21 May 20:50]
Jonas Oreland
great patch, i love the testing
[21 May 20:55]
Bugs System
Pushed into 5.1.23-ndb-6.4.0
[21 May 21:16]
Bugs System
Pushed into 5.1.24-ndb-6.3.15
[21 May 21:18]
Bugs System
Pushed into 5.1.24-ndb-6.2.16
[30 May 15:40]
Jon Stephens
Documented in the 5.1.24-ndb-6.3.15 and 5.1.24-ndb-6.2.16 changelogs as follows:
Attempting to delete a non-existent row from a table containing a TEXT
or BLOB column within a transaction caused the transaction to fail.
Closed.
