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

ReplicationCoordinatorMock is not thread safe and causes errors with tsan

    • Fully Compatible
    • ALL
    • Sharding 2020-06-15, Sharding 2020-06-29
    • 0

      tsan is a data race detection tool that detects write/read races. When running db_s_collection_sharding_runtime_test binary, the ReplicationCoordinatorMock class reads and writes _myLastAppliedOpTime and _myLastAppliedWallTime without any synchronization mechanism, which causes this race.

            Assignee:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Reporter:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: