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

Remove TransportLayerASIOTest dependence on ThreadContext

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.15, 5.0.15, 6.0.4, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0, v5.0, v4.4
    • Service Arch 2022-05-30

      TransportLayerASIOTest is the last user of ThreadContext.

      It's the only reason we have it. And because we have it, we have to have a ThreadContext::get call in every thread we spawn (and we'll still miss some threads).

      It's a flaky test and what it's using ThreadContext for can be done with dependency injection, more reliably. Then we can have a better test and proceed to get rid of ThreadContext (per SERVER-66456).

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: