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

Thread-unsafe StopWatch instance is shared by multiple threads

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • ALL
    • Service Arch 2023-07-24
    • 1

      The method NetworkInterfaceTL::ExhaustCommandState::make() uses the future construct which captures and reads ExhaustCommandState::stopwatch object.

      The problem is that in db_integration_test (src/mongo/db/exhaust_cursor_currentop_integration_test.cpp:358) this stopwatch object is created on a different thread. This is why TSAN is reporting a possible data race.

            Assignee:
            jennifer.wang@mongodb.com Jennifer Wang (Inactive)
            Reporter:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: