<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:54:18 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-496] ASSERT failure BtreeBucket</title>
                <link>https://jira.mongodb.org/browse/SERVER-496</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We killed mongodb and the error stopped.  So far it looks like no data corruption.  And it looks like the master-slave replication stayed sane.  I&apos;ve marked this as priority:minor because I don&apos;t expect to run this script again.  But as a mongod server failure, you might set a higher priority.&lt;/p&gt;

&lt;p&gt;I ran a cleanup script to fix bad data caused by previous bugs in our software.  The script queried from a large collection (url) on our slave, then started updating records on our master.  We we&apos;re updating using a key.  The script got killed and was restarted.  As far as I can tell, the original script was dead, but based on the symptoms here, I&apos;ll &lt;b&gt;guess&lt;/b&gt; that we had two versions of this script running, and it was the &quot;killed&quot; script that was causing these problems.  (That&apos;s the only explanation I have for these updates showing up in our log after the script was apparently done).&lt;/p&gt;

&lt;p&gt;The script was basically running this update (I tried to translate from php to json, so there may be syntax errors below, hopefully you get the idea).  We ran this on about 10,000 scan_id&apos;s, each matching many records:.&lt;/p&gt;

&lt;p&gt;mongo&amp;gt; db.url.update(&lt;/p&gt;
{scan_id&apos; : 12345}
&lt;p&gt;, {&apos;$set&apos; : {&apos;scan&apos;:&lt;/p&gt;
{client_id:9876, active:0, status:0}
&lt;p&gt;}}, &lt;/p&gt;
{multiple:true}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;The collection is big:&lt;/p&gt;

&lt;p&gt;mongo&amp;gt; db.url.stats()&lt;br/&gt;
{&lt;br/&gt;
         &quot;ns&quot; : &quot;scan_stats.url&quot;,&lt;br/&gt;
         &quot;count&quot; : 45004170,&lt;br/&gt;
         &quot;size&quot; : 9725083024,&lt;br/&gt;
         &quot;storageSize&quot; : 10536955808,&lt;br/&gt;
         &quot;nindexes&quot; : 7,&lt;br/&gt;
         &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;And this is what we saw in our logs:&lt;/p&gt;

&lt;p&gt;Fri Dec 18 18:41:23 connection accepted from 192.168.1.200:39880 #2348670&lt;br/&gt;
ASSERT failure BtreeBucket::advance, caller: BtreeCursor::advance&lt;br/&gt;
  thisLoc: 8:78557190&lt;br/&gt;
  keyOfs: 79 n:79 direction: 1&lt;br/&gt;
  Bucket info:&lt;br/&gt;
    n: 79&lt;br/&gt;
    parent: c:36cd4de0&lt;br/&gt;
    nextChild: c:36cd4de0&lt;br/&gt;
    Size: 8192 flags:0&lt;br/&gt;
    emptySize: 5027 topSize: 1703&lt;/p&gt;

&lt;p&gt;Fri Dec 18 18:41:23  scan_stats.url Assertion failure false db/btree.cpp 713&lt;br/&gt;
0x463de6 0x46bc81 0x4bf54e 0x4e7ee1 0x4b6d87 0x53afea 0x53e401 0x59b5c5 0x5a7dc0 0x30aba064a7 0x30ab2d3c2d&lt;br/&gt;
 /usr/local/mongodb/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x463de6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/local/mongodb/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x46bc81&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/local/mongodb/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4bf54e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/local/mongodb/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4e7ee1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/local/mongodb/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4b6d87&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/local/mongodb/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x53afea&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/local/mongodb/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x53e401&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/local/mongodb/bin/mongod(_ZN5mongo10connThreadEv+0x225) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x59b5c5&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/local/mongodb/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5a7dc0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libpthread.so.0 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x30aba064a7&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x30ab2d3c2d&amp;#93;&lt;/span&gt;&lt;br/&gt;
Fri Dec 18 18:41:16 update scan_stats.url  query: &lt;/p&gt;
{ scan_id: 3667 }
&lt;p&gt; exception assertion db/btree.cpp:713 6453ms&lt;/p&gt;</description>
                <environment>unix with mongo master/slave, this happened on the master</environment>
        <key id="11021">SERVER-496</key>
            <summary>ASSERT failure BtreeBucket</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="5">Cannot Reproduce</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="douggreen">Doug Green</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 Dec 2009 14:20:04 +0000</created>
                <updated>Mon, 17 May 2010 10:58:21 +0000</updated>
                            <resolved>Mon, 17 May 2010 10:58:21 +0000</resolved>
                                    <version>1.1.3</version>
                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="14288" author="eliot" created="Mon, 17 May 2010 10:58:21 +0000"  >&lt;p&gt;Can&apos;t reproduce at some point, lots of fixes since 1.1.3&lt;/p&gt;</comment>
                            <comment id="11416" author="douggreen" created="Fri, 18 Dec 2009 15:09:22 +0000"  >&lt;p&gt;log file starting from about an hour before problem, up until the reboot&lt;/p&gt;</comment>
                            <comment id="11414" author="douggreen" created="Fri, 18 Dec 2009 14:21:15 +0000"  >&lt;p&gt;I don&apos;t know how long these pastie&apos;s stay around, but here are the pastie details I posted in IRC:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://pastie.org/749055&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://pastie.org/749055&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://pastie.org/749085&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://pastie.org/749085&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10106" name="SERVER-496.log.gz" size="324356" author="douggreen" created="Fri, 18 Dec 2009 15:09:22 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 17 May 2010 10:58:21 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 40 weeks, 2 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 40 weeks, 2 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>douggreen</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrptj3:</customfieldvalue>

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

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

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