Bug #18040 create unique index on non unique data causes crash
Submitted: 7 Mar 2006 16:08 Modified: 14 Mar 2006 10:48
Reporter: Tomas Ulin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S1 (Critical)
Version:5.1.8 bk src OS:
Assigned to: Jonas Oreland CPU Architecture:Any

[7 Mar 2006 16:08] Tomas Ulin
Description:
see below

How to repeat:
master> create table t1(c1 int, c2 int, c3 int);
Query OK, 0 rows affected (0.69 sec)

master> insert into t1 values (1,1,1);
Query OK, 1 row affected (0.04 sec)

master> insert into t1 values (1,1,1);
Query OK, 1 row affected (0.01 sec)

master> create index t1_i on t1(c2,c3);
Query OK, 0 rows affected (0.92 sec)
Records: 0  Duplicates: 0  Warnings: 0

master> create unique index t1_i2 on t1(c2);
ERROR 1296 (HY000): Got error 4009 'Cluster Failure' from NDBCLUSTER
master> 

this produces a hang:

master> create table t1(c1 int, c2 int, c3 int);
Query OK, 0 rows affected (0.67 sec)

master> insert into t1 values (1,1,1);
Query OK, 1 row affected (0.04 sec)

master> create unique index t1_i2 on t1(c2);
.... hangs... very lkong time out
ERROR 1297 (HY000): Got temporary error 4025 'Node failure caused abort of transaction' from NDBCLUSTER
[9 Mar 2006 10:03] 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/3619
[9 Mar 2006 10: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/3621
[10 Mar 2006 13:21] Martin Skold
Patch pushed to 5.1.8
[14 Mar 2006 10:48] 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 bugfix in 5.1.8 changelog. Closed.