<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:25:21 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-11269] Assertion failure is stopping mongorestore</title>
                <link>https://jira.mongodb.org/browse/SERVER-11269</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When I&apos;m trying to restore DB backup, I&apos;m getting assertion failure message. Backup has been made by mongobackup ver. 2.4.4 (in production env) and I&apos;ve tried to restore both using 2.4.4 and 2.4.6. In all cases I&apos;m getting following error messages, after which mongorestore stops working (flags: --journal --directoryperdb --dbpath):&lt;/p&gt;

&lt;p&gt;MongoDB 2.4.4:&lt;br/&gt;
Fri Oct 18 10:21:15.841 &lt;span class=&quot;error&quot;&gt;&amp;#91;tools&amp;#93;&lt;/span&gt;   Assertion failure amt == (size_t)( size - 4 ) src/mongo/tools/tool.cpp 508&lt;br/&gt;
0xdd7561 0xd99ebd 0xd8f56a 0x6e3606 0x6e2a5b 0x6e2a5b 0x6e6d6c 0xd8e278 0xd93475 0x6cbf77 0x7f1c41aaed85 0x6cbde9 &lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xdd7561&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN5mongo12verifyFailedEPKcS1_j+0xfd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd99ebd&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN5mongo8BSONTool11processFileERKN5boost11filesystem34pathE+0x78a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd8f56a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN7Restore9drillDownEN5boost11filesystem34pathEbbbb+0xf36) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6e3606&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN7Restore9drillDownEN5boost11filesystem34pathEbbbb+0x38b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6e2a5b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN7Restore9drillDownEN5boost11filesystem34pathEbbbb+0x38b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6e2a5b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN7Restore5doRunEv+0xc7c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6e6d6c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN5mongo8BSONTool3runEv+0x458) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd8e278&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN5mongo4Tool4mainEiPPc+0x13d5) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd93475&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(main+0x37) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6cbf77&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(__libc_start_main+0xf5) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f1c41aaed85&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(__gxx_personality_v0+0x459) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6cbde9&amp;#93;&lt;/span&gt;&lt;br/&gt;
assertion: 0 assertion src/mongo/tools/tool.cpp:508&lt;/p&gt;

&lt;p&gt;MongoDB 2.4.6:&lt;br/&gt;
Fri Oct 18 11:16:18.912 &lt;span class=&quot;error&quot;&gt;&amp;#91;tools&amp;#93;&lt;/span&gt;   Assertion failure amt == (size_t)( size - 4 ) src/mongo/tools/tool.cpp 508&lt;br/&gt;
0xde30f1 0xda58ed 0xd9d71a 0x6e4816 0x6e3c6b 0x6e3c6b 0x6e7f7c 0xd99cc8 0xd9fa5e 0x6cd187 0x7f7a00fe6d85 0x6ccff9 &lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xde30f1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN5mongo12verifyFailedEPKcS1_j+0xfd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xda58ed&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN5mongo8BSONTool11processFileERKN5boost11filesystem34pathE+0x78a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd9d71a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN7Restore9drillDownEN5boost11filesystem34pathEbbbb+0xf36) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6e4816&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN7Restore9drillDownEN5boost11filesystem34pathEbbbb+0x38b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6e3c6b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN7Restore9drillDownEN5boost11filesystem34pathEbbbb+0x38b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6e3c6b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN7Restore5doRunEv+0xc7c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6e7f7c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN5mongo8BSONTool3runEv+0x458) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd99cc8&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(_ZN5mongo4Tool4mainEiPPc+0x13de) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd9fa5e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(main+0x37) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6cd187&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(__libc_start_main+0xf5) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f7a00fe6d85&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/pawel/bin/mongo/bin/mongorestore(__gxx_personality_v0+0x461) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6ccff9&amp;#93;&lt;/span&gt;&lt;br/&gt;
assertion: 0 assertion src/mongo/tools/tool.cpp:508&lt;/p&gt;</description>
                <environment>Linux 64-bit.&lt;br/&gt;
Backuped @ Debian Squeeze&lt;br/&gt;
Trying to restore @ Slackware 14</environment>
        <key id="94792">SERVER-11269</key>
            <summary>Assertion failure is stopping mongorestore</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="sverch">Shaun Verch</assignee>
                                    <reporter username="pawelsmolinski">Pawe? Smoli?ski</reporter>
                        <labels>
                            <label>crash</label>
                    </labels>
                <created>Fri, 18 Oct 2013 09:33:09 +0000</created>
                <updated>Wed, 10 Dec 2014 23:10:19 +0000</updated>
                            <resolved>Tue, 22 Oct 2013 03:56:34 +0000</resolved>
                                    <version>debugging with submitter</version>
                                                    <component>Tools</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="764036" author="rajesh.mandot@verifone.com" created="Fri, 14 Nov 2014 00:58:27 +0000"  >&lt;p&gt;I am getting the same error while restoring the dump with noobjcheck option for one of the collection. What was the resolution? Is the backup file corrupted? Can this file be checked somehow - if its corrupted?&lt;/p&gt;</comment>
                            <comment id="444370" author="dan@10gen.com" created="Tue, 22 Oct 2013 03:56:34 +0000"  >&lt;p&gt;Looks as if your backups are corrupted.  If you find that is not the case, please re-open this issue.&lt;/p&gt;</comment>
                            <comment id="444272" author="sverch" created="Mon, 21 Oct 2013 22:45:13 +0000"  >&lt;p&gt;Hi Pawel,&lt;/p&gt;

&lt;p&gt;The assertion means that mongorestore found a document with a bad size field.  If you provide the following information it will help us diagnose the issue:&lt;/p&gt;

&lt;p&gt;1. Do you see this assertion when you try to restore any backup, or just one?&lt;br/&gt;
2. Can you restore specific collections?  Which collections can/can&apos;t you restore?&lt;br/&gt;
3. What is the exact command line you used to run mongorestore and mongodump?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
~Shaun Verch&lt;/p&gt;</comment>
                            <comment id="443419" author="pawelsmolinski" created="Sat, 19 Oct 2013 07:13:50 +0000"  >&lt;p&gt;OK, I&apos;ve found that it may be related to not-working mongobackup, as backup files are sth about 20-30% smaller than they should:&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 715345920 Oct 13 03:48 2013-10-13_03h30m.Sunday.tgz&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 714846208 Oct 14 03:49 2013-10-14_03h30m.Monday.tgz&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 639401984 Oct 15 03:49 2013-10-15_03h30m.Tuesday.tgz&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 661098496 Oct 16 03:51 2013-10-16_03h30m.Wednesday.tgz &lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 639504384 Oct 17 03:48 2013-10-17_03h30m.Thursday.tgz &lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 633143296 Oct 18 03:49 2013-10-18_03h30m.Friday.tgz&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 21 Oct 2013 22:35:14 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 13 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 13 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>pawelsmolinski</customfieldvalue>
            <customfieldvalue>rajesh.mandot@verifone.com</customfieldvalue>
            <customfieldvalue>sverch</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmao7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrtmg7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>86770</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hri5bb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>