[CSHARP-3027] Improve pinning test Created: 24/Mar/20  Updated: 01/Apr/20  Resolved: 01/Apr/20

Status: Closed
Project: C# Driver
Component/s: Session Management, Testing
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Vincent Kam (Inactive) Assignee: Vincent Kam (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

We are seeing unusual failures in the following test: Test_Unpin_For_Non_Transaction_Operation
https://github.com/mongodb/mongo-csharp-driver/blob/719731cb7548ae6c1cfc253c33384084f84fb3b1/tests/MongoDB.Driver.Tests/PinnedShardRouterTests.cs#L112

e.g.
https://evergreen.mongodb.com/task_log_raw/dot_net_driver_secure_tests__version~4.4_os~windows_64_topology~sharded_cluster_auth~auth_ssl~ssl_test_patch_cafa20474a43e7a3dbac23416b2262f59c761f29_5e7a30313627e0034e073190_20_03_24_16_07_14/0?type=T#L4344

It should be extremely rare for this test to fail as the probability of selecting the same mongos after 50 server selections is extremely low. 



 Comments   
Comment by Githook User [ 01/Apr/20 ]

Author:

{'name': 'vincentkam', 'email': 'vincent.kam@10gen.com', 'username': 'vincentkam'}

Message: CSHARP-3027: Improve pinning test
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/06700ca83faf96ffad67e102fe3ec62529f12a1d

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