[SERVER-2644] Print diskloc/_id on bsondoc related assertions Created: 01/Mar/11  Updated: 06/Dec/22  Resolved: 16/Nov/16

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

Type: Improvement Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Backlog - Storage Execution Team
Resolution: Incomplete Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Participants:

 Description   

It would be good if this printed some information about the context of this document (ns, _id, diskLoc)

Assertion: 10334:Invalid BSONObj spec size: 33562804 (B4200002) first element:lias: ?type=97
0x54098e 0x4eb18c 0x71a1a2 0x6eb85a 0x6164b1 0x73a5a6 0x7423c7 0x7466db 0x74740f 0x747e57 0x5ff6aa 0x70547a 0x708ab6 0x8235ef 0x837460 0x3c822067
3d 0x3c81ad3f6d
./mongod(_ZN5mongo11msgassertedEiPKc+0x1de) [0x54098e]
./mongod(_ZN5mongo7BSONObj4initEPKcb+0x4ec) [0x4eb18c]
./mongod(_ZN5mongo7BSONObjC1EPKNS_6RecordE+0x32) [0x71a1a2]
./mongod(_ZN5mongo19CoveredIndexMatcher7matchesERKNS_7BSONObjERKNS_7DiskLocEPNS_12MatchDetailsE+0xca) [0x6eb85a]



 Comments   
Comment by Eliot Horowitz (Inactive) [ 02/Mar/11 ]

we already print the first bson element which should be _id, but the above example is too mangled.

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