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

Int overflow in connectionId

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.19.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change

      Summary

      Eventually the connectionId is overflow and the driver can't connect
      Driver version: 2.17.1

      Driver error

      MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server.
       ---> System.ArgumentOutOfRangeException: Value is not greater than or equal to 0: -2147483648. (Parameter \\'serverValue\\')
         at MongoDB.Driver.Core.Misc.Ensure.IsGreaterThanOrEqualToZero(Int32 value, String paramName)
         at MongoDB.Driver.Core.Connections.ConnectionId..ctor(ServerId serverId, Int32 localValue, Int32 serverValue)
         at MongoDB.Driver.Core.Connections.ConnectionId.WithServerValue(Int32 serverValue)
      

      Server response

          Element: connectionId
                      Type: Double (0x01)  <<<<<<<<<<<<--------- DOUBLE
                      Value: 3228943842
      

       

            Assignee:
            james.kovacs@mongodb.com James Kovacs
            Reporter:
            kaio.henrique@agilecontent.com Kaio Henrique
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: