Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4293

Update or remove test /Cluster/cmd_on_unknown_serverid/*

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • None

      Background & Motivation

      The tests "/Cluster/cmd_on_unknown_serverid/pooled" and "/Cluster/cmd_on_unknown_serverid/single" are regression tests for CDRIVER-3404. They originally asserted that running a command on a server marked Unknown resulted in a graceful error. The test marks the server unknown by calling the internal function _mongoc_topology_invalidate_server.

      After CDRIVER-3653, the tests were updated to no longer expect an error. CDRIVER-3653 changes the behavior of connections to track their own server description from the handshake response. Marking the server unknown in the shared topology description no longer affects established connections.

      Changes in CDRIVER-3992 resulted in test failures on these tests. Since the tests are using internal API, and no longer testing what the original intent was, investigate whether these tests need to be updated or removed.

      Scope

      • Uncomment and update or remove the tests "/Cluster/cmd_on_unknown_serverid/pooled" and "/Cluster/cmd_on_unknown_serverid/single".
         

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: