Data race in MongosTopologyCoordinator test

XMLWordPrintableJSON

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

      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
            Reporter:
            Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: