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

Create flag to allow mongod to ignore "index too long" errors

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc1
    • Affects Version/s: 2.5.4
    • Component/s: Index Maintenance
    • Labels:
      None
    • Fully Compatible

      In SERVER-5290, mongod correctly returns an error when trying to index a key over the maximum allowed length. There are plenty of workarounds for new applications (hash the value, truncate the value), but for existing applications with millions of documents, this causes major issues.

      Allowing users to relax this restriction will permit them to gradually deal with these bad index entries. They can use the upgradeCheck tool (SERVER-8391) provided in 2.6 to get an idea if this is something they need or not.

      To enable this flag starting in 2.6.0, start mongod with --setParameter failIndexKeyTooLong=0. It defaults to true.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: