[SERVER-16497] Index entry too long breaks foreground index builds, even with FailIndexKeyTooLong set to false Created: 10/Dec/14  Updated: 18/Dec/14  Resolved: 12/Dec/14

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: 2.8.0-rc2
Fix Version/s: 2.8.0-rc3

Type: Bug Priority: Major - P3
Reporter: Asya Kamsky Assignee: Geert Bosch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

One way to reproduce:
Start server with setting "failIndexKeyTooLong" set to false and try to sync from a 2.6 primary which has too long keys indexed, 2.8 secondary fails with:

2014-12-09T05:56:39.090+0000 I INDEX    [rsSync] Btree::insert: key too large to index, failing db.coll.etc { : "                                                                                                                                                      ..." }
2014-12-09T05:56:39.090+0000 D -        [rsSync] User Assertion: 17280:Btree::insert: key too large to index, failing db.coll"                                                                                                                                                      ..." }
2014-12-09T05:56:39.136+0000 D STORAGE  [rsSync] db.coll.etc: clearing plan cache - collection info cache reset
2014-12-09T05:56:39.209+0000 D STORAGE  [rsSync] db.coll.etc: clearing plan cache - collection info cache reset
2014-12-09T05:56:39.295+0000 E REPL     [rsSync] 17280 Btree::insert: key too large to index, failing db.collection etc. "                                                                                                                                                      ..." }
2014-12-09T05:56:39.295+0000 E REPL     [rsSync] initial sync attempt failed, 9 attempts remaining



 Comments   
Comment by Githook User [ 11/Dec/14 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-16497: Fix minor test case nits
Branch: master
https://github.com/mongodb/mongo/commit/f2f48b749ded0c5585c798c302f6162f19336670

Comment by Githook User [ 11/Dec/14 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-16497: Allow suppressing KeyTooLong errors in foreground index build
Branch: master
https://github.com/mongodb/mongo/commit/a6ac4e68c240e99ada7dddb333bb2b5e5220c49c

Comment by Eric Milkie [ 10/Dec/14 ]

This is actually true of any foreground index build. Background index builds and individual index entry updates still honor the flag.

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