Parse size and count delta from truncateRange oplog entry

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • Storage Execution 2026-04-13
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A new oplog entry for replicated truncate was introduce with the format of

      {
        op: 'c',
        ns: '<DB_NAME>.$cmd',
        ui: <COLLECTION_UUID>,
        o: {
          truncateRange: <NAMESPACE_STRING>,
          minRecordId: <minRecordId>,
          maxRecordId: <maxRecordId>,
          bytesDeleted: <bytesDeleted>,
          docsDeleted: <docsDeleted>
        },
      
        // common oplog fields
        ts: ,
        t: ,
        v: 2,
        wall: 
      }
      

      When aggregating the size and count deltas from the oplog, we should also parse bytesDeleted and docsDeleted and track it for the collection with the UUID ui

            Assignee:
            Ernesto Rodriguez Reina
            Reporter:
            Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: