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

db.printShardingStatus() refuses work with "not a shard db!" message

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.0.0
    • Component/s: Shell
    • None
    • Environment:
      Linux 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
    • Sharding
    • Linux

      mongos> use admin
      switched to db admin
      mongos> db.runCommand(

      { enablesharding : "catalog_ru" }

      );

      { "ok" : 0, "errmsg" : "already enabled" }

      mongos> db.printShardingStatus();
      printShardingStatus: not a shard db!

      mongos> use config
      switched to db config
      mongos> db.databases.find();

      { "_id" : "catalog_ru", "partitioned" : true, "primary" : "shard0000" }

      mongos> db.locks.find();

      { "_id" : "balancer", "process" : "u2dev-mongo-03:27017:1316615709:1804289383", "state" : 0, "ts" : ObjectId("4e79ffe070639be433e17f71"), "when" : ISODate("2011-09-21T15:16:48.839Z"), "who" : "u2dev-mongo-03:27017:1316615709:1804289383:Balancer:846930886", "why" : "doing balance round" }

      mongos> db.shards.find();

      { "_id" : "shard0000", "host" : "192.168.9.213:27018" } { "_id" : "shard0001", "host" : "192.168.9.214:27018" } { "_id" : "shard0002", "host" : "192.168.9.215:27018" } { "_id" : "shard0003", "host" : "192.168.9.216:27018" } { "_id" : "shard0004", "host" : "192.168.9.217:27018" }

      mongos> db.collections.find();
      { "_id" : "catalog_ru.catalog_search_index", "lastmod" : ISODate("1970-01-16T05:43:38.084Z"), "dropped" : false, "key" :

      { "catalog_node_id" : 1 }

      , "unique" : false }

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            rosco Rosco
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: