[SERVER-13429] Replace writes to cout/cerr or stdout/stderr in server with log operations Created: 31/Mar/14  Updated: 11/Jul/16  Resolved: 02/Apr/14

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: 2.6.0-rc2
Fix Version/s: 2.6.0-rc3

Type: Task Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-13023 Syslog: dbexit sent to stdout Closed
Related
related to SERVER-5553 don't call async signal unsafe functi... Closed
related to SERVER-14889 report out of memory error when mallo... Closed
is related to SERVER-13410 split does not install metadata under... Closed
Participants:

 Description   

Writes to these destinations do not end up in the logs when logging other than to stdout, and can interleave with the logs when logging to stdout.

Removing references to cout, cerr, rawOut() are necessary steps in this process.



 Comments   
Comment by Githook User [ 02/Apr/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13429 Update exit_logging.js to also test mongos exit logging.

(cherry picked from commit 9e041ccf433660008ed2ddb1c2ed58ba78ef5488)
Branch: v2.6
https://github.com/mongodb/mongo/commit/c7a673410edd0c9ff6a17ff333f72fb43c82fb2c

Comment by Githook User [ 02/Apr/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13429 Update exit_logging.js to also test mongos exit logging.
Branch: master
https://github.com/mongodb/mongo/commit/9e041ccf433660008ed2ddb1c2ed58ba78ef5488

Comment by Githook User [ 01/Apr/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-13429 unify signal handling between mongos and mongod

(cherry picked from commit ad91eb0f75f39c1bb71b5e0ca4279b883cb9fe8d)
Branch: v2.6
https://github.com/mongodb/mongo/commit/261233b6c11a8282b1f626d496a1743a0b48821d

Comment by Githook User [ 01/Apr/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-13429 Remove printStackAndExit

All of the functions in signal_handlers.cpp were broken when logfiles or
syslog were in use. This commit removes them and all callers. The files were
left in place for a later commit to fill them back in with a unified signal
handling system.

(cherry picked from commit 11e43325fa2b0139df1eb9c367b984a5b112dbb4)
Branch: v2.6
https://github.com/mongodb/mongo/commit/019f0ccc9efbdb3a76e8e50259dd2921b939d39a

Comment by Githook User [ 01/Apr/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-13429 Eliminate rawOut and related functions

(cherry picked from commit 4e1eccfe64f424daead6ed22542377d2e1ce798e)
Branch: v2.6
https://github.com/mongodb/mongo/commit/fda2dca224c42a24fc54e6f5192469084c49e0cc

Comment by Githook User [ 01/Apr/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13429 Use logging system in mongod signal handlers, test exit logging.

Still not really safe for signal handlers, but no worse than before,
and correctly logs to the log file/syslog, so an improvement.

(cherry picked from commit f4e6aa9ee7c0dccbb4789d3dff1d92b086d67b88)
Branch: v2.6
https://github.com/mongodb/mongo/commit/2013b68ddd9741cd894e35b0fc01e2475eaf3da5

Comment by Githook User [ 01/Apr/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-13429 unify signal handling between mongos and mongod
Branch: master
https://github.com/mongodb/mongo/commit/ad91eb0f75f39c1bb71b5e0ca4279b883cb9fe8d

Comment by Githook User [ 01/Apr/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-13429 Remove printStackAndExit

All of the functions in signal_handlers.cpp were broken when logfiles or
syslog were in use. This commit removes them and all callers. The files were
left in place for a later commit to fill them back in with a unified signal
handling system.
Branch: master
https://github.com/mongodb/mongo/commit/11e43325fa2b0139df1eb9c367b984a5b112dbb4

Comment by Githook User [ 01/Apr/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-13429 Eliminate rawOut and related functions
Branch: master
https://github.com/mongodb/mongo/commit/4e1eccfe64f424daead6ed22542377d2e1ce798e

Comment by Githook User [ 01/Apr/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13429 Use logging system in mongod signal handlers, test exit logging.

Still not really safe for signal handlers, but no worse than before,
and correctly logs to the log file/syslog, so an improvement.
Branch: master
https://github.com/mongodb/mongo/commit/f4e6aa9ee7c0dccbb4789d3dff1d92b086d67b88

Generated at Thu Feb 08 03:31:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.