[SERVER-12841] upgradeCheck() gives unhelpful message for _id too long to index Created: 22/Feb/14  Updated: 11/Jul/16  Resolved: 03/Mar/14

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 2.6.0-rc0
Fix Version/s: 2.6.0-rc1

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

Issue Links:
Related
related to SERVER-8391 Pre-flight upgrade tool to check for ... Closed
Operating System: ALL
Participants:

 Description   

When running upgradeCheck() among other things I got:

Document:
	{
	"_id" : "aaaaaaaaaaaaa [... clipping 1100+ chars ...] aaa",
	"foo" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
	"bar" : "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
}
	cannot be indexed by: _id_
Remove this document via the _id field

That seems... unhelpful!!!



 Comments   
Comment by Githook User [ 03/Mar/14 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-12841 upgrade checker gives better errmsg for documents with unindexable _ids
Branch: master
https://github.com/mongodb/mongo/commit/e499f7a2394c19494d55c5b68370a2e53c241778

Comment by Asya Kamsky [ 22/Feb/14 ]

Also, maybe the entire document being output is not helpful? Maybe the extra long field could be truncated? Cannot be be indexed by id <- should that be _id (as in field name)? And also maybe we should add the reason (because the value is longer than 1011 or whatever)...

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