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

Data race in MongosTopologyCoordinator test

    • Fully Compatible
    • ALL
    • Repl 2020-07-13
    • 0

      This was found in the TSAN suite - there's a data race between reading and writing the deadline on the opCtx in MongosTopoCoordTest's IsMasterReturnsErrorOnEnteringQuiesceMode test case. The spawned thread that calls MongosTopologyCoordinator::awaitIsMasterResponse() ultimately sets the deadline on the opCtx. In the main thread, MongosTopologyCoordinator::enterQuiesceModeAndWait reads the deadline on the opCtx when checking if it has expired.

            Assignee:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: