-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
As discussed with Matt, implicitly created sessions can cause some baffling "Use of expired sessions is not permitted" errors (https://travis-ci.org/Automattic/mongoose/jobs/370622334) if you still have an index build in progress and you close the connection. In the interest of clean developer experience, we should consider informing developers if the expired session was implicitly created by the driver in the error message.