[SERVER-56401] Log lines are malformed Created: 27/Apr/21  Updated: 29/Oct/23  Resolved: 10/Aug/21

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

Type: Bug Priority: Major - P3
Reporter: Jeffrey Zambory Assignee: Sergey Galtsev (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2021-07-26, Security 2021-08-09, Security 2021-08-23
Participants:

 Description   

Logs are malformed sometimes, leading to two distinct logs to be output on the same line. This can be seen in this task. This is an example of the logs on the same line.

The two lines seem to be coming from here then here .



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 10/Aug/21 ]

Author:

{'name': 'sergey.galtsev', 'email': 'sergey.galtsev@mongodb.com', 'username': 'brushless-glitch'}

Message: SERVER-56401 emit eol in log formatter
Branch: master
https://github.com/mongodb/mongo/commit/a7dfbdd59bbc4649cbd83344cedbfc7c69356866

Comment by Sergey Galtsev (Inactive) [ 10/Aug/21 ]

this change prevents scenarios from happening when audit and log going to the same stream interfere with each other's data

Comment by Sergey Galtsev (Inactive) [ 04/Aug/21 ]

https://mongodbcr.appspot.com/814910011/

Comment by Sergey Galtsev (Inactive) [ 04/Aug/21 ]

Dev-note: the two separate entries in question are:

  • regular log entry
  • audit event

both are configured to go to std::cout, but since they are emitted by separate subsystems, there is no mechanism to share the stream in thread safe manner

Generated at Thu Feb 08 05:39:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.