[SERVER-55747] MongoDB 4.4.x on Windows service related log lines issues Created: 02/Apr/21  Updated: 29/Oct/23  Resolved: 14/May/21

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: 4.4.4
Fix Version/s: 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Emilio Scalise Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2021-05-03, Security 2021-05-17
Participants:
Case:

 Description   

The log lines generated when MongoDB 4.4.x starts a windows service or removes it have issues with the strings included ("toUtf8String_serviceName").

For example:

{"t":{"$date":"2020-12-17T16:12:57.631+00:00"},"s":"I",  "c":"CONTROL",  "id":23316,   "ctx":"main","msg":"Trying to start Windows service '{toUtf8String_serviceName}'","attr":{"toUtf8String_serviceName":"MongoDB"}}

or:

{"t":{"$date":"2021-03-26T05:32:09.899+00:00"},"s":"I",  "c":"CONTROL",  "id":23307,   "ctx":"main","msg":"Trying to remove Windows service '{toUtf8String_serviceName}'","attr":{"toUtf8String_serviceName":"MongoDB"}}
{"t":{"$date":"2021-03-26T05:32:09.900+00:00"},"s":"I",  "c":"CONTROL",  "id":23309,   "ctx":"main","msg":"Could not find a service named '{toUtf8String_serviceName}' to remove","attr":{"toUtf8String_serviceName":"MongoDB"}}

Please review what's causing this.



 Comments   
Comment by Githook User [ 14/May/21 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-55747 MongoDB 4.4.x on Windows service related log lines issues
Branch: master
https://github.com/mongodb/mongo/commit/b82d718c176b5d9837b9ec88cd9d1983e1e9820c

Comment by Bruce Lucas (Inactive) [ 02/Apr/21 ]

Looks like these were missed in the cleanup after the initial automated conversion from logv1 to logv2.

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