[SERVER-38935] Capture errno before logging in baton_asio_linux Created: 10/Jan/19  Updated: 29/Oct/23  Resolved: 06/Feb/19

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: None
Fix Version/s: 4.1.8

Type: Improvement Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-38633 Fatal Assertion 50833 at src/mongo/tr... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2019-01-28, Service Arch 2019-02-11
Participants:

 Description   

In the asio baton on linux, we log with errno if we can't allocate the needed eventfd. We should capture errno before logging (so that errno isn't overwritten, before we can get it's value) to improve diagnostics



 Comments   
Comment by Githook User [ 06/Feb/19 ]

Author:

{'name': 'Jason Carey', 'email': 'jcarey@argv.me', 'username': 'hanumantmk'}

Message: SERVER-38935 Capture errno on error in eventfd

Capture errno before logging when we fail to allocate an eventfd. This
will preserve the precise error that occurred (instead of overwriting it
in logging code).
Branch: master
https://github.com/mongodb/mongo/commit/5eca4a77da863bd4e68bf4eb7c2d0c920982f8b9

Comment by Mira Carey [ 10/Jan/19 ]

See SERVER-38633 for an example of what the current log message looks like without this change

Generated at Thu Feb 08 04:50:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.