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

mongos claims that config db is empty on CSRS cluster

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.2.0-rc3
    • Affects Version/s: 3.2.0-rc1
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide
      var st = new ShardingTest({ verbose:0, shards: 1});
      var adminDb = st.s.getDB('admin');
      var output = adminDb.runCommand('listDatabases');
      jsTestLog(tojson(output));
      
      Show
      var st = new ShardingTest({ verbose:0, shards: 1}); var adminDb = st.s.getDB( 'admin' ); var output = adminDb.runCommand( 'listDatabases' ); jsTestLog(tojson(output));
    • Sharding C (11/20/15)

      My config db ctonains the usual expected stuff, but "show dbs" and the listDatabases commands executed via the mongos claim it is empty. On 3.0.x mongos we showed the actual size of the config db.

      [scripts] (v20151027)$ /var/lib/mongodb-mms-automation/mongodb-osx-x86_64-3.2.0-rc1/bin/mongo localhost:28017
      MongoDB shell version: 3.2.0-rc1
      connecting to: localhost:28017/test
      mongos> db.version()
      3.2.0-rc1
      mongos> show dbs
      admin          (empty)
      alphabet     0.000GB
      config         (empty)
      food         0.000GB
      randomStuff  0.001GB
      mongos> use admin
      switched to db admin
      mongos> db.runCommand({listDatabases:1})
      {
      	"databases" : [
      		{
      			"name" : "alphabet",
      			"sizeOnDisk" : 131072,
      			"empty" : false,
      			"shards" : {
      				"red_0" : 131072
      			}
      		},
      		{
      			"name" : "food",
      			"sizeOnDisk" : 503808,
      			"empty" : false,
      			"shards" : {
      				"red_0" : 356352,
      				"red_1" : 147456
      			}
      		},
      		{
      			"name" : "randomStuff",
      			"sizeOnDisk" : 1093632,
      			"empty" : false,
      			"shards" : {
      				"red_0" : 1081344,
      				"red_1" : 12288
      			}
      		},
      		{
      			"name" : "config"
      		},
      		{
      			"name" : "admin"
      		}
      	],
      	"totalSize" : 1728512,
      	"totalSizeMb" : 1,
      	"ok" : 1
      }
      
      

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            cailin.nelson@mongodb.com Cailin Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: