Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-824

disconnect! when an error occurs in Collection::View::Iterable#each

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.0
    • 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"

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            gjmurakami Gary Murakami
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: