<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:41:14 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-35856] Initial sync failed again and again due to unique index conflict</title>
                <link>https://jira.mongodb.org/browse/SERVER-35856</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi,&#160;&lt;/p&gt;

&lt;p&gt;I encountered a problem when initial sync failed due to unique index conflict, and it can not be recovered, the error messages are as below:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;2018-06-28T17:53:32.046+0800 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Replaying stored operations from { ts: Timestamp 1530177067000|2, t: 6 } (exclusive) to { ts: Timestamp 1530177100000|62, t: 7 } (inclusive).&lt;br/&gt;
2018-06-28T17:53:32.047+0800 F STORAGE &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Unique index cursor seeing multiple records for key { : &quot;423925:333C49:2397ED:e000&quot;, : &quot;com.allfootballapp.news&quot; }&lt;br/&gt;
2018-06-28T17:53:32.047+0800 I - &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Fatal Assertion 28608 at src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp 974&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Please help!&lt;/p&gt;</description>
                <environment></environment>
        <key id="565029">SERVER-35856</key>
            <summary>Initial sync failed again and again due to unique index conflict</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="eric.sedor@mongodb.com">Eric Sedor</assignee>
                                    <reporter username="zhcn381">CenZheng</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Jun 2018 10:56:37 +0000</created>
                <updated>Thu, 5 Dec 2019 16:58:19 +0000</updated>
                            <resolved>Thu, 7 Nov 2019 17:48:03 +0000</resolved>
                                    <version>3.4.6</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>13</watches>
                                                                                                                <comments>
                            <comment id="2522748" author="eric.sedor" created="Thu, 7 Nov 2019 17:47:39 +0000"  >&lt;p&gt;Understood &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=zhcn381&quot; class=&quot;user-hover&quot; rel=&quot;zhcn381&quot;&gt;zhcn381&lt;/a&gt;, I will close this for now but feel free to comment again or open a new ticket if this reoccurs!&lt;/p&gt;</comment>
                            <comment id="2521879" author="zhcn381" created="Thu, 7 Nov 2019 02:09:21 +0000"  >&lt;p&gt;Hi, Eric,&lt;/p&gt;

&lt;p&gt;Thanks for paying attention to this old issue. As you can seeing from the attached mongod.log, it happened during a secondary initial sync, not a mongorestore attemp. As long time has passed, I am not able to provide more things. I&apos;ll let you know if this issue happens again.&lt;/p&gt;</comment>
                            <comment id="2521849" author="eric.sedor" created="Thu, 7 Nov 2019 01:25:46 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=zhcn381&quot; class=&quot;user-hover&quot; rel=&quot;zhcn381&quot;&gt;zhcn381&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Is this issue happening during a mongorestore attempt? That would possibly suggest &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12508&quot; title=&quot;Add Replica Set Restore Mode (for point-in-time)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12508&quot;&gt;&lt;del&gt;SERVER-12508&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If not, can you let us know if you are still seeing this issue on 3.4.11, and provide a fresh copy of:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;The output of rs.conf()&lt;/li&gt;
	&lt;li&gt;A list of collections and indexes in your primary&lt;/li&gt;
	&lt;li&gt;The full logs of the node that you&apos;re trying to initial sync, from startup until the crash above&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Note that we we would still like to see a list of collections and indexes from the Primary, because the attached &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/190960/190960_mongod.log&quot; title=&quot;mongod.log attached to SERVER-35856&quot;&gt;mongod.log&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; isn&apos;t clearly showing what index build is failing. You can upload these files to this &lt;a href=&quot;https://10gen-httpsupload.s3.amazonaws.com/upload_forms/6a8e58d3-c798-4d4c-a4ed-cdbaa3b61b19.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;secure upload portal&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Gratefully,&lt;br/&gt;
Eric&lt;/p&gt;</comment>
                            <comment id="1936274" author="zhcn381" created="Mon, 2 Jul 2018 09:52:40 +0000"  >&lt;p&gt;Hi Ramon,&lt;/p&gt;

&lt;p&gt;I have provided the rs.conf() and the full logs(collection and index info can be found during the initial sync procedure in the log). I think maybe I&apos;m hitting on&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12508&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-12508&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="1933570" author="ramon.fernandez" created="Thu, 28 Jun 2018 13:19:39 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=zhcn381&quot; class=&quot;user-hover&quot; rel=&quot;zhcn381&quot;&gt;zhcn381&lt;/a&gt;, we&apos;d like to us for some information so we can diagnose this problem further. Can you please provide:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The output of &lt;tt&gt;rs.conf()&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;A list of collections and indexes in your primary&lt;/li&gt;
	&lt;li&gt;The full logs of the node that you&apos;re trying to initial sync, from startup until the crash above&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;We may also need to look at the oplog of the initial syncing node after it crashes. You can upload this information to JIRA or to a &lt;a href=&quot;https://10gen-httpsupload.s3.amazonaws.com/upload_forms/6a8e58d3-c798-4d4c-a4ed-cdbaa3b61b19.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;secure portal&lt;/a&gt; we&apos;ve created for this ticket.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;
</comment>
                            <comment id="1933496" author="zhcn381" created="Thu, 28 Jun 2018 11:15:58 +0000"  >&lt;p&gt;One important thing i forgot to mention is that due to the replaying stored oplog after restarted logic, it will fail and restart and fail again for endless, I think this time should just ignore the unique index conflict, since the data will be correct after all oplog have been replayed, or maybe even just perform a resync is better.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="190960" name="mongod.log" size="422115" author="zhcn381" created="Mon, 2 Jul 2018 09:46:46 +0000"/>
                            <attachment id="190860" name="rsconf.md" size="1258" author="zhcn381" created="Mon, 2 Jul 2018 09:19:33 +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>Thu, 28 Jun 2018 12:35:49 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 13 weeks, 6 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>zhcn381</customfieldvalue>
            <customfieldvalue>eric.sedor@mongodb.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu1knz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htscnb:</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_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[eric.sedor@mongodb.com]]></customfieldvalue>
    

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

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