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

Don't log "Adding oplog entry for create/createIndexes to transaction" for unreplicated collections

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2023-05-29

    Description

      We log this message if I create a collection on the local database:

      {"t":{"$date":"2023-04-18T10:35:43.272+00:00"},"s":"I",  "c":"STORAGE",  "id":20320,   "ctx":"conn15","msg":"createCollection","attr":{"namespace":"local.null","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":
      "805bd4d5-b1a3-4763-a2fa-ba7b79f34058"}},"options":{}}}
      {"t":{"$date":"2023-04-18T10:35:43.314+00:00"},"s":"I",  "c":"REPL",     "id":7360102, "ctx":"conn15","msg":"Added oplog entry for create to transaction","attr":{"namespace":"local.$cmd","uuid":{"uuid":{"$uuid":"80
      5bd4d5-b1a3-4763-a2fa-ba7b79f34058"}},"object":{"create":"null","idIndex":{"v":2,"key":{"_id":1},"name":"_id_"}}}}
      

      And when creating an index:

      {"t":{"$date":"2023-04-18T10:36:00.713+00:00"},"s":"I",  "c":"REPL",     "id":7360100, "ctx":"conn15","msg":"Added oplog entry for createIndexes to transaction","attr":{"namespace":"local.$cmd","uuid":{"uuid":{"$uu
      id":"805bd4d5-b1a3-4763-a2fa-ba7b79f34058"}},"object":{"createIndexes":"null","v":2,"key":{"b":1},"name":"b_1"}}}
      

      Attachments

        Activity

          People

            matt.kneiser@mongodb.com Matt Kneiser
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: