[GODRIVER-204] Eliminate internal use of panic() wherever possible Created: 23/Jan/18  Updated: 28/Oct/23  Resolved: 06/Feb/18

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 0.0.1

Type: Improvement Priority: Minor - P4
Reporter: David Golden Assignee: Samuel Rossi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to GODRIVER-198 Ensure panics are handled when runnin... Closed
related to GODRIVER-2432 Improve panic handling in background ... Closed
Epic Link: GODRIVER Alpha UX

 Description   

There are a number of internal functions that panic when hitting an unexpected situation, e.g. message_query.AddMeta.

Many of these are effectively "should never get here" sentinels, but nonetheless, these should be converted to return errors whenever possible. When not possible, we must ensure such panics are caught with deferred recover() calls.



 Comments   
Comment by Githook User [ 06/Feb/18 ]

Author:

{'email': 'saghmrossi@gmail.com', 'name': 'Saghm Rossi', 'username': 'saghm'}

Message: GODRIVER-204 Eliminate internal use of panic()

Change-Id: Iac10de6a98e1682b572f23ad76b3028a48383cc8
Branch: master
https://github.com/10gen/mongo-go-driver/commit/6b9e6df5f7f36a15d017d0c87628734733e6427b

Comment by Samuel Rossi (Inactive) [ 01/Feb/18 ]

Blocked on new BSON library being merged into driver

Generated at Thu Feb 08 08:33:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.