[CSHARP-3290] LocalThreshold no longer accepts infinite timespan Created: 16/Dec/20  Updated: 28/Oct/23  Resolved: 01/Sep/21

Status: Closed
Project: C# Driver
Component/s: Configuration
Affects Version/s: 2.11.5
Fix Version/s: 2.13.2

Type: Bug Priority: Minor - P4
Reporter: Aristarkh Zagorodnikov Assignee: Dmitry Lukyanov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CSHARP-2288 Add option for applications to regist... Closed

 Description   

Hi!

Since CSHARP-2288 was implemented, MongoClientSettings.LocalThreshold no longer accepts Timeout.InfiniteTimeSpan, yet the underlying LatencyLimitingServerSelector still supports it in passthrough mode.

I wonder if this change and this test were implemented intentionally, breaking code that worked in 2.10.4. Maybe the parameter validation could be relaxed a bit to pre-change limits?

 



 Comments   
Comment by Githook User [ 06/Oct/21 ]

Author:

{'name': 'Dmitry Lukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}

Message: CSHARP-3290: LocalThreshold no longer accepts infinite timespan. (#616)
Branch: v2.13.x
https://github.com/mongodb/mongo-csharp-driver/commit/8099d507c83b806ad0106bb8e5f8adb8f15cb646

Comment by Githook User [ 01/Sep/21 ]

Author:

{'name': 'Dmitry Lukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}

Message: CSHARP-3290: LocalThreshold no longer accepts infinite timespan. (#616)
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/ab4b36716140d19529ed5a202a90e81ac7a64b33

Comment by Mikalai Mazurenka (Inactive) [ 17/Dec/20 ]

Hi onyxmaster!
Thank you for reporting this bug.
I am scheduling this change.

Comment by Aristarkh Zagorodnikov [ 16/Dec/20 ]

Please excuse me for improper priority, I consider it a minor bug.

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