[SERVER-12252] Fix mongod log output for write commands Created: 04/Jan/14  Updated: 11/Jul/16  Resolved: 18/Feb/14

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: None
Fix Version/s: 2.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Eliot Horowitz (Inactive) Assignee: Siyuan Zhou
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-12049 Redact password data from profiler/sl... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

When slow commands get logged by mongod, the entire BSON object representing the operation gets written to the log. For write commands, these can be quite large, making the logs hard to read and possibly further impacting performance, since writing to the logs is done serially.



 Comments   
Comment by Githook User [ 14/Feb/14 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-12252 Fix mongod log output for write commands. Fix too big msg.

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/a6867c67c3fd2d3d3be3d13cba7840e3acedb575

Comment by Githook User [ 13/Feb/14 ]

Author:

{u'username': u'IanWhalen', u'name': u'Ian Whalen', u'email': u'ian@mongodb.com'}

Message: Revert "SERVER-12252 Fix mongod log output for write commands"

This reverts commit dad66801520c399a15a070ba089c766cb4c1608e.

Reverting because this broke tests in sharding_auth
Branch: master
https://github.com/mongodb/mongo/commit/e9044996c0c3c1fa874e452acf3ef2402c6f162d

Comment by Githook User [ 13/Feb/14 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-12252 Fix mongod log output for write commands

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/dad66801520c399a15a070ba089c766cb4c1608e

Comment by Eliot Horowitz (Inactive) [ 04/Jan/14 ]

Might be able to do both with same mechanism.

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