Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4430

Investigate NODE-4429 - 4.8.0 Regression, "connection.close" hangs for 30s when connection errored

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • None
    • None
    • Not Needed

    Description

      NODE-4429 Description

      What problem are you facing?

      Since mongodb(nodejs) 4.8.0 running `await connection.close()` after the connection had errored (with `MongoNetworkError: connection 1 to 127.0.0.1:38111 closed`), it hangs for 30 seconds

       

      This problem goes away when reverting to mongodb 4.7.3

      What driver and relevant dependency versions are you using?

      mongodb 4.8.0

      Steps to reproduce?

      • have a running mongodb 5.0.8 (or later patch version) instance
      • connect with a MongoClient connection
      • execute command `await con.db('admin').command({ shutdown: 1, force: true, timeoutSecs: 1 })`
      • try running `await connection.close()`
      • observe it hanging for 30 seconds

      Attachments

        Issue Links

          Activity

            People

              bailey.pearson@mongodb.com Bailey Pearson
              dbeng-pm-bot PM Bot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: