Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1717

Include EINVAL in list of error conditions to trigger "fast failure" connect mode

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Developer Tools
    • 2
    • Not Needed
    • Iteration Wendiceratops

      Switching mongosh to Node.js 20.11.1 exposed a difference from 20.11.0 where long domain names can now result in EINVAL rather than ENOTFOUND (see e.g. test adjustment in https://github.com/mongodb-js/mongosh/pull/1822).

      EINVAL is not part of our "fast failure" condition list, but probably should be: https://github.com/mongodb-js/devtools-connect/blob/34c8e2da3a0296c269ba8f8af44fbee0fab76549/src/fast-failure-connect.ts#L7

            Assignee:
            paula.stachova@mongodb.com Paula Stachova
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: