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

Fix db_repl_test in TSAN

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Repl 2020-06-29, Repl 2020-07-13
    • 0

      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.

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

              Created:
              Updated:
              Resolved: