RenameCollection with non-existing target DB fails with misleading message

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When issuing the renameCollection command with a non-existing target DB, the returned error message is "target namespace exists".

      Easy way to reproduce the error: prepend whatever string to the target nss in this line of the jstests/sharding/read_write_concern_defaults_application.js test:

      command: {renameCollection: nss, to: "aaa" + nss + "2"}
      

            Assignee:
            [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: