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

Fix the data race in OpMsgFuzzerFixture

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • v5.0
    • Service Arch 2021-06-14
    • 69

    Description

      TheĀ OpMsgFuzzerFixture resets the AuthorizationManager, which is a decoration on ServiceContext, after starting storage controls (i.e., startStorageControls). Starting the storage control enqueues a periodic task (i.e., JournalFlusher) that may attempt to access the AuthorizationManager, causing a data-race.

      We should reset the AuthorizationManager immediately after creating the new instance of ServiceContext (here) to avoid the data-race.

      Attachments

        Activity

          People

            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: