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

Attempting to write to config or admin dbs while config server is down breaks authenticated clusters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: 2.0.6, 2.1.2
    • Fix Version/s: None
    • Component/s: Security, Sharding
    • Labels:
      None
    • Operating System:
      ALL

      Description

      [ ~ ] mongo
      MongoDB shell version: 2.0.4
      connecting to: test
      test[13:23:59]> use admin
      switched to db admin
      admin[13:24:3]> db.auth("admin",'password')
      1
      admin[13:24:10]> db.foo.find()
       
      // Shut down 1 config server
       
      admin[13:24:25]> db.foo.find()
      admin[13:24:44]> db.foo.insert({a:1})
      SyncClusterConnection::say prepare failed: 9001 socket exception [6] server [ubuntu:20051]  ubuntu:20051:{}
      admin[13:24:49]> db.foo.find()
      error: { "$err" : "socket exception", "code" : 9001 }
      admin[13:24:51]> use test
      switched to db test
      test[13:24:58]> db.foo.find()
      error: {
              "$err" : "could not initialize cursor across all shards because : socket exception @ replSet2/ubuntu:20011,ubuntu:20012",
              "code" : 14827
      }
      test[13:24:59]> db.printShardingStatus()
      Fri Jul  6 13:25:12 uncaught exception: error { "$err" : "socket exception", "code" : 9001 }

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: