[DOCS-9522] Docs for SERVER-22234: Collection with a long key fails validation Created: 05/Dec/16  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Emily Hall Assignee: Kay Kim (Inactive)
Resolution: Won't Do Votes: 0
Labels: fuzzer-blacklist
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-22234 Collection with a long key fails vali... Closed
Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

Engineering Ticket Description:

If a long index key (greater than 1024) is inserted into a collection (when the parameter failIndexKeyTooLong is set to false), then collection validate does not take it into account and fails. This seems to have been introduced from the work in SERVER-19521.

{
	"ns" : "test.longindex",
	"nrecords" : 2,
	"nIndexes" : 1,
	"keysPerIndex" : {
		"test.longindex.$_id_" : 1
	},
	"indexDetails" : {
		"test.longindex.$_id_" : {
			"valid" : true
		}
	},
	"valid" : false,
	"errors" : [
		"number of _id index entries (1) does not match the number of documents (2)"
	],
	"advice" : "ns corrupt. See http://dochub.mongodb.org/core/data-recovery",
	"ok" : 1
}



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 07:58:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.