[DRIVERS-2099] Add server selection tests that don't use tag sets Created: 23/Aug/16  Updated: 31/Mar/22

Status: Backlog
Project: Drivers
Component/s: Server Selection
Fix Version/s: None

Type: Spec Change Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Driver Changes: Needed

 Description   

While making a change to support max staleness, I introduced a regression to the Java driver's server selection algorithm that was not caught by any of the server selection tests. The regression showed up for secondary and secondary preferred read preferences without a tag set list. The regression was that these read preferences incorrectly selected the primary, even in the presence of secondaries.

While there were other driver-specific tests that caught the regression, I would expect the server selection tests to catch them as well.

The request, then, is to add a set of tests for secondary, secondary preferred, and nearest read preferences without tag set lists.



 Comments   
Comment by Jeffrey Yemin [ 22/Jan/18 ]

Assigned to myself.

Comment by Bernie Hackett [ 22/Jan/18 ]

jeff.yemin, since you know exactly what went wrong and have tests to catch the problem, would you be willing to turn those tests into spec tests to resolve this ticket?

Generated at Thu Feb 08 08:24:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.