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

initAndListen returns on ECONNABORTED

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.7, 2.5.3
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • ALL

      Issue Status as of December 5th, 2013

      ISSUE SUMMARY
      The ECONNABORTED error is non-fatal, but it will return; from the loop in initAndListen when ECONNABORTED is detected. It could be better to log this and continue the loop under these conditions.

      USER IMPACT
      mongod could give up on listening to a port when mongod doesn't have to, effectively closing the server when mongod doesn't need to.

      It is present in versions of MongoDB prior to and including v2.4.6.

      SOLUTION
      continue; rather than return; on ECONNABORTED.

      WORKAROUNDS
      None.

      PATCHES
      Production release v2.4.7 contains the fix for this issue, and production release v2.6.0 will contain the fix as well.

      The ECONNABORTED error is non-fatal, but it will return; from the loop in initAndListen when ECONNABORTED is detected. It could be better to log this and continue the loop under these conditions.

      Found in a couple of places in listen.cpp, depending on the OS:
      https://github.com/mongodb/mongo/blob/master/src/mongo/util/net/listen.cpp#L266
      https://github.com/mongodb/mongo/blob/master/src/mongo/util/net/listen.cpp#L465

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            andre.defrere@mongodb.com Andre de Frere
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: