Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2123

Driver should ensure maxTimeMS value sent to server is valid

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.4.4
    • Fix Version/s: 2.7.0
    • Component/s: Read Operations
    • Labels:
      None
    • 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
      2. Rounding values smaller than 1.0 down to 0.0 would result in unexpected behavior because the server interprets 0 as meaning no maxTimeMS

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: