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

can't run reIndex() on collection if it contains an index key with an empty field

    • Minor Change
    • ALL

      similar to SERVER-12242

      • in 2.4 create an index like {"a..b":1}
      • upgrade node to 2.6
      • try to run db.coll.reIndex()
       m27000| 2014-01-02T17:53:43.632-0500 [conn1] CMD: reIndex test.test
       m27000| 2014-01-02T17:53:43.633-0500 [conn1] build index on: test.test properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "test.test" }
       m27000| 2014-01-02T17:53:43.634-0500 [conn1] build index done.  scanned 100 total records. 0 secs
      {
              "nIndexesWas" : 3,
              "ok" : 0,
              "errmsg" : "Index key cannot contain an empty field.",
              "code" : 67
      }
      

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: