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

Remove TransportLayerASIOTest dependence on ThreadContext

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.1.0-rc0, 4.4.15
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Service Arch 2022-05-30

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: