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

Found an index like {fieldName: 0}

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • Labels:
      None
    • ALL

      I just did a mongodump and mongorestore and got an error:

      {{code}
      Failed: jerome5.Unit: error creating indexes for jerome5.Unit: createIndex error: Values in the index key pattern cannot be 0.
      code

      I checked on the source collection and found an index like:

      code
      {
      "key":

      { "f": 0.0 }

      ,
      "name": "f_0",
      "ns": "jerome5.Unit",
      "v": 1
      },
      code

      I'm not sure how long this has been there, but I suppose it doesn't actually do anything on the source database? Maybe it is assumed to be 1 if it's not -1 ?

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            niccottrell Nic Cottrell (Personal)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: