isNetworkError doesn't correctly check for SocketException error

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • 8
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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".

            Assignee:
            Will Schultz
            Reporter:
            Will Schultz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: