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

Fix db_repl_test in TSAN

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • None
    • Fully Compatible
    • ALL
    • Repl 2020-06-29, Repl 2020-07-13
    • 0

    Description

      db_repl_test failed under TSAN. And one reason was because of concurrent writes of _pings in ElapsedTracker. But _pings is an int32_t and it should be harmless except for imprecise counts. So maybe we should fix ElapsedTracker to make it thread-safe, with AtomicWord or mutexes.

      ElapsedTracker is not owned by repl. However, more data races could come up in the test once we fix ElapsedTracker. So it is hard to estimate how long it would take to make the test pass.

      Attachments

        Activity

          People

            lingzhi.deng@mongodb.com Lingzhi Deng
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: