createIndex command does not fail from the shell when the index already exists

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.0.2, 2.1.0
    • Component/s: Shell
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      db.foo.createIndex(

      {bar:1}

      ) followed by the same command in the shell does not give an error. Expect this to throw an error when using createIndex as opposed to ensureIndex.

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Sridhar Nanjundeswaran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: