Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-603

mongorestore assiertiom failure in tools.cpp 508

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • mongorestore
    • None

    Description

      I'm used some migration script:

              mongodump -d Auto -h archive.in.company.ru -port 27023 -c $COLLECTION -o /tmp/tar/
              mongorestore -d $BASE -h $HOST -port $PORT --drop -c $COLLECTION /tmp/tar/Auto/$COLLECTION.bson

      connected to: archive.in.company.ru:27023
      Thu Jan 29 09:35:26.748 DATABASE: Auto	 to 	/tmp/tar/Auto
      Thu Jan 29 09:35:26.763 	Auto.offers to /tmp/tar/Auto/offers.bson
      Thu Jan 29 09:35:30.017 		Collection File Writing Progress: 11900/217344	5%	(objects)
      Thu Jan 29 09:35:33.050 		Collection File Writing Progress: 37500/217344	17%	(objects)
      Thu Jan 29 09:35:36.042 		Collection File Writing Progress: 63900/217344	29%	(objects)
      Thu Jan 29 09:35:39.555 		Collection File Writing Progress: 88600/217344	40%	(objects)
      Thu Jan 29 09:35:42.056 		Collection File Writing Progress: 110700/217344	50%	(objects)
      Thu Jan 29 09:35:45.055 		Collection File Writing Progress: 137600/217344	63%	(objects)
      Thu Jan 29 09:35:48.059 		Collection File Writing Progress: 165600/217344	76%	(objects)
      Thu Jan 29 09:35:51.027 		Collection File Writing Progress: 187800/217344	86%	(objects)
      Thu Jan 29 09:35:54.593 		Collection File Writing Progress: 216100/217344	99%	(objects)
      Thu Jan 29 09:35:54.614 		 217344 objects
      Thu Jan 29 09:35:54.614 	Metadata for Auto.offers to /tmp/tar/Auto/offers.metadata.json
       
      #mongorestore:
      connected to: company.ru.a.d:27017
      Thu Jan 29 09:35:54.637 /tmp/tar/Auto/offers.bson
      Thu Jan 29 09:35:54.638 	going into namespace [Auto_EkDev.offers]
      Thu Jan 29 09:35:54.638 	 dropping
      Thu Jan 29 09:35:57.259 		Progress: 5992718/1592903959	0%	(bytes)
      Thu Jan 29 09:36:00.007 		Progress: 14039451/1592903959	0%	(bytes)
      Thu Jan 29 09:36:03.075 		Progress: 22074661/1592903959	1%	(bytes)
      Thu Jan 29 09:36:06.103 		Progress: 29516203/1592903959	1%	(bytes)
      Thu Jan 29 09:36:09.211 		Progress: 34085186/1592903959	2%	(bytes)
      Thu Jan 29 09:36:12.089 		Progress: 39383510/1592903959	2%	(bytes)
      Thu Jan 29 09:36:15.115 		Progress: 45041507/1592903959	2%	(bytes)
      Thu Jan 29 09:36:18.113 		Progress: 50708737/1592903959	3%	(bytes)
      Thu Jan 29 09:36:21.185 		Progress: 56734252/1592903959	3%	(bytes)
      Thu Jan 29 09:36:23.572   Assertion failure amt == (size_t)( size - 4 ) src/mongo/tools/tool.cpp 508
      0x97c876 0x941980 0x93d8c0 0x58b8fe 0x58dbc5 0x93e633 0x57be70 0x56752f 0x7f96e711aec5 0x57f59c 
       mongorestore(_ZN5mongo15printStackTraceERSo+0x26) [0x97c876]
       mongorestore(_ZN5mongo12verifyFailedEPKcS1_j+0xc0) [0x941980]
       mongorestore(_ZN5mongo8BSONTool11processFileERKN5boost10filesystem4pathE+0x820) [0x93d8c0]
       mongorestore(_ZN7Restore9drillDownEN5boost10filesystem4pathEbbbb+0x57e) [0x58b8fe]
       mongorestore(_ZN7Restore5doRunEv+0x735) [0x58dbc5]
       mongorestore(_ZN5mongo8BSONTool3runEv+0x183) [0x93e633]
       mongorestore(_ZN5mongo4Tool4mainEiPPc+0x7d0) [0x57be70]
       mongorestore(main+0x2f) [0x56752f]
       /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f96e711aec5]
       mongorestore() [0x57f59c]
      assertion: 0 assertion src/mongo/tools/tool.cpp:508

      λ ~ mongodump --version
      mongodump version 2.4.9
      λ ~ mongorestore --version
      mongorestore version 2.4.9

      Attachments

        Activity

          People

            mikeo@mongodb.com Michael O'Brien
            e.kovetskiy Egor Kovetskiy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: