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

AsyncOpTimeoutWithOpCtxDeadlineLater test can fail with wrong error code

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • Fully Compatible
    • ALL
    • Networking & Obs 2024-10-28
    • 0

      AsyncOpTimeoutWithOpCtxDeadlineLater sets a timeout on the request but does not set a timeout code. As a result, the timeout code returned from NI::startCommand will context-dependent. In particular, if a timeout happens to be hit during connection acquisition (which is more likely on slower hosts like the sanitizer ones), a PooledConnectionAcquisitionExceededTimeLimit will be returned rather than a NetworkInterfaceExceededTimeLimit error, as expected.

      To solve this, we should be sure to set a timeout code on the request so that it will be returned during any timeout, regardless of when it occurs.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: