ReplicationCoordinatorMock is not thread safe and causes errors with tsan

XMLWordPrintableJSON

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

      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 José Grillo Ramirez
            Reporter:
            Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: