Bug #16913 DD: Cluster fails to create more then 9 table spaces.
Submitted: 30 Jan 2006 18:48 Modified: 14 Mar 2006 9:05
Reporter: Nikolay Grishakin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S2 (Serious)
Version:5.1 OS:Linux (Linux)
Assigned to: Jonas Oreland CPU Architecture:Any

[30 Jan 2006 18:48] Nikolay Grishakin
Description:
Cluster fails to create more then 9 table spaces. It creates 9 TS but on creation of 10th TS it returns error: "failed: 1506: Failed to create TABLESPACE"

let $cnt=10;
while ($cnt)
{
 eval CREATE TABLESPACE TS$cnt
 ADD DATAFILE './var/datafile$cnt.dat'
 USE LOGFILE GROUP lg1
 INITIAL_SIZE 1M
 ENGINE=NDB;
 dec $cnt;
}
#12M
#enable_query_log;

let $cnt=10;
while ($cnt)
{
 eval ALTER TABLESPACE TS$cnt
 DROP DATAFILE './var/datafile$cnt.dat'
 ENGINE=NDB;
 dec $cnt;
}

let $cnt=10;
while ($cnt)
{
 eval DROP TABLESPACE TS$cnt
 ENGINE=NDB;
 dec $cnt;
}
DROP LOGFILE GROUP lg1 ENGINE=NDB;

How to repeat:
see above
[30 Jan 2006 22:58] Jorge del Conde
Tested under a recent 5.1 pull and FC4
[3 Mar 2006 17:31] 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/3437
[12 Mar 2006 12:50] Jonas Oreland
pushed into 5.1.8
[14 Mar 2006 9:05] 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.