[SERVER-60117] Try removing `...` exception handler in ASIOSession constructor Created: 21/Sep/21  Updated: 29/Oct/23  Resolved: 10/Feb/22

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

Type: Improvement Priority: Major - P3
Reporter: Blake Oler Assignee: Daniel Morilha (Inactive)
Resolution: Fixed Votes: 0
Labels: servicearch-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes SERVER-69010 Cleanup: remove useless ASIOSession c... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2022-2-21
Participants:
Story Points: 2

 Description   

The ASIOSession constructor catches all exceptions that aren't DBException or asio::system_error and changes them to an error code 50797. At a level higher up, all DBExceptions get swallowed without action. By doing this, we're essentially hiding all exceptions that come out of trying to construct an ASIOSession.

This ticket is to try unpeeling that catch-all, and do a few Evergreen passes to see if anything breaks. If not, then we should commit the removal to master for better debuggability in the future.



 Comments   
Comment by Githook User [ 09/Feb/22 ]

Author:

{'name': 'Daniel Vitor Morilha', 'email': 'daniel.morilha@mongodb.com', 'username': 'daniel-mdb'}

Message: SERVER-60117 Remove catch-all exception handler in ASIOSession constructor
Branch: master
https://github.com/mongodb/mongo/commit/033772a16ef0bd695457c2cb7154e25c145465b3

Generated at Thu Feb 08 05:49:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.