[CDRIVER-4293] Update or remove test /Cluster/cmd_on_unknown_serverid/* Created: 11/Feb/22  Updated: 10/Feb/23

Status: Backlog
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Unknown
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Epic Link: CDRIVER-2733

 Description   

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

Generated at Wed Feb 07 21:20:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.