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

Getting sporadic CR auth against MongoDB 3.0.x under heavy load

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.2.6
    • Affects Version/s: 2.2.5
    • Component/s: None
    • None

      A few times in the last couple of weeks under heavy load, we've gotten some Mongo::Auth::Unauthorized errors. Restarting our app fixes this problem. We're on Mongo 3.0.11 and all our databases have the auth scheme upgraded to use SCRAM-SHA1 auth.

      The stack trace we get shows the driver using cr, and looking at the mongoS, we can confirm that, e.g.:

      > May 30 07:10:05 iadapp2-1vz26 mongos.15426[31160]: [conn3853753] Failed to authenticate REDACTED@DATABASE with mechanism MONGODB-CR: AuthenticationFailed MONGODB-CR credentials missing in the user document

      I wonder if there is a way in which, perhaps during a fast election or something, the driver can lose track of what features the server has.

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            jonhyman Jon Hyman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: