Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1188

Documentation for index type/plugin kerfuffle.

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • None
    • mongodb-2.4
    • Server
    • None
    • true

    Description

      Need to explain error messages that can occur when upgrading to 2.4 with invalid index types. See: SERVER-8751, et al.

      • Indexes with invalid types created <2.4 will warn on startup (including {foo:"1"}

        instead of

        {foo:1}

        and

        {foo:"text"}

        ).

      • When creating indexes of type "text" or "2dsphere" in 2.4, mongodb checks that there are no other indexes with types that were not valid in 2.2, including {foo:"1"}

        . In order to create new index type, user will have to drop offending indexes.

      • Going forward, indexes of invalid types will not be allowed to be created.
      • If you have invalid indexes and you try to reIndex(), it will drop all indexes and fail upon discovery of first invalid index.
      • Invalid indexes are treated as ascending eg., {foo:"-1"}

        will be treated like,

        {foo:1}

        . This behavior is meant as a bridge for users who accidentally created indexes with invalid types, but is not guaranteed to be true forever.

      Need to create two new dochub entries:

      Attachments

        Issue Links

          Activity

            People

              sam.kleinman Sam Kleinman (Inactive)
              dan@mongodb.com Daniel Pasette
              Jonathan Dahl Jonathan Dahl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9 years, 9 weeks, 6 days ago