[SERVER-83955] Fix wrong warning messages in ReplSetGetStatus command Created: 07/Dec/23  Updated: 19/Jan/24  Resolved: 21/Dec/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 6.0.0, 5.2.0-rc0, 7.0.0, 7.2.0-rc3
Fix Version/s: 7.3.0-rc0, 7.0.6, 6.0.14

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Huayu Ouyang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by SERVER-61007 ReplSetGetStatus calls storage with n... Closed
Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.2, v7.0, v6.0
Sprint: Repl 2023-12-25
Participants:

 Description   

In SERVER-61007 we added a 4 warning log messages that wrongly uses formatting string with '{error}' placeholder (example). The LOGV2 macros used only support simple log strings and in fact the '{error}' placeholder will not be substitute and will appear directly in the final logs.

The goal of this ticket is to make those log messages use plain string without placeholders.



 Comments   
Comment by Githook User [ 19/Jan/24 ]

Author:

{'name': 'huayu-ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-83955 Fix wrong warning messages in ReplSetGetStatus command (#17731)

(cherry picked from commit 29c229f091ecfaf9d030283a04c4feecbd08fb6c)

GitOrigin-RevId: 8d19b91cee6c05b99ffce7c592538eb322f6e467
Branch: v7.0
https://github.com/mongodb/mongo/commit/84b11c523fc34fdcbc37409ea48ed6141eb3e14c

Comment by Githook User [ 19/Jan/24 ]

Author:

{'name': 'huayu-ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-83955 Fix wrong warning messages in ReplSetGetStatus command (#17731)

(cherry picked from commit 29c229f091ecfaf9d030283a04c4feecbd08fb6c)

GitOrigin-RevId: 13ec5806527c24aeed223381b374b5bb35e94327
Branch: v6.0
https://github.com/mongodb/mongo/commit/15a26740776ce49b45b24693cce2c2b2a43c4980

Comment by Githook User [ 21/Dec/23 ]

Author:

{'name': 'huayu-ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-83955 Fix wrong warning messages in ReplSetGetStatus command (#17731)

GitOrigin-RevId: ccd5461628c5aec1537f0a92543e557de67cb69a
Branch: master
https://github.com/mongodb/mongo/commit/f1e96fa259a011c896f5f51f6a2f1815e8afdc32

Generated at Thu Feb 08 06:53:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.