[SERVER-50502] The lock manager dump logv2 message needs logv2::LogTruncation::Disabled set so that lock dumps are not truncated Created: 24/Aug/20  Updated: 29/Oct/23  Resolved: 27/Aug/20

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

Type: Improvement Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Execution Team 2020-09-07
Participants:
Linked BF Score: 14

 Description   

Investigating a test failure I noticed that the lock manager dump had a "truncated" message at the end,

[initandlisten] "lock manager dump","attr":  .......
.....
 
{"lockRequest":"0x28b2","lockRequestAddr":"0x7f77f610cd00","thread":"140151986423552","mode":"IX","convertMode":"NONE","enqueueAtFront":false,"compatibleFirst":false,"debugInfo":"","clientInfo":{"desc":"conn282","connectionId":282,"client":"127.0.0.1:52265","opid":10399}},
 
{"lockRequest":"0x2932","lockRequestAddr":"0x7f77fded8700","thread":"140152063268608","mode":"IX"}]}]},
 
"truncated":{"locks":{"0":{"granted":{"33":{"convertMode":{"type":"string","size":9}}}}}},"size":{"locks":81237}

Logv2 messages need logv2::LogTruncation::Disabled set in order to avoid truncation.

The lock manager dump logv2 message does not currently have this set.

It would also be great if we could get the log message to span multiple lines instead of being scrunched into a single really long line that's hard to read, but I don't know how to do that.



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

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-50502 The lock manager dump logv2 message needs logv2::LogTruncation::Disabled set so that lock dumps are not truncated

(cherry picked from commit c77fd1a19153af5cbf22355167298b0644c7c7cd)
Branch: v4.4
https://github.com/mongodb/mongo/commit/14ffab3e8b4a0022b26ab1abb2ed98d17d0f6cd0

Comment by Githook User [ 27/Aug/20 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-50502 The lock manager dump logv2 message needs logv2::LogTruncation::Disabled set so that lock dumps are not truncated
Branch: master
https://github.com/mongodb/mongo/commit/c77fd1a19153af5cbf22355167298b0644c7c7cd

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