Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4254

benchRun doesn't work with authentication enabled

    XMLWordPrintable

    Details

    • Operating System:
      ALL

      Description

      mongo
      MongoDB shell version: 2.0.1
      connecting to: test
      test[19:37:37]> db.foo.count()
      Thu Nov 10 19:37:41 uncaught exception: count failed: {
      "assertion" : "unauthorized db:test lock type:-1 client:127.0.0.1",
      "assertionCode" : 10057,
      "errmsg" : "db assertion failure",
      "ok" : 0
      }
      test[19:37:41]> db.auth('spencer','password')
      1
      test[19:37:51]> db.foo.count()
      10001
      test[19:37:55]> benchRun({ops:[{op:"findOne", ns:'test' + ".$cmd", query:{dbstats:1}}], host:db.getMongo().host, parallel:2, seconds:2});
      Thu Nov 10 19:38:04 Error: invalid parameter: expected an object () (anon):1

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              spencer Spencer Brody
              Reporter:
              spencer Spencer Brody
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: