<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:19:03 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-9004] mongodb crashed with E11000 duplicate key error</title>
                <link>https://jira.mongodb.org/browse/SERVER-9004</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;A hidden node in one of our replica sets crashed.  The last message in the log file was:&lt;/p&gt;

&lt;p&gt;Sun Mar 17 03:08:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;slaveTracking&amp;#93;&lt;/span&gt; update local.slaves query: &lt;/p&gt;
{ _id: ObjectId(&apos;501ad1104953cf639e791e62&apos;), host: &quot;10.29.211.199&quot;, ns: &quot;local.oplog.rs&quot; }
&lt;p&gt; update: { $set: &lt;/p&gt;
{ syncedTo: Timestamp 1363489723000|489 }
&lt;p&gt; } nscanned:1 fastmodinsert:1 keyUpdates:0 exception: E11000 duplicate key error index: local.slaves.$&lt;em&gt;id&lt;/em&gt;  dup key: { : ObjectId(&apos;501ad1104953cf639e791e62&apos;) } code:11000 locks(micros) w:107758 107ms&lt;/p&gt;

&lt;p&gt;The server restarted when I ran &quot;service mongodb start&quot;&lt;/p&gt;

&lt;p&gt;Possibly related to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8012&quot; title=&quot;multiple nodes in replica set crashed at the same time (E11000 duplicate key error index)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8012&quot;&gt;&lt;del&gt;SERVER-8012&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Ubuntu Precise&lt;br/&gt;
Linux db-events4.songza.com 2.6.32-350-ec2 #56-Ubuntu SMP Mon Oct 22 17:46:54 UTC 2012 x86_64 GNU/Linux</environment>
        <key id="68689">SERVER-9004</key>
            <summary>mongodb crashed with E11000 duplicate key error</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="roysmith">Roy Smith</reporter>
                        <labels>
                    </labels>
                <created>Sun, 17 Mar 2013 03:56:18 +0000</created>
                <updated>Mon, 18 Mar 2013 15:17:03 +0000</updated>
                            <resolved>Mon, 18 Mar 2013 15:04:45 +0000</resolved>
                                    <version>2.2.2</version>
                                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="292014" author="roysmith" created="Mon, 18 Mar 2013 15:17:03 +0000"  >&lt;p&gt;OK, cool.  Thanks for your help.&lt;/p&gt;</comment>
                            <comment id="292003" author="scotthernandez" created="Mon, 18 Mar 2013 15:04:45 +0000"  >&lt;p&gt;dup of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4473&quot; title=&quot;duplicate key error on local.slaves&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4473&quot;&gt;&lt;del&gt;SERVER-4473&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="291971" author="scotthernandez" created="Mon, 18 Mar 2013 14:22:17 +0000"  >&lt;p&gt;The issue is with how slaves are tracked for replication and this error is related to having more than one slave with the same _id (like if you cloned a machine/dbpath). This can happen for various reasons and is quickly remedied. Please drop the &quot;slaves&quot; collection from the local db and it will be recreated. This collection is a cache of information from the active members of the replica set.&lt;/p&gt;</comment>
                            <comment id="291956" author="roysmith" created="Mon, 18 Mar 2013 14:09:49 +0000"  >&lt;p&gt;Yeah, that turns out to be exactly what it was (for both crashes):&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2013-03-17 03:09:59&amp;#93;&lt;/span&gt;  Killed process 4721 (mongod)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2013-03-18 03:19:29&amp;#93;&lt;/span&gt;  Killed process 7534 (mongod)&lt;/p&gt;

&lt;p&gt;We&apos;ll reconfigure the machine to have more swap today.&lt;/p&gt;

&lt;p&gt;I&apos;m still confused about the E11000, though.  How is it possible to get a duplicate key on a hidden secondary?  The only inserts that happen on this machine are replication from the primary.  Looking over the logs, I see another example (with the same key), a couple of days ago:&lt;/p&gt;

&lt;p&gt;Sun Mar 17 03:08:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;slaveTracking&amp;#93;&lt;/span&gt; update local.slaves query: &lt;/p&gt;
{ _id: ObjectId(&apos;501ad1104953cf639e791e62&apos;), host: &quot;10.29.211.199&quot;, ns: &quot;local.oplog.rs&quot; }
&lt;p&gt; update: { $set: &lt;/p&gt;
{ syncedTo: Timestamp 1363489723000|489 }
&lt;p&gt; } nscanned:1 fastmodinsert:1 keyUpdates:0 exception: E11000 duplicate key error index: local.slaves.$&lt;em&gt;id&lt;/em&gt;  dup key: { : ObjectId(&apos;501ad1104953cf639e791e62&apos;) } code:11000 locks(micros) w:107758 107ms&lt;/p&gt;

&lt;p&gt;Fri Mar 15 07:48:01 &lt;span class=&quot;error&quot;&gt;&amp;#91;slaveTracking&amp;#93;&lt;/span&gt; update local.slaves query: &lt;/p&gt;
{ _id: ObjectId(&apos;501ad1104953cf639e791e62&apos;), host: &quot;10.29.211.199&quot;, ns: &quot;local.oplog.rs&quot; }
&lt;p&gt; update: { $set: &lt;/p&gt;
{ syncedTo: Timestamp 1363333679000|100 }
&lt;p&gt; } nscanned:1 fastmodinsert:1 keyUpdates:0 exception: E11000 duplicate key error index: local.slaves.$&lt;em&gt;id&lt;/em&gt;  dup key: { : ObjectId(&apos;501ad1104953cf639e791e62&apos;) } code:11000 locks(micros) w:107528 171ms&lt;/p&gt;</comment>
                            <comment id="291901" author="scotthernandez" created="Mon, 18 Mar 2013 12:57:56 +0000"  >&lt;p&gt;Roy, can you please check your system logs (/var/log/messages or syslog) for any mongod related messages? This sounds like the linux OOM Killer.&lt;/p&gt;</comment>
                            <comment id="291637" author="roysmith" created="Mon, 18 Mar 2013 03:27:53 +0000"  >&lt;p&gt;Things are not looking good.  The same server just crashed again.  This time, there&apos;s no mention of an E11000 in the log.  I&apos;m uploading the latest log file (under the name mongodb.log-2).&lt;/p&gt;

&lt;p&gt;I restarted the server.  It came back up and settle into state SECONDARY (as it should).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="26443">SERVER-4473</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="25107" name="mongodb.log" size="22073190" author="roysmith" created="Sun, 17 Mar 2013 03:56:18 +0000"/>
                            <attachment id="25111" name="mongodb.log-2" size="22441234" author="roysmith" created="Mon, 18 Mar 2013 03:29:13 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 18 Mar 2013 12:57:56 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 48 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>
                            10 years, 48 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_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>roysmith</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn17z:</customfieldvalue>

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

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

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