-
Type: Bug
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
Issue
DevBrent has created PR #3835: fix: unhandled exceptions during close() in node-mongodb-native
During sigfault/sigint or in cases where db.close is called twice there exist race conditions within db.close that cause unhandled exceptions.
User Impact
- Preventing unhandled exceptions during sig fault/int/hup shutdowns where close may be called more than once or perhaps something else clears the topology.
Dependencies
- Possibly shell
Unknowns
- Does this relate to https://github.com/mongodb/node-mongodb-native/pull/3618
NODE-5155
Acceptance Criteria
Implementation Requirements
- Additional guards to check if the topology.close function exists before calling it.
- Extracted decrypter.close from inside topology.close's promise which was not being called when the topology didn't exist due to the unhandled exception.
Testing Requirements
- TBD
Documentation Requirements
- No
Follow Up Requirements
- None