[SERVER-6723] Assertion: 10330: Element extends past end of object while restoring Created: 06/Aug/12  Updated: 15/Aug/12  Resolved: 10/Aug/12

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

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File movies.bson    
Issue Links:
Duplicate
Operating System: ALL
Participants:

 Description   

From Google Groups - https://groups.google.com/forum/?fromgroups#!topic/mongodb-user/EyU1u5pJVtE

I'm trying to restore .bson data that that I've dumped with mongodump.

mongorestore -vvvvv --db main --collection movies --objcheck --drop dump/movies.bson

And the output:

Wed Aug 01 14:42:53 creating new connection to:127.0.0.1
Wed Aug 01 14:42:53 BackgroundJob starting: ConnectBG
Wed Aug 01 14:42:53 connected connection!
connected to: 127.0.0.1
Wed Aug 01 14:42:53 drillDown: dump/movies.bson
Wed Aug 01 14:42:53 dump/movies.bson
Wed Aug 01 14:42:53      going into namespace [main.movies]
Wed Aug 01 14:42:53      dropping
Wed Aug 01 14:42:53      file size: 21145554
INVALID OBJECT - going try and pring out
size: 1132
         name : _id 7
         _id: ObjectId('4ff04fccc3f57f2d98000000')
         name : alternate_ids 3
         alternate_ids: { kinopoisk: "43732", cinemate: 2, imdb: "0166790" }
         name : cast 4
         cast: [ { name.en: "Stanislav Lyubshin" }, { name.en: "Vladimir Basov"
}, { name.en: "Oleg Yankovskiy" }, { name.en: "Juozas Budraitis" } ]
         name : countries 4
         countries: [ "su" ]
         name : directors 4
         directors: [ { name.en: "Vladimir Basov" } ]
         name : genres 4
         Wed Aug 01 14:42:53 Assertion: 10330:Element extends past end of object
 
assertion: 10330 Element extends past end of object

It looks like the object is somehow corrupted. I'm not familar with bson strucutre, is it possible to ignore this object then?

I've tried it also withoit --objcheck option, but nothing changes. As you can see, I've already dropped my collection so I can't check and dump it now.
However, my dump from like 3 weeks ago works fine.


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