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

Documentation for index type/plugin kerfuffle.

    XMLWordPrintableJSON

Details

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

    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 (Inactive)
              PM Bot PM Bot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10 years, 12 weeks, 3 days ago