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

Emit log for every sharding metadata inconsistency found

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Sharding EMEA
    • Fully Compatible

    Description

      We should emit a log for every inconsistency found while running checkMetadataConsistency command.

      The inconsistency details should be included in BSON formatting. The same format use in the reply of the command.

      Atlas will then create a log injection rule to automatically detect those inconsistencies.

      The log will be emitted with Log ID 7514800 at WARNING level. It could be emitted both from shards and configserver depending which node spotted the inconsistency.

      The format of the log is the following:

      {
        "t":{"$date":"2023-04-05T15:02:23.765+00:00"},
        "s":"W",  
        "c":"SHARDING", 
        "id":7514800,
        "ctx":"conn44",
        "msg":"Detected sharding metadata inconsistency",
        "attr":{
            "inconsistency":{
                "type":"<<<INCONSISTENCY TYPE>>>",
                "description":"<<<HUMAN READABLE DESCRIPTION>>>"
                "details":\{ <<<BSON object with details about the specific inconsistency>>>}
           }
        }
      }
      

      Attachments

        Activity

          People

            tommaso.tocci@mongodb.com Tommaso Tocci
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: