Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-582

com.mongodb.DB.authenticate fails often when invoked from multiple threads

      com.mongodb.DB.authenticate(username, password) fails often when invoked from multiple threads. Mongod console logs "auth: bad nonce received or getnonce not called. could be a driver bug or a security attack" whenever authentication fails.

      Expected result:
      authenticate method should return consistent results.

      Steps to reproduce:
      import https://gist.github.com/2882362 to your workspace and run or download the attached sample project, import it to your favourite IDE and run.

      Additional information:
      http://forum.springsource.org/showthread.php?127153-CannotGetMongoDbConnectionException-in-a-multithreaded-environment

            Assignee:
            bryan.reinero Bryan Reinero
            Reporter:
            innar.made Innar Made
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: