Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34235

isNetworkError doesn't correctly check for SocketException error

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • 8

    Description

      In mongo/shell/utils.js, the retryOnNetworkError method calls isNetworkError which looks for the following strings in the error message to determine if it is a network error:

      1. "network error"
      2. "error doing query"
      3. "socket exception"

      Since these checks are case sensitive, it will miss network error messages that print "SocketException".

      Attachments

        Activity

          People

            william.schultz@mongodb.com William Schultz (Inactive)
            william.schultz@mongodb.com William Schultz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: