mongoid/moped — pull request #296 by jonhyman (2014-07-02 23:55:28+00:00)
Title: Inspect auth failures to see if we should actually just retry.

We got this error during a failover tonight:

> Uncaught exception in the API: #1, :user=>"REDACTED", :nonce=>"X", :key=>"Y"}
Jul 02 19:13:43 api-app-prd-iad-cld-08 production.log: @fields=nil>
Jul 02 19:13:43 api-app-prd-iad-cld-08 production.log: failed with error 10009: "exception: ReplicaSetMonitor no master found for set: 42a61b38226d9f4a3bdeef465b616eb7"
Jul 02 19:13:43 api-app-prd-iad-cld-08 production.log: See https://github.com/mongodb/mongo/blob/master/docs/errors.md