[SERVER-27413] Failed to insert values into an object field Created: 13/Dec/16  Updated: 14/Dec/16  Resolved: 14/Dec/16

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.2.10
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Bruno Lima Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Captura de Tela 2016-12-13 às 19.32.48.png     PNG File Captura de Tela 2016-12-13 às 19.33.10.png    
Participants:

 Description   

When I insert objects into a list in an object field of a document, I get error message:

Database error

Write failed with error code 17280 and error message 'WiredTigerIndex :: insert: key too large to index

What stands out is that the error only occurs with fields named 'aac'. Other object fields (in the images, the fields 'test', 'filters', 'aacc') allow insertion. I'm inserting dictionaries into lists that are in the object field.
If you rename one of the fields to 'aac', the error occurs.



 Comments   
Comment by Kelsey Schubert [ 14/Dec/16 ]

Hi setsuna_bcl,

This error indicates that in order to successfully insert this document, MongoDB would have to create a key in one of your indexes that is larger than 1024 bytes. In this case the error message indicates that it would be 1880 bytes long. I would recommend either dropping the index, or modifying your schema.

Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-users group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group.

Kind regards,
Thomas

Generated at Thu Feb 08 04:15:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.