[GODRIVER-2842] Fix failing "TestServerSelectionProse" test Created: 12/May/23  Updated: 08/Jun/23

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

Type: Bug Priority: Unknown
Reporter: Matt Dale Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: greenerbuild
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by GODRIVER-2776 Server Selection Prose Test Failures ... Closed

 Description   

The test

TestServerSelectionProse/operationCount-based_selection_within_latency_window,_no_failpoint

fails frequently on Evergreen CI with an error like:

    server_selection_prose_test.go:226:
        	Error Trace:	/mongo/integration/server_selection_prose_test.go:226
        	            				/mongo/integration/mongotest.go:263
        	Error:      	Max difference between 0.5 and 0.7130996309963099 allowed is 0.1, but difference was -0.2130996309963099
        	Test:       	TestServerSelectionProse/operationCount-based_selection_within_latency_window,_no_failpoint
        	Messages:   	expected server "localhost:27018" to be selected 50% (+/- 10%) of the time, but was selected 71.30996309963099% of the time
    server_selection_prose_test.go:226:
        	Error Trace:	/mongo/integration/server_selection_prose_test.go:226
        	            				/mongo/integration/mongotest.go:263
        	Error:      	Max difference between 0.5 and 0.28690036900369004 allowed is 0.1, but difference was 0.21309963099630996
        	Test:       	TestServerSelectionProse/operationCount-based_selection_within_latency_window,_no_failpoint
        	Messages:   	expected server "localhost:27017" to be selected 50% (+/- 10%) of the time, but was selected 28.690036900369005% of the time
--- FAIL: TestServerSelectionProse (0.21s)

See an example test run here

Definition of done:

  • TestServerSelectionProse/operationCount-based_selection_within_latency_window,_no_failpoint passes reliably on Evergreen CI.

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