[SERVER-77981] Add ability for mongo daemons to wait for debugger on startup Created: 12/Jun/23  Updated: 29/Oct/23  Resolved: 22/Jun/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Security 2023-06-26
Participants:

 Description   

Attaching a debugger to a process takes several seconds. This is longer then the time it takes to run some tests.

To add the ability to debug resmoke tests, it is helpful for mongo daemons to wait for the debugger to attach before continuing. For most tests, when they wait is opted into, the extra startup delay should impose no issues because resmoke.py/servers.js already wait for process startup today.

In the first version, this check can be done with an environment variable when a flag is specified to SConstruct. An environment variable has a benefit in that it can be checked before global initializers are called.



 Comments   
Comment by Githook User [ 21/Jun/23 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-77981 Add ability for mongo daemons to wait for debugger on startup
Branch: master
https://github.com/mongodb/mongo/commit/925992554a1f30eca39d52bdebff67c57ab9c95f

Generated at Thu Feb 08 06:37:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.