Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-13803

WT startup/shutdown/recovery logs are not parsed in the Atlas log ingestion

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: Not Applicable
    • None
    • Storage Engines
    • 3
    • StorEng - 2024-12-10

      The mongod startup/shutdown log ingestion rules are now broken by section.
      However, WT logs are not being broken up in section because of the following error:

      
      current value: "{wiredTigerMessage: WiredTiger, wiredTigerOperationType: shutdown, totalMS: 384700, logReplayMS: 0, rtsMS: 384700, checkpointMS: }"
      

      While converting to JSON we get this error:

      json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2
      

      As per the logic of breaking up the logs in sections, if there is an error converting the values are kept as it is.
      JSON specification - RFC7159 states that a string begins and ends with quotation mark.

      One suspect is it’s because WT logs are not wrapped properly “WiredTiger” and “shutdown” in quotes, and because “checkpointMS: ” is at least sometimes empty (in other cases the checkpointMS isn’t empty, but it still doesn’t parse correctly.

      The scope of this ticket is to fix the WiredTiger log ingestion rules so that it can be parsed without any error.

            Assignee:
            ravi.giri@mongodb.com Ravi Giri
            Reporter:
            ravi.giri@mongodb.com Ravi Giri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: