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

Add read-copy-update map class

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2023-03-20

    Description

      In order to not block modifications to the hashmap of collection truncate markers needed for Change Collection and Pre-Image collection management under one mutex we must create a lock-free hashmap. Otherwise we risk having large contention of entries.

      A read-copy-update approach is suitable here as it would let us:

      • Perform CollectionTruncate marker updates without any locks
      • Free us from lifetime concerns in the remover thread

      This map in particular should make it so all values between map instances are shared in order to coordinate correctly between threads.

      Attachments

        Activity

          People

            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: