-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Code
-
None
-
ALL
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