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

renaming a collection fails in mongos if collection was created by a different mongos

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.1
    • Component/s: Sharding
    • None
    • ALL
    • Hide

      This is simple to reproduce using two shells, each connected to a different mongos.

      • first shell: db.dropDatabase()
      • second shell: db.createCollection("foo")
      • first shell: db.foo.renameCollection("bar")
      Show
      This is simple to reproduce using two shells, each connected to a different mongos. first shell: db.dropDatabase() second shell: db.createCollection("foo") first shell: db.foo.renameCollection("bar")

      The error message is:

      { 
       "code" : 13140, 
       "ok" : 0.0,
       "errmsg" : "exception: Don't recognize source or target DB" 
      }
      

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

              Created:
              Updated:
              Resolved: