[SERVER-7743] Print the low-level error when socket operations fail Created: 21/Nov/12  Updated: 29/Nov/16  Resolved: 29/Nov/16

Status: Closed
Project: Core Server
Component/s: Logging, Usability
Affects Version/s: 2.2.2, 2.3.0
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: William Zola Assignee: Jonathan Reams
Resolution: Done Votes: 14
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-9041 proactively detect broken connections... Closed
Sprint: Platforms 2017-01-23
Participants:

 Description   

When a low-level socket operation fails, the stack trace will only contain SOCKET_ERROR, RECV_ERROR or SEND_ERROR. Instead, the server should print out (at least) the errno from the underlying error, and ideally the error text corresponding to the errno.



 Comments   
Comment by Jonathan Reams [ 29/Nov/16 ]

I just checked and by default we do log at log level zero by default in all the places I could find for the use of Socket. I'm going to close this as gone away.

Comment by Githook User [ 04/Dec/13 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-7743: add port number to error message
Branch: master
https://github.com/mongodb/mongo/commit/2b213f59b9c2734703d3264c3dc3be960a82c1e8

Comment by auto [ 02/Oct/13 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-7743: add low-level socket error info to BackgroundJob
Branch: master
https://github.com/mongodb/mongo/commit/bc1bcd19d3ad22ce64f2574a2ea7f69842d8c6b9

Comment by auto [ 27/Sep/13 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: Revert "SERVER-7743: add low-level socket error info to BackgroundJob"

This reverts commit 86241d5da584018ef9bcfa779c1cc47459f2d155.
Branch: master
https://github.com/mongodb/mongo/commit/0c134de2923a858298d8f38db62480a901ba4f39

Comment by auto [ 26/Sep/13 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-7743: add low-level socket error info to BackgroundJob
Branch: master
https://github.com/mongodb/mongo/commit/86241d5da584018ef9bcfa779c1cc47459f2d155

Generated at Thu Feb 08 03:15:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.