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

RenameCollection with non-existing target DB fails with misleading message

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Storage Execution
    • ALL

    Description

      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"}
      

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: