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

Encountering error Btree::insert: key too large to index when deleting a document

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.5
    • Component/s: Index Maintenance
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      We are facing the error "Btree::insert: key too large to index" when trying to delete a document, and the document is not deleted with success. I know that this error is caused by the index entry for this document exceeds index key limit, as described in the doc: https://docs.mongodb.com/manual/reference/limits/#Index-Key-Limit .

      My question is that why this document was inserted into the database without error. As the document https://docs.mongodb.com/manual/reference/limits/#Index-Key-Limit  says, inserting this document to the mongodb should be failed.  

       

            Assignee:
            nick.brewer Nick Brewer (Inactive)
            Reporter:
            kzhang@appcelerator.com Kefeng Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: