[GODRIVER-2238] Fix TestCausalConsistencyExamples test Created: 18/Nov/21  Updated: 30/Mar/22

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

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

Attachments: File mongo_go_driver_tests_40_with_zlib_support__version~4.0_os_ssl_40~ubuntu1804_64_go_1_16_test_sharded_auth_nossl_patch_10abf0f63e0cd655ad26d0294540e05138138c1b_6196906657e85a07ff775e6e_21_11_18_17_42_00-0-mongodb-logs.tar.gz    
Issue Links:
Related
is related to GODRIVER-517 Causal Consistency Examples for the M... Closed

 Description   

The TestCausalConsistencyExamples test currently fails on at least one task most of the time. Re-enable it if it's skipped and fix the test.

The failures seem to happen only on MongoDB v4.0 sharded clusters.

E.g. failure:

examples_test.go:124:
    	Error Trace:	examples_test.go:124
    	Error:      	Received unexpected error:
    	            	write exception: write errors: [no progress was made executing batch write op in test.items after 5 rounds (0 ops completed in 6 rounds total)]
    	Test:       	TestCausalConsistencyExamples

Lobster

E.g. failure message with added logging:

session error: InsertOne error: write exception: write errors: [no progress was made executing batch write op in test.items after 5 rounds (0 ops completed in 6 rounds total)]

Suggests the error is coming from the InsertOne call on examples.go#L2561.



 Comments   
Comment by Githook User [ 19/Nov/21 ]

Author:

{'name': 'Matt Dale', 'email': '9760375+matthewdale@users.noreply.github.com', 'username': 'matthewdale'}

Message: GODRIVER-2238 Skip TestCausalConsistencyExamples on MongoDB v4.0 for now. (#814)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/fcd593daff32b0c76d493888fe4b6fa97a30dfda

Comment by Matt Dale [ 18/Nov/21 ]

Other tickets with the same server error message:
https://jira.mongodb.org/browse/BFG-915091?jql=text%20~%20%22no%20progress%20was%20made%20executing%20batch%20write%20op%20in%22%20ORDER%20BY%20created%20DESC

Also attached server logs from the failing run: mongo_go_driver_tests_40_with_zlib_support__version~4.0_os_ssl_40~ubuntu1804_64_go_1_16_test_sharded_auth_nossl_patch_10abf0f63e0cd655ad26d0294540e05138138c1b_6196906657e85a07ff775e6e_21_11_18_17_42_00-0-mongodb-logs.tar.gz

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