[SERVER-46636] Server shows non-warning messages as startup warnings Created: 05/Mar/20  Updated: 29/Oct/23  Resolved: 05/Mar/20

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: 4.3.4
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Tomer Yakir Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-46642 db.adminCommand({getLog: "startupWarn... Closed
is duplicated by SERVER-46934 Shell prints complete server log as "... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Steps To Reproduce:

1. Download 4.3.4-ent for macos (haven't tested on other distros)
2. Start mongod with logPath set. If logPath isn't set, the problem isn't reproducible.
3. run db.runCommand(

{getLog: "startupWarnings"}

)

Sprint: Dev Tools 2020-03-09
Participants:

 Description   

running

db.runCommand({getLog: "startupWarnings"})

shows non-warning messages. for example:

"{\"t\":{\"$date\":\"2020-03-05T14:17:17.815+0200\"},\"s\":\"I\", \"c\":\"NETWORK\", \"id\":51800,\"ctx\":\"conn25\",\"msg\":\"received client metadata from {remote} {client}: {doc}\",\"attr\":{\"remote\":\"127.0.0.1:62392\",\"client\":\"conn25\",\"doc\":{\"application\":{\"name\":\"MongoDB Shell\"},\"driver\":{\"name\":\"MongoDB Internal Client\",\"version\":\"4.3.4\"},\"os\":{\"type\":\"Darwin\",\"name\":\"Mac OS X\",\"architecture\":\"x86_64\",\"version\":\"18.6.0\"}}}}"

This is not reproducible on 4.3.3, so might be related to structured logging changes.



 Comments   
Comment by Githook User [ 26/Mar/20 ]

Author:

{'name': 'Henrik Edin', 'username': 'henrikedin', 'email': 'henrik.edin@mongodb.com'}

Message: SERVER-46636 Fix so just logs tagged with startupWarnings go into the startup warnings RamLog

(cherry picked from commit 165f3444ddad4eb1220785799b0466980602f9c3)
Branch: v4.4
https://github.com/mongodb/mongo/commit/d6d9a516635688bc11451bca1fbfbf86071a1920

Comment by Githook User [ 05/Mar/20 ]

Author:

{'name': 'Henrik Edin', 'username': 'henrikedin', 'email': 'henrik.edin@mongodb.com'}

Message: SERVER-46636 Fix so just logs tagged with startupWarnings go into the startup warnings RamLog
Branch: master
https://github.com/mongodb/mongo/commit/165f3444ddad4eb1220785799b0466980602f9c3

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