[SERVER-51715] Wrap timestamps with tojson() in log lines in optime.js Created: 16/Oct/20  Updated: 29/Oct/23  Resolved: 19/Oct/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0, 4.4.3

Type: Bug Priority: Major - P3
Reporter: Ali Mir Assignee: Ali Mir
Resolution: Fixed Votes: 0
Labels: bkp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Repl 2020-10-19, Repl 2020-11-02
Participants:
Linked BF Score: 21

 Description   

In BF-19108 we see that log lines that concatenate timestamps can error out due to  changes introduced in SERVER-21861. We should wrap timestamps with tojson() to prevent logging from throwing the error Cannot toString timestamps.



 Comments   
Comment by Githook User [ 19/Nov/20 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-51715 Wrap timestamps with tojson in log lines in optime.js

(cherry picked from commit ad8e80b9e829c9e6eee224c2c2242418e9486f27)
Branch: v4.4
https://github.com/mongodb/mongo/commit/34b262e2adfd74fe555875dc92baa1e9bc450e3c

Comment by Githook User [ 19/Oct/20 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-51715 Wrap timestamps with tojson in log lines in optime.js
Branch: master
https://github.com/mongodb/mongo/commit/ad8e80b9e829c9e6eee224c2c2242418e9486f27

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