[CXX-399] Process cleanup improvement Created: 06/Nov/14  Updated: 13/Nov/14  Resolved: 07/Nov/14

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

Type: Task Priority: Major - P3
Reporter: Ernie Hershey Assignee: Spencer Jackson
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

The current command:
https://github.com/mongodb/mongo-cxx-driver/blob/legacy/.mci.yml#L213

trap '${killall_mci|mongo-orchestration stop || pkill -9 mongod || pkill -9 mongos || true}' EXIT

Should probably be replaced with something like:

trap 'set +o errexit; mongo-orchestration stop ; ${mci_killall|pkill -9 mongod ; pkill -9 mongos}' EXIT

The server equivalent is here if you want to copy its logic:
https://github.com/10gen/mci/blob/3423cb0dfb392bceac4e9eecc163e6b9a4d02fb0/config_prod/project/mongodb-mongo-master.yml#L198

And the windows override of mci_killall:
https://github.com/10gen/mci/blob/3423cb0dfb392bceac4e9eecc163e6b9a4d02fb0/config_prod/distros/windows64.yml#L22



 Comments   
Comment by Githook User [ 07/Nov/14 ]

Author:

{u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}

Message: CXX-399 Improve MCI cleanup
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/22d20c72e3ff2a36d1be423609766750487c8b0c

Comment by Spencer Jackson [ 06/Nov/14 ]

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

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