Bug #46954 ndb_mgmd version mysql-5.1.34 ndb-7.0.6 does not handle SYSTEM sections
Submitted: 27 Aug 2009 12:51 Modified: 9 Sep 2009 14:06
Reporter: Sivert Sørumgård Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:mysql-5.1-telco-7.0 OS:Any
Assigned to: Magnus Blåudd CPU Architecture:Any
Tags: mysql-5.1.34 ndb-7.0.6

[27 Aug 2009 12:51] Sivert Sørumgård
Description:
Write a config file containing a SYSTEM section. Start ndb_mgmd with the given config file. ndb_mgmd dies shortly after starting reading the config file. 

Remove the SYSTEM section. Now, the ndb_mgmd starts fine. 

How to repeat:
Just take a working config file for mysql-5.1.34 ndb-7.0.6, add a section like: 

<add to config.ini>
[SYSTEM]
name=mycluster
</add to config.ini>

Start ndb_mgmd.
[27 Aug 2009 16:53] Magnus Blåudd
msvensson@pilot:~/mysql/7.0/storage/ndb/src/mgmsrv$ bzr diff
=== modified file 'storage/ndb/src/mgmsrv/ConfigInfo.cpp'
--- storage/ndb/src/mgmsrv/ConfigInfo.cpp	2009-08-24 12:55:54 +0000
+++ storage/ndb/src/mgmsrv/ConfigInfo.cpp	2009-08-27 12:28:29 +0000
@@ -3746,7 +3746,9 @@ transformSystem(InitConfigFileParser::Co
   }
 
   BaseString::snprintf(ctx.pname, sizeof(ctx.pname), "SYSTEM_%s", name);
-  
+
+  ctx.m_currentSection->put("Type", ctx.fname);
+
   return true;
 }
[31 Aug 2009 13:00] 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/82001
[9 Sep 2009 9:44] Bugs System
Pushed into 5.1.37-ndb-7.0.8 (revid:magnus.blaudd@sun.com-20090909094004-i0ybvjoqnznhmfw9) (version source revid:magnus.blaudd@sun.com-20090909094004-i0ybvjoqnznhmfw9) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)
[9 Sep 2009 9:49] Bugs System
Pushed into 5.1.35-ndb-7.1.0 (revid:magnus.blaudd@sun.com-20090909094832-0tp1bzkew0j95qdg) (version source revid:magnus.blaudd@sun.com-20090909094832-0tp1bzkew0j95qdg) (merge vers: 5.1.35-ndb-7.1.0) (pib:11)