[SERVER-12834] Create flag to allow mongod to ignore "index too long" errors Created: 21/Feb/14  Updated: 18/Jul/17  Resolved: 24/Feb/14

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: 2.5.4
Fix Version/s: 2.6.0-rc1

Type: New Feature Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DOCS-2795 document failIndexKeyTooLong Closed
Duplicate
is duplicated by SERVER-30188 Index option to skip keys that are to... Closed
Related
related to SERVER-12982 Could not restore backup data due to ... Closed
related to SERVER-13404 2.6 secondaries abort when replicated... Closed
is related to SERVER-3372 Allow indexing fields of arbitrary le... Closed
is related to SERVER-5290 fail to insert docs with fields too l... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 24/Feb/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-12834: failIndexKeyTooLong option to ignore "index too long" errors
Branch: master
https://github.com/mongodb/mongo/commit/64d61703a6ef9986608861cd5614ae2c0bf05cf4

Generated at Thu Feb 08 03:29:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.