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

RecoveryUnit SnapshotIDs do not need to increment atomic for each snapshot

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Storage Execution NAMER
    • Execution NAMR Team 2023-10-16, Execution Team 2023-10-30, Execution Team 2023-11-13, Execution Team 2023-11-27

    Description

      We use the RecoveryUnit snapshot ID for comparison purposes to tell us two things:

      • Has my snapshot changed on the same RecoveryUnit? (e..g normal yielding)
      • Has my snapshot changed from a different RecoveryUnit? (e.g. with getMore)

      We need to maintain that snapshot IDs are globally unique, but instead of incrementing the atomic for every snapshot, we can just have a globally unique RecoveryUnit ID and a locally unique snapshot counter for each RecoveryUnit. This should be sufficient to reduce contention on the Snapshot ID atomic and still maintains uniqueness.

      Attachments

        Activity

          People

            louis.williams@mongodb.com Louis Williams
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: