Log rotate on mongos causes uncaught exception

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.2.0-rc0
    • Component/s: Sharding
    • None
    • Environment:
      mongo/mongos 2.1.3-pre build from 7/9. Windows 2008+ build running on Windows 7 with
    • Sharding
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      1) Run c:\mongo\mongodb-win32-x86_64-2008plus-2012-07-09\bin>mongod.exe --logpath c:\data\mongod.log --port 30000 to be config server
      2) Run c:\mongo\mongodb-win32-x86_64-2008plus-2012-07-09\bin>mongos.exe --configdb localhost:30000 --logpath c:\data\mongos.log
      3) Now connect mongo.exe to mongos. In the shell
      mongos> db.runCommand("logRotate")
      Mon Jul 09 22:03:40 uncaught exception: error

      { "$err" : "error creating initial database config information :: caused b y :: can't find a shard to put new db on", "code" : 10185 } If I run mongos> db.adminCommand("logRotate") { "ok" : 1 }

      Once I add a shard to the setup if I run mongos> db.runCommand("logRotate")

      { "ok" : 0, "errmsg" : "access denied - use admin db" }

      This is as expected.

            Assignee:
            [DO NOT USE] Backlog - Sharding Team
            Reporter:
            Sridhar Nanjundeswaran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: