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

Use failCommand with blockTimeMS instead of sleep in NetworkInterfaceTL C++ integration tests

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Networking & Observability

      A few of the NetworkInterfaceTL integration tests use the sleep command to simulate operation timeouts, but this command isn't supported on mongos, so those tests effectively don't run against sharded clusters. They also confusing use a method named pingCommandMissing to detect if the command exists. We should instead use the failCommand failpoint with blockTimeMS set to ensure we have full coverage of all topologies.

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

              Created:
              Updated: