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

Fix the data race in OpMsgFuzzerFixture

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

      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.

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

              Created:
              Updated:
              Resolved: