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

renameCollection not working with sharding enabled

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.5.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Environment:
      x86_64 Linux, 2010-01-19 snapshot; sharded installation

      renameCollection() doesn't seem to work when sharding is enabled (mongodb.la.sol is our mongos instance).

      $ /pkg/packages/mongodb-linux-x86_64-2010-01-19/bin/mongo mongodb.la.sol/foo
      MongoDB shell version: 1.3.1-
      url: mongodb.la.sol/foo
      connecting to: mongodb.la.sol/foo
      type "help" for help
      > show collections
      > db.foo.insert(

      {test:true}

      )
      > db.foo.find()

      { "_id" : ObjectId("4b57a13da733b69b57f82ad1"), "test" : true }

      > db.foo.renameCollection("foo2")

      { "errmsg" : "assertion: source namespace does not exist", "ok" : 0 }

      >

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            ask Ask Bjørn Hansen
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: