[CXX-314] Default shutdown grace period should be 0, meaning forever Created: 21/Aug/14  Updated: 23/Oct/14  Resolved: 21/Aug/14

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: None
Fix Version/s: legacy-1.0.0-rc1

Type: Bug Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently, we set the default shutdown grace period to be 250ms. If however you fail to shut down cleanly in 250ms (maybe because the periodic task thread is busy, or gets descheduled), then you are at risk of crashing.

We offer the option to set a grace period so that users with more sophisticated needs about terminating the driver can take appropriate action. However, if you ignore the failed termination, as you easily will if you use the auto shutdown option, then you are likely to crash if your process begins orderly shutdown and starts destroying statics.

Instead, we should default to a 'wait forever' shutdown, and users can override if they need.



 Comments   
Comment by Githook User [ 21/Aug/14 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: CXX-314 Change default shutdown grace period to wait forever
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/7c03298fffdf6f613f93f8276c1fd6dd18f48658

Comment by Andrew Morrow (Inactive) [ 21/Aug/14 ]

https://github.com/mongodb/mongo-cxx-driver/pull/139

Generated at Wed Feb 07 21:58:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.