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

Problems shutting down single node RS with auth

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.0.3
    • Component/s: None
    • Labels:
      None
    • ALL
    • Hide
      mlaunch --replicaset --nodes 1 --auth
      mongo admin -u user -p password --eval "db.shutdownServer()"
      
      Show
      mlaunch --replicaset --nodes 1 --auth mongo admin -u user -p password --eval "db.shutdownServer()"

      I started a single node replica set with auth enabled for testing. It doesn't want to shutdown claiming no electable secondaries are available:

      $ mongo admin -u user -p password --eval "db.shutdownServer()"
      MongoDB shell version: 3.0.3
      connecting to: 127.0.0.1:27017/admin
      assert failed : unexpected error: Error: shutdownServer failed: No electable secondaries caught up as of 2015-05-30T17:57:32.163+0100
      Error: assert failed : unexpected error: Error: shutdownServer failed: No electable secondaries caught up as of 2015-05-30T17:57:32.163+0100
          at Error (<anonymous>)
          at doassert (src/mongo/shell/assert.js:11:14)
          at assert (src/mongo/shell/assert.js:20:5)
          at DB.shutdownServer (src/mongo/shell/db.js:212:9)
          at (shell eval):1:4
      2015-05-30T17:57:32.166+0100 E QUERY    Error: assert failed : unexpected error: Error: shutdownServer failed: No electable secondaries caught up as of 2015-05-30T17:57:32.163+0100
          at Error (<anonymous>)
          at doassert (src/mongo/shell/assert.js:11:14)
          at assert (src/mongo/shell/assert.js:20:5)
          at DB.shutdownServer (src/mongo/shell/db.js:212:9)
          at (shell eval):1:4 at src/mongo/shell/assert.js:13
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            ronan.bohan@mongodb.com Ronan Bohan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: