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

Prevent threads spawned outside ThreadContextTest from updating test counters

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0, 5.0.21
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • v5.0
    • Service Arch 2021-12-13, Service Arch 2022-1-10
    • 12

      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.

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