Bug #54779 ndb_mgmd --nodaemon starts to log to console in 7.0.x

Submitted: 24 Jun 2010 14:31 Modified: 19 Aug 2010 11:31
Reporter: Hartmut Holzgraefe 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:Linux
Assigned to: Magnus Blåudd CPU Architecture:Any
Tags: mysql-cluster.7.0.14

[24 Jun 2010 14:31] Hartmut Holzgraefe
Description:
Starting with mysql-cluster-7.0.x ndb_mgmd writes log entries to the configured log destination *and* the console.

This is due to the following lines in MgmtSrvr.cpp:

 662   if (m_opts.non_interactive)
 663     g_eventLogger->createConsoleHandler();

No idea whether this change has been done intentional,
in which case it would at least be a documentation issue,
but it looks like a bug to me ...

How to repeat:
start ndb_mgmd binaries from 7.0.x and from earlier versions with --nodaemon
to see that 7.0.x produces way more console output

Suggested fix:
revert the extra logging to console in addition to the configured log destination
[10 Aug 2010 9:11] Jonas Oreland
can we fix this until end of month ?
[13 Aug 2010 11:13] Magnus Blåudd
Changed the synopsis to say that "ndb_mgmd --nodaemon" is what logs to console.
[13 Aug 2010 14:04] 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/115685
[17 Aug 2010 13:20] Bugs System
Pushed into mysql-5.1-telco-7.0 5.1.47-ndb-7.0.18 (revid:magnus.blaudd@sun.com-20100817130811-ecga9setzjiw6gqx) (version source revid:magnus.blaudd@sun.com-20100817130811-ecga9setzjiw6gqx) (merge vers: 5.1.47-ndb-7.0.18) (pib:20)
[17 Aug 2010 13:20] Magnus Blåudd
Pushed to 7.0.18 and 7.1.7
[19 Aug 2010 11:31] Jon Stephens
Documented bugfix as follows in the NDB-7.0.18 and 7.1.7 changelogs:

      ndb_mgmd --nodaemon logged to the console in addition to the 
      configured log destination.

Closed.

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

Page generated in 0.056 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.