Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6723

Assertion: 10330: Element extends past end of object while restoring

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Tools
    • None
    • ALL

    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.

      Attachments

        Activity

          People

            randolph@mongodb.com Randolph Tan
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: