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

Ismaster on mongos fails if no shard exists

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 3.0.7
    • Sharding
    • None
    • ALL
    • Hide

      1. bring up 1 shard
      2. bring up 1 config server.
      3. connect mongos to config server and issue ismaster command

      Show
      1. bring up 1 shard 2. bring up 1 config server. 3. connect mongos to config server and issue ismaster command

    Description

      When calling ismaster on the mongos proxy the command will fail if there is no shard with the following error. This is confirmed to happen on 3.0.x and earlier but not on 3.2.x.

      mongos> db.runCommand({ismaster:true})
      2015-11-19T14:32:20.397+0100 E QUERY    Error: error: {
      	"$err" : "error creating initial database config information :: caused by :: can't find a shard to put new db on",
      	"code" : 10185
      }
          at Error (<anonymous>)
          at DBQuery.next (src/mongo/shell/query.js:259:15)
          at DBCollection.findOne (src/mongo/shell/collection.js:189:22)
          at DB.runCommand (src/mongo/shell/db.js:58:41)
          at (shell):1:4 at src/mongo/shell/query.js:259
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            christkv Christian Amor Kvalheim
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: