Bug #19245 Insert+Insert+rollback+rollback causes node failure
Submitted: 21 Apr 2006 6:43 Modified: 23 Apr 2006 1:22
Reporter: Jonas Oreland Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version: OS:
Assigned to: Jonas Oreland CPU Architecture:Any

[21 Apr 2006 6:43] Jonas Oreland
Description:
connection 1
insert (1)

connection 2
insert (1)  // will end up in lock queue

connection 1
rollback;

connection 2;
rollback; // node failure, as it had incorrect bits in tuple header

How to repeat:
drop table if exists t1;
create table t1 (a int, b int, primary key using hash (a));

connect (con1,localhost,root,,test);
connect (con2,localhost,root,,test);

connection con1;
begin;
insert into t1 values (1,1);

connection con2;
begin;
--send
insert into t1 values (1,1);

connection con1;
--sleep 0.5
rollback;

connection con2;
reap;
select * from t1;
rollback;

Suggested fix:
[21 Apr 2006 7:12] 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/5252
[21 Apr 2006 14:47] Tomas Ulin
pushed to 5.1.10
[23 Apr 2006 1:22] Jon Stephens
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Documented in 5.1.10 changelog; closed.