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

initAndListen returns on ECONNABORTED

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.7, 2.5.3
    • Component/s: Internal Code
    • Labels:
      None
    • Operating System:
      ALL

      Description

      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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: