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

Prevent threads spawned outside ThreadContextTest from updating test counters

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.3.0, 5.0.21
    • None
    • None
    • Fully Compatible
    • v5.0
    • Service Arch 2021-12-13, Service Arch 2022-1-10
    • 12

    Description

      The non-deterministic and sporadic test failure in BF-22755 seems to be caused by a left-over thread from a different test terminating while the ThreadContextTest suite is running. Since TestDecoration would be applied to any thread, not just those created in the test suite, this would cause the counters to be modified unexpectedly. The solution is to make sure that only the threads spawned inside this test suite can modify the counters.

      Attachments

        Activity

          People

            vojislav.stojkovic@mongodb.com Vojislav Stojkovic
            vojislav.stojkovic@mongodb.com Vojislav Stojkovic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: