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

mongos returns error code 60 (database not found) when createIndexes is executed immediately after dropDatabase

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.1.4
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Hide
      mongos> db.dropDatabase()
      { "dropped" : "JavaDriverTest", "ok" : 1 }
      mongos> db.test.createIndex({x : 1})
      { "code" : 60, "ok" : 0, "errmsg" : "database JavaDriverTest not found" }
      
      Show
      mongos> db.dropDatabase() { "dropped" : "JavaDriverTest" , "ok" : 1 } mongos> db.test.createIndex({x : 1}) { "code" : 60, "ok" : 0, "errmsg" : "database JavaDriverTest not found" }

      After executing a dropDatabase command against a mongos server, a subsequent call to createIndexes in the dropped database fails with error code 60.

      This does not occur in 2.4, 2.6, or 3.0.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: