[CSHARP-2123] Driver should ensure maxTimeMS value sent to server is valid Created: 10/Dec/17 Updated: 28/Oct/23 Resolved: 08/Jan/18 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Read Operations |
| Affects Version/s: | 2.4.4 |
| Fix Version/s: | 2.7.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Andrey Kondratyev [X] | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Backwards Compatibility: | Fully Compatible |
| Description |
|
The .NET driver currently sends the maxTimeMS parameter to the server as a BSON double. The server requires that the value for maxTimeMS be an integral number of milliseconds. When the driver converts a MaxTime TimeSpan value to a maxTimeMS to send to the server it should map values that contain fractional milliseconds to an appropriate integral value. Fractional milliseconds should always be adjusted to the next highest integral value. We don't want to round down because: 1. That could result in the server aborting the operation sooner than the application specified |
| Comments |
| Comment by Githook User [ 08/Jan/18 ] |
|
Author: {'name': 'rstam', 'username': 'rstam', 'email': 'robert@robertstam.org'}Message: |
| Comment by Githook User [ 08/Jan/18 ] |
|
Author: {'name': 'rstam', 'username': 'rstam', 'email': 'robert@robertstam.org'}Message: |
| Comment by Githook User [ 08/Jan/18 ] |
|
Author: {'name': 'Andrey Kondratyev', 'username': 'byTimo', 'email': 'race.timo@gmail.com'}Message: |