Bug #43559 ndb_mgmd in daemon mode does not work

Submitted: 11 Mar 2009 10:18 Modified: 17 Mar 2009 19:38
Reporter: Tomas Ulin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:mysql-5.1-telco-6.4 -> 6.4.4 OS:Any
Assigned to: Magnus Blåudd CPU Architecture:Any

[11 Mar 2009 10:18] Tomas Ulin
Description:
2009-03-11 09:59:51 [MgmSrvr] INFO     -- Got initial configuration from
'config.ini', will try to set it when all ndb_mgmd(s) started
2009-03-11 09:59:51 [MgmSrvr] INFO     -- Mgmt server state: nodeid 2
reserved for ip 127.0.0.1, m_reserved_nodes
0000000000000000000000000000000000000000000000000000000000000004.
2009-03-11 09:59:51 [MgmSrvr] ERROR    -- daemon_files setsid failed

How to repeat:
start ndb_mgmd vanilla (which is daemon mode)
[11 Mar 2009 11:57] Magnus Blåudd
setsid is called by the parent before fork, should be done by the child after fork
[13 Mar 2009 9:48] 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/69118

2925 Magnus Svensson	2009-03-13
      Bug#43559 ndb_mgmd in daemon mode does not work
       - reorganize the my_daemon interface so that it better suites
         it's dual task of making the application run as a service on windows
         and as a daemon on other platforms.
       - Take full advantage of the NTService class.
       - put the subfunction in ndb_mgmd's main back together, they don't need to be split
         up anymore.
       - add "mini" main to ndb_mgmd that calls my_daemon_init and does the magic
         run as service tricks
      modified:
        storage/ndb/include/portlib/my_daemon.h
        storage/ndb/src/common/portlib/my_daemon.cc
        storage/ndb/src/mgmsrv/MgmtSrvr.hpp
        storage/ndb/src/mgmsrv/main.cpp
[13 Mar 2009 14:24] Bugs System
Pushed into 5.1.32-ndb-7.0.4 (revid:msvensson@mysql.com-20090313142233-8oa4lvarmuwpq4i7) (version source revid:msvensson@mysql.com-20090313142233-8oa4lvarmuwpq4i7) (merge vers: 5.1.32-ndb-7.0.4) (pib:6)
[17 Mar 2009 19:38] Jon Stephens
Documented bugfix in the NDB-7.0.4 changelog as follows:

        The management server failed to start correctly in daemon mode.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.055 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.