-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.0.0
-
Component/s: None
-
None
If an error occurs in Collection::View::Iterable#each, we need to rescue it so that we can disconnect, otherwise the client cannot recover and subsequent operations will just continue to fail on the bad connection. Existing errors to handle include Mongo::SocketError and Errno::ECONNREFUSED. Additional conditions that need to be raised / handled include "no master" and "No replica set member available for query with read preference matching mode"