Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-422

Improve server compatibility error messages for wire version checks

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • None

      The SDAM spec defines an error message to use when wire version compatibility checks fail:

      "Server at $host:$port uses wire protocol versions $minWireVersion through
      $maxWireVersion, but $driverName $driverVersion only supports $clientMinWireVersion
      through $clientMaxWireVersion."
      

      After DRIVERS-407 we're likely to see a lot of commercial support questions complaining about applications not connecting and weird messages about wire version. To minimize the number of support tickets I think we should improve the messaging. There are two ways compatibility checks can fail. In one case we know the exact server version to report, in the other we don't. I suggest splitting the existing error message in two:

      "Server at $host:$port reports wire version $maxWireVersion, but this version
      of $driverName requires at least $clientMinWireVersion (MongoDB x.x)."
      

      and:

      "Server at $host:$port requires wire version $minWireVersion, but this version
      of $driverName only supports up to $clientMaxWireVersion."
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            rathi.gnanasekaran Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: