Bug #47932 ndb_mgmd, fails to parse config with DiskSyncSize=4294967040
Submitted: 9 Oct 2009 8:48 Modified: 10 Oct 2009 18:01
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:7.0 OS:Solaris
Assigned to: Magnus Blåudd CPU Architecture:Any

[9 Oct 2009 8:48] Magnus Blåudd
Description:
ndb_mgmd compiled on Solaris 10 Sparc fails to parse config.ini when DiskSyncSize=4294967040 and claims the max is 32768 instead of MAX_INT_RNIL which is 0xfffffeff.

Most likely an endian problem.

How to repeat:
$ cat config.ini
-snip-
DiskSyncSize=4294967040

2009-10-09 10:42:50 [MgmtSrvr] INFO     -- Reading cluster configuration from '/home/ms221938/config.ini'
2009-10-09 10:42:50 [MgmtSrvr] ERROR    -- at line 25: Illegal value 4294967040 for parameter DiskSyncSize.
Legal values are between 0 and 32768

Suggested fix:
.
[9 Oct 2009 8:50] Magnus Blåudd
Maybe duplicate of Bug#43695?
[9 Oct 2009 12:39] 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/86347
[9 Oct 2009 12:41] Magnus Blåudd
With patch:

2009-10-09 14:41:01 [MgmtSrvr] ERROR    -- at line 23: Illegal value 4294967040 for parameter DiskSyncSize.
Legal values are between 32768 and 4294967039
[9 Oct 2009 14:20] Bugs System
Pushed into 5.1.39-ndb-7.0.9 (revid:magnus.blaudd@sun.com-20091009141821-rrrm9xm2j8f3hstt) (version source revid:magnus.blaudd@sun.com-20091009141821-rrrm9xm2j8f3hstt) (merge vers: 5.1.39-ndb-7.0.9) (pib:13)
[9 Oct 2009 14:27] Bugs System
Pushed into 5.1.39-ndb-7.1.0 (revid:magnus.blaudd@sun.com-20091009142206-4g25a32akb8t3o5u) (version source revid:magnus.blaudd@sun.com-20091009142206-4g25a32akb8t3o5u) (merge vers: 5.1.39-ndb-7.1.0) (pib:13)
[10 Oct 2009 18:01] Jon Stephens
Documented bugfix in the NDB-7.0.9 changelog as follows:

        On Solaris 10 for SPARC, ndb_mgmd failed to parse the config.ini
        file when DiskSyncSize, whose permitted range of values is 32768
        to 4294967039, was set equal to 4294967040 (which is also the
        value of the internal constant MAX_INT_RNIL); in addition,
        DiskSyncSize could not be set successfully higher than the 
        minimum.
      

Closed.