Add collection and id index idents to collection create oplog entries

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Storage Execution 2025-05-26, Storage Execution 2025-06-09, Storage Execution 2025-06-23, Storage Execution 2025-07-07
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 0

      This probably does not need to be FCV-gated as extra entries in the create object are accepted by 8.0.

      An example of what the oplog entry could look like:

      {
        "namespace": "2025-04-03T165859194.$cmd",
        "uuid": {
          "uuid": {
            "$uuid": "cce1a5ad-6fba-490d-834b-25059e75a7e9"
          }
        },
        "opTime": {
          "ts": {
            "$timestamp": {
              "t": 1743699539,
              "i": 1
            }
          },
          "t": 1
        },
        "object": {
          "create": "foo",
          "idIndex": {
            "v": 2,
            "key": {
              "_id": 1
            },
            "name": "_id_"
          },
          "ident": "collection-1f26c3ca-db56-482c-9280-f04be3adc543",
          "idIndexIdent": "index-id-963074e1-c359-40df-a6da-a84c10b41964", 
        }
      }
      
      Placing the id index ident inside the idIndex object instead may also make sense.

              Assignee:
              Haley Connelly
              Reporter:
              Thomas Goyne
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: