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

Disallow createIndexes with clustered:false

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2022-04-04, Execution Team 2022-04-18

      Specifying 'clustered': false blocks an index from being created but returns IndexAlreadyExists

      db.runCommand({"createIndexes":"undefined","indexes":[{"key":{"somedata":1},"name":"s2","clustered":false,"unique":true}]})
      {
      	"numIndexesBefore" : 3,
      	"numIndexesAfter" : 3,
      	"note" : "all indexes already exist",
      	"ok" : 1
      }
      

            Assignee:
            yujin.kang@mongodb.com Yujin Kang Park
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: