<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:15:12 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-27443] Fatal assertion 18506 DuplicateKey E11000 duplicate key error dup key</title>
                <link>https://jira.mongodb.org/browse/SERVER-27443</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I hava a replSet with 3 servers, there are with 300GB data, Last week, we suddenly had a power outage, when the power was restored, I restart my mongoDB successed, but when I cmd &quot;show dbs;&quot;, I remeber it said like this:&lt;br/&gt;
WiredTiger (0) &lt;span class=&quot;error&quot;&gt;&amp;#91;1481884901:569933&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;7325:0x7f77131f8c20&amp;#93;&lt;/span&gt;, &lt;a href=&quot;file:collection/3-4162965380314250895.wt&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;file:collection/3-4162965380314250895.wt&lt;/a&gt;, session.open_cursor: read checksum error &lt;span class=&quot;error&quot;&gt;&amp;#91;4096B @ 32768, 239944241 != 3341820703&amp;#93;&lt;/span&gt;&lt;br/&gt;
So I hoped &quot;mongod --repair&quot; can help me to fix it, I use the repair cmd on 3 servers........&lt;br/&gt;
Surprisingly, it failed, the screen msg like this:&lt;br/&gt;
Fatal assertion 18506 DuplicateKey E11000 duplicate key error dup key: &lt;/p&gt;
{ObjectId(&apos;xxxxxxxx&apos;)}
&lt;p&gt;How can I fix it? Please help me.   &lt;/p&gt;</description>
                <environment></environment>
        <key id="339367">SERVER-27443</key>
            <summary>Fatal assertion 18506 DuplicateKey E11000 duplicate key error dup key</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="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="davy">davy</reporter>
                        <labels>
                    </labels>
                <created>Fri, 16 Dec 2016 11:02:04 +0000</created>
                <updated>Mon, 9 Oct 2017 17:01:57 +0000</updated>
                            <resolved>Fri, 15 Sep 2017 04:35:33 +0000</resolved>
                                    <version>3.0.0</version>
                                                    <component>WiredTiger</component>
                                        <votes>1</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1673555" author="thomas.schubert" created="Fri, 15 Sep 2017 04:35:33 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=davy&quot; class=&quot;user-hover&quot; rel=&quot;davy&quot;&gt;davy&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I&apos;ve completed our investigation. Unfortunately, from the data provided, we have not be able to conclusively determine the root cause of this issue. That said, from the evidence I&apos;ve examined, I suspect that this issue originated in the storage layer beneath MongoDB/WiredTiger.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Kelsey&lt;/p&gt;</comment>
                            <comment id="1578649" author="thomas.schubert" created="Wed, 24 May 2017 08:52:51 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=davy&quot; class=&quot;user-hover&quot; rel=&quot;davy&quot;&gt;davy&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Sorry for letting this reply slip through the cracks. Unfortunately, a preliminary analysis did not reveal the root cause of this issue. We intend to do a thorough manual inspection of the bits in these files, however, this takes a significant amount of time and has to be scheduled against other work.&lt;/p&gt;

&lt;p&gt;If you encounter this issue again, please let us know so we can reprioritize this investigation.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1463751" author="davy" created="Thu, 22 Dec 2016 02:58:09 +0000"  >&lt;p&gt;Hi Thomas, Is there too much difficulty?  please tell me&#12290; &lt;br/&gt;
I have a full dump at 2016-11-25, If it is difficulty,  Could I restore this dump at a new dbpath  at the same time? Some work is waiting to use mongoDB.&lt;/p&gt;</comment>
                            <comment id="1460916" author="thomas.schubert" created="Mon, 19 Dec 2016 11:47:00 +0000"  >&lt;p&gt;Thanks for the upload. We have the files included in &lt;tt&gt;mongolog.tar&lt;/tt&gt;, and are investigating.&lt;/p&gt;</comment>
                            <comment id="1460749" author="davy" created="Mon, 19 Dec 2016 03:14:25 +0000"  >&lt;p&gt;Sorry Thomas, I didnot reply to you Immediately.&lt;br/&gt;
I create a tarball include some files, filename like &quot;dbdir&quot; is the out of ls -al of the database dir, but there is no WiredTigerLog.&amp;lt;long number&amp;gt;, Is that because of my start mongo cmd ? startmongocmd also in the tarball.&lt;/p&gt;

&lt;p&gt;I click your portal, but I am not sure it successed...&lt;/p&gt;

&lt;p&gt;for you question:&lt;br/&gt;
all of the nodes in my replica set was affected. (3 servers)&lt;br/&gt;
we just use mongodb3.0.0, no early version, and  never update. uodate need  Approval, so troublesome......&lt;/p&gt;

&lt;p&gt;dbdir nearly 300GB, upload it  Not realistic&lt;/p&gt;</comment>
                            <comment id="1459915" author="thomas.schubert" created="Fri, 16 Dec 2016 16:21:57 +0000"  >&lt;p&gt;Would you please also clarify which versions, if any, of MongoDB you were running prior to MongoDB 3.0.0 in this replica set?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1459896" author="thomas.schubert" created="Fri, 16 Dec 2016 16:10:44 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=davy&quot; class=&quot;user-hover&quot; rel=&quot;davy&quot;&gt;davy&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for reporting this issue. Would you please clarify whether this issue is affecting a single node or all of the nodes in your replica set?&lt;/p&gt;

&lt;p&gt;If this issue is only affecting a single node, I would recommend creating a backup of your current $dbpath, and then performing an initial sync.&lt;/p&gt;

&lt;p&gt;If this issue is affects all of the nodes, please be aware that complete data recovery may not be possible. Please upgrade to 3.0.14, which includes many bug fixes and improvements. After upgrading please rerun the &lt;tt&gt;--repair&lt;/tt&gt; operation, provide the output. Additional diagnostic information should be logged (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17532&quot; title=&quot;Duplicate key error message does not contain index name anymore&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17532&quot;&gt;&lt;del&gt;SERVER-17532&lt;/del&gt;&lt;/a&gt;), which will help our investigation.&lt;/p&gt;

&lt;p&gt;In either case, we would like to examine some of your data files to get a better understanding of what type of corruption occurred during the power failure. So we can begin our investigation, would you please upload the following?&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;the complete logs of the affected mongod&lt;/li&gt;
	&lt;li&gt;tarball of the WiredTiger files (_mdb_catalog.wt, sizeStorer.wt, WiredTiger* files)&lt;/li&gt;
	&lt;li&gt;collection-3-4162965380314250895.wt&lt;/li&gt;
	&lt;li&gt;output of ls -l of the database directory&lt;/li&gt;
	&lt;li&gt;WiredTigerLog.&amp;lt;long number&amp;gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;I&apos;ve created a secure upload portal for you to use &lt;a href=&quot;https://10gen-httpsupload.s3.amazonaws.com/upload_forms/d3ab846c-50ec-4ef3-b925-2075b5f446cd.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;. Files uploaded to this portal are only visible to MongoDB employees and are routinely deleted after some time.&lt;/p&gt;

&lt;p&gt;Please note that as our investigation continues, we may need to take a look at additional files. If you are able, please backup the current $dbpath in a safe location, before proceeding with additional recovery steps.&lt;/p&gt;

&lt;p&gt;Thank you for your help,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="146203" name="1617401803734vsi.png" size="181327" author="davy" created="Fri, 16 Dec 2016 11:00:33 +0000"/>
                            <attachment id="146204" name="2.png" size="113984" author="davy" created="Fri, 16 Dec 2016 11:03:56 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 16 Dec 2016 16:10:44 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 21 weeks, 5 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>backlog-server-pm</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 21 weeks, 5 days ago
                        </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>davy</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjoin:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;&lt;img src=&quot;https://jira.mongodb.org/images/icons/attach/noimage.png&quot; imagetext=&quot;attachment-name.jpg|thumbnail&quot; align=&quot;absmiddle&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;</customfieldvalue>

                        </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>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

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

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