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

Index entry too long breaks foreground index builds, even with FailIndexKeyTooLong set to false

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc2
    • Fix Version/s: 2.8.0-rc3
    • Component/s: Indexing
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      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

        Attachments

          Activity

            People

            Assignee:
            geert.bosch Geert Bosch
            Reporter:
            asya Asya Kamsky
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: