<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:54:33 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-569] better invalid object debugging (WAS: 1.1.3 -&gt; 1.2.1 replica pair (slave) initial cloning fails)</title>
                <link>https://jira.mongodb.org/browse/SERVER-569</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Trying to upgrade our replica pairs to 1.2.1, i started from a fresh slave (no initial data) running with the following command line:&lt;/p&gt;

&lt;p&gt; /opt/mongodb-linux-x86_64-1.2.1/bin/mongod --dbpath=/mongo/data --nssize 160 --noauth --pairwith=production-shard1-001&lt;/p&gt;

&lt;p&gt;After a while (about 30GB cloned), the slave issue the following message:&lt;/p&gt;

&lt;p&gt;Tue Jan 26 09:38:12 Assertion: Invalid dbref/code/string/symbol size&lt;br/&gt;
skipping corrupt object from production.messages_dxxxxxxxxxxxxxxxxxx&lt;br/&gt;
Tue Jan 26 09:38:33 invalid object size: 11031214&lt;br/&gt;
Tue Jan 26 09:38:33 Assertion: Invalid BSONObj spec size&lt;br/&gt;
Tue Jan 26 09:38:33 repl: AssertionException Invalid BSONObj spec size&lt;br/&gt;
Tue Jan 26 09:38:33 repl: sleep 2sec before next pass&lt;/p&gt;

&lt;p&gt;Given the delay between the first message (38:12) and the next one (38:33), i&apos;m not even sure the object that cause the error is in this collection. I thought that 1.2.1 would report this error including the _id of the culprit and just go on ... this is not the case, strace on the mongod process shows that it is just sitting there on a wait4 call:&lt;/p&gt;

&lt;p&gt;Process 8175 attached - interrupt to quit&lt;br/&gt;
wait4(-1, &lt;br/&gt;
...&lt;/p&gt;

&lt;p&gt;As 1.1.3 doesn&apos;t have the newly introduced bsonsize() api call, how can i identify and get rid of those invalid objects in the master&apos;s database ?&lt;/p&gt;


</description>
                <environment>Linux ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 x86_64 x86_64 GNU/Linux</environment>
        <key id="11192">SERVER-569</key>
            <summary>better invalid object debugging (WAS: 1.1.3 -&gt; 1.2.1 replica pair (slave) initial cloning fails)</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="erwan">Erwan Arzur</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Jan 2010 05:28:30 +0000</created>
                <updated>Tue, 12 Jul 2016 00:30:27 +0000</updated>
                            <resolved>Tue, 26 Jan 2010 10:10:20 +0000</resolved>
                                    <version>1.2.1</version>
                                    <fixVersion>1.2.2</fixVersion>
                    <fixVersion>1.3.2</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="11990" author="eliot" created="Tue, 26 Jan 2010 15:56:16 +0000"  >&lt;p&gt;You could upgrade the master to 1.2.1 so you can use bsonsize()&lt;/p&gt;</comment>
                            <comment id="11989" author="erwan" created="Tue, 26 Jan 2010 15:04:11 +0000"  >&lt;p&gt;I agree with your latest comment, but i wonder how much time it&apos;s going to take. Let me explain.&lt;/p&gt;

&lt;p&gt;The replica pair showing the issue holds a 230 GB database. When the problem occurs, the cloning process is well under 10% complete, and it takes a few hours just to get there.&lt;/p&gt;

&lt;p&gt;Restarting the slave means restarting the cloning process from zero. With a more than probable chance to get to clone another corrupted object, which will start cloning from scratch again.&lt;/p&gt;

&lt;p&gt;This is just not practical for us.&lt;/p&gt;


</comment>
                            <comment id="11982" author="eliot" created="Tue, 26 Jan 2010 12:17:59 +0000"  >&lt;p&gt;No - that&apos;s not a bug, thats the correct behavior in our opinion.&lt;/p&gt;</comment>
                            <comment id="11981" author="erwan" created="Tue, 26 Jan 2010 12:16:29 +0000"  >&lt;p&gt;Thanks Elliot,&lt;/p&gt;

&lt;p&gt;did you fix the problem with the slave stopping cloning the database at the same time ?&lt;/p&gt;

&lt;p&gt;Erwan&lt;/p&gt;</comment>
                            <comment id="11969" author="eliot" created="Tue, 26 Jan 2010 10:10:06 +0000"  >&lt;p&gt;you&apos;ll be able to see the object id now&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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 26 Jan 2010 10:10:06 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 years, 4 weeks, 1 day 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>
                            14 years, 4 weeks, 1 day 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>erwan</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpshj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22375</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|ht0kdz:</customfieldvalue>

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