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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.0.0
    • Affects Version/s: 2.0.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Gary Murakami (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: