Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50502

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0, 4.4.3
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • v4.4
    • Execution Team 2020-09-07
    • 14

      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.

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: