[SERVER-37570] Ensure catalog teardown works properly on shutdown Created: 11/Oct/18  Updated: 27/Oct/23  Resolved: 13/Nov/18

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

Type: Task Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Matthew Saltz (Inactive)
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Currently we have an invariant in the destructor of the TransactionCoordinator that it has triggered all promises waiting on it, which basically amounts to the coordinator being in a state where it has decided to commit or to abort. I think this currently might be a problem if we shut down suddenly while there are coordinators in progress. We may need to run through all the coordinators on destruction and call "tryAbort", or else this invariant could be triggered.



 Comments   
Comment by Esha Maharishi (Inactive) [ 13/Nov/18 ]

Closing as Works As Designed because as part of SERVER-36853, the invariant in the TransactionCoordinator destructor will be removed, because the catalog is also cleared on stepup.

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