<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:04:49 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-4055] Assertion error on compacting a non existent collection</title>
                <link>https://jira.mongodb.org/browse/SERVER-4055</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In the process of upgrading to v2.0.0 i were compacting collections on one of one shard secondaries.&lt;br/&gt;
I accidentally issued a &apos;db.calendar.runCommand(&quot;compact&quot;)&apos;  on the default test database.&lt;br/&gt;
The shell changed prompt from secondary to recovering, and stood there.&lt;/p&gt;

&lt;p&gt;Looking on the logs I saw this:&lt;/p&gt;

&lt;p&gt;Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn44&amp;#93;&lt;/span&gt; replSet going into maintenance mode (0 other tasks)&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn44&amp;#93;&lt;/span&gt; replSet RECOVERING&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn44&amp;#93;&lt;/span&gt; Assertion: 13660:namespace test.calendar does not exist&lt;br/&gt;
0x587512 0xa9be43 0xa9c647 0x973b49 0x97512f 0x95d725 0x9607b4 0x87e037 0x88485c 0xa96a46 0x635dd7 0x30e920673d 0x30e8ad3f6d &lt;br/&gt;
 /opt/mongo/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x112) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x587512&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/mongo/bin/mongod(_ZN5mongo7compactERKSsRSsbRNS_14BSONObjBuilderE+0x603) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa9be43&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/mongo/bin/mongod(_ZN5mongo10CompactCmd3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x267) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa9c647&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/mongo/bin/mongod(_ZN5mongo11execCommandEPNS_7CommandERNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0x6a9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x973b49&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/mongo/bin/mongod(_ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x6ff) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x97512f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/mongo/bin/mongod(_ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x35) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x95d725&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/mongo/bin/mongod(&lt;em&gt;ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1&lt;/em&gt;+0xee4) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x9607b4&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/mongo/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x87e037&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/mongo/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x55c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x88485c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/mongo/bin/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x76) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa96a46&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/mongo/bin/mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x287) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x635dd7&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libpthread.so.0 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x30e920673d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x30e8ad3f6d&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn35&amp;#93;&lt;/span&gt; assertion 13436 not master or secondary, can&apos;t read ns:crawler4.ad query:&lt;/p&gt;
{ SITE_ID: 403064, URL_UNIQUE: &quot;11565&quot; }
&lt;p&gt;Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn35&amp;#93;&lt;/span&gt;  ntoskip:0 ntoreturn:-1&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn35&amp;#93;&lt;/span&gt; end connection 83.149.71.144:46588&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 83.149.71.144:57778 #45&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn45&amp;#93;&lt;/span&gt; assertion 13436 not master or secondary, can&apos;t read ns:crawler4.ad query:&lt;/p&gt;
{ SITE_ID: 403064, URL_UNIQUE: &quot;11821&quot; }
&lt;p&gt;Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn45&amp;#93;&lt;/span&gt;  ntoskip:0 ntoreturn:-1&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn45&amp;#93;&lt;/span&gt; end connection 83.149.71.144:57778&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28&amp;#93;&lt;/span&gt; end connection 83.149.71.144:46581&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn30&amp;#93;&lt;/span&gt; assertion 13436 not master or secondary, can&apos;t read ns:crawler4.ad query:&lt;/p&gt;
{ SITE_ID: 403064, URL_UNIQUE: &quot;11566&quot; }
&lt;p&gt;Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn30&amp;#93;&lt;/span&gt;  ntoskip:0 ntoreturn:-1&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn30&amp;#93;&lt;/span&gt; end connection 83.149.71.144:46583&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 83.149.71.144:57783 #46&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn29&amp;#93;&lt;/span&gt; assertion 13436 not master or secondary, can&apos;t read ns:crawler4.ad query:&lt;/p&gt;
{ SITE_ID: 553, URL_UNIQUE: &quot;ref/2463-052A/pr/15&quot; }
&lt;p&gt;Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn29&amp;#93;&lt;/span&gt;  ntoskip:0 ntoreturn:-1&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn34&amp;#93;&lt;/span&gt; assertion 13436 not master or secondary, can&apos;t read ns:crawler4.ad query:&lt;/p&gt;
{ SITE_ID: 595, URL_UNIQUE: &quot;VP0000003247136&quot; }
&lt;p&gt;Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn34&amp;#93;&lt;/span&gt;  ntoskip:0 ntoreturn:-1&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn31&amp;#93;&lt;/span&gt; assertion 13436 not master or secondary, can&apos;t read ns:crawler4.ad query:&lt;/p&gt;
{ SITE_ID: 1861, URL_UNIQUE: &quot;10435611&quot; }
&lt;p&gt;Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn31&amp;#93;&lt;/span&gt;  ntoskip:0 ntoreturn:-1&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn46&amp;#93;&lt;/span&gt; assertion 13436 not master or secondary, can&apos;t read ns:crawler4.ad query:&lt;/p&gt;
{ SITE_ID: 588, URL_UNIQUE: &quot;2369189&quot; }
&lt;p&gt;Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn46&amp;#93;&lt;/span&gt;  ntoskip:0 ntoreturn:-1&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn46&amp;#93;&lt;/span&gt; end connection 83.149.71.144:57783&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn31&amp;#93;&lt;/span&gt; end connection 83.149.71.144:46584&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn29&amp;#93;&lt;/span&gt; end connection 83.149.71.144:46582&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn34&amp;#93;&lt;/span&gt; end connection 83.149.71.144:46587&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn36&amp;#93;&lt;/span&gt; end connection 83.149.71.144:46589&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn27&amp;#93;&lt;/span&gt; end connection 83.149.71.144:46580&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn33&amp;#93;&lt;/span&gt; end connection 83.149.71.144:46586&lt;br/&gt;
Tue Oct 11 17:35:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn32&amp;#93;&lt;/span&gt; assertion 13436 not master or secondary, can&apos;t read ns:crawler4.ad query:{ SIT...&lt;/p&gt;

&lt;p&gt;This rendered the node unusable. &lt;br/&gt;
I re-issued the command on the correct database and everything looks like going fine (The collection is being compacted).&lt;br/&gt;
I hope the node will go back to secondary afterwards, I&apos;ll keep you posted.&lt;/p&gt;

&lt;p&gt;Doesn&apos;t look like a ugly bug, but as it leds the node on RECOVERING state, I think is bad enough.&lt;/p&gt;
</description>
                <environment>mongo 2.0.0 / 64bits on CentOS 5.5. 2 shard 3 nodes per shard. 1 delayed node per shard. 1 additional arbiter per shard</environment>
        <key id="23499">SERVER-4055</key>
            <summary>Assertion error on compacting a non existent collection</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="brandon">Brandon Diamond</assignee>
                                    <reporter username="mgbuddy@gmail.com">Marc Gr&#224;cia</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 Oct 2011 15:48:07 +0000</created>
                <updated>Mon, 11 Jul 2016 18:35:05 +0000</updated>
                            <resolved>Thu, 27 Oct 2011 21:00:01 +0000</resolved>
                                    <version>2.0.0</version>
                                                    <component>Index Maintenance</component>
                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="63179" author="auto" created="Thu, 27 Oct 2011 21:01:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4055&quot; title=&quot;Assertion error on compacting a non existent collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4055&quot;&gt;&lt;del&gt;SERVER-4055&lt;/del&gt;&lt;/a&gt;: Added validation to compact code&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1dc8aa72b68fb858989b893b03388d4312d854a3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1dc8aa72b68fb858989b893b03388d4312d854a3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="62828" author="brandon" created="Wed, 26 Oct 2011 17:14:22 +0000"  >&lt;p&gt;Good to hear. This shouldn&apos;t have a lasting impact on your node. I&apos;m reworking the code to avoid the ugly error and the switch to &quot;recovering&quot; state.&lt;/p&gt;</comment>
                            <comment id="62820" author="framegrace" created="Wed, 26 Oct 2011 16:50:22 +0000"  >&lt;p&gt;FYI:&lt;br/&gt;
After recovering the correct collection, the node went back to secondary and all worked fine.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="22039">SERVER-3792</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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>Wed, 26 Oct 2011 07:17:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 16 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>
                            12 years, 16 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>auto</customfieldvalue>
            <customfieldvalue>brandon</customfieldvalue>
            <customfieldvalue>framegrace</customfieldvalue>
            <customfieldvalue>mgbuddy@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroo9z:</customfieldvalue>

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

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

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