[DRIVERS-1926] Server selection load balancing algorithm prose test is flaky Created: 20/Sep/21  Updated: 18/Oct/23

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

Type: Bug Priority: Unknown
Reporter: Patrick Freed Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: prose-test
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split to CSHARP-3882 Server selection load balancing algor... Backlog
split to CXX-2379 Server selection load balancing algor... Backlog
split to RUBY-2799 Server selection load balancing algor... Closed
split to GODRIVER-2166 Server selection load balancing algor... Closed
split to MOTOR-823 Server selection load balancing algor... Closed
split to PHPLIB-727 Server selection load balancing algor... Closed
split to CDRIVER-4170 Server selection load balancing algor... Backlog
split to PYTHON-2924 Server selection load balancing algor... Closed
split to JAVA-4320 Server selection load balancing algor... Backlog
split to NODE-3638 Server selection load balancing algor... Closed
split to RUST-1035 Server selection load balancing algor... Closed
Epic Link: DRIVERS-781
Driver Changes: Needed
Quarter: FY22Q4
Downstream Changes Summary:

Drivers need to update the operationCount based selection prose test implementation from server-selection-tests.rst

Driver Compliance:
Key Status/Resolution FixVersion
CDRIVER-4170 Backlog
CXX-2379 Backlog
CSHARP-3882 Backlog
GODRIVER-2166 Fixed 1.10.0, 1.10.0-beta1
JAVA-4320 Backlog
NODE-3638 Done
PHPLIB-727 Won't Do
PYTHON-2924 Fixed 4.2
MOTOR-823 Duplicate
RUBY-2799 Duplicate
RUST-1035 Fixed 2.3.0
SWIFT-1360 Won't Do

 Description   

Summary

The operationCount based selection prose test in the server selection spec has proven to fail occasionally due to random slowness in in one of the mongoses. This is likely due to the mongoses competing for resources on the same virtual host (which is itself competing for resources). The C# and Rust driver teams have experimented with modifying this test to reduce the failures to some success. We should include these modifications in the actual spec so that future teams will not experience the same failures.
 

Motivation

Who is the affected end user?

Drivers teams

How does this affect the end user?

Their tests occasionally fail

How likely is it that this problem or use case will occur?

The test fails 1-2% of the time

Is this ticket only for tests?

Yes



 Comments   
Comment by Githook User [ 19/Apr/22 ]

Author:

{'name': 'Patrick Freed', 'email': 'patrick.freed@mongodb.com', 'username': 'patrickfreed'}

Message: DRIVERS-1926 Improve stability of server selection load balancing algorithm test (#1166)
Branch: master
https://github.com/mongodb/specifications/commit/96203ae6219c7b9a53cfe91294cc713821cdf732

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