<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:07:43 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-5040] Cloner can fail to create unique indexes on initial sync</title>
                <link>https://jira.mongodb.org/browse/SERVER-5040</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;For example, suppose the primary has a unique index on x.  The primary has a document {_id:1, x:4}, deletes this document, and {_id:10000000, x:4} is inserted.  In the meantime, a clone is happening, so the secondary clones {_id:1, x:4} before the delete happens, then {_id:10000000, x:4} at the end of the clone.  Then it tries to build a unique index on x, which fails, because there are two docs with x:4.&lt;/p&gt;</description>
                <environment></environment>
        <key id="31251">SERVER-5040</key>
            <summary>Cloner can fail to create unique indexes on initial sync</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="milkie@mongodb.com">Eric Milkie</assignee>
                                    <reporter username="kristina">Kristina Chodorow</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Feb 2012 16:48:50 +0000</created>
                <updated>Mon, 11 Jul 2016 18:32:16 +0000</updated>
                            <resolved>Fri, 18 May 2012 19:13:02 +0000</resolved>
                                                    <fixVersion>2.0.6</fixVersion>
                    <fixVersion>2.1.2</fixVersion>
                                    <component>Replication</component>
                                        <votes>2</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="162261" author="boxedice" created="Mon, 10 Sep 2012 08:05:26 +0000"  >&lt;p&gt;This bug is still present in 2.0.7.&lt;/p&gt;</comment>
                            <comment id="127895" author="milkie" created="Thu, 7 Jun 2012 13:29:46 +0000"  >&lt;p&gt;We&apos;ve since fixed this issue in a cleaner way; see the linked ticket &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5963&quot; title=&quot;exception cloning object in replset7.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5963&quot;&gt;&lt;del&gt;SERVER-5963&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="127542" author="kevin@indeed.com" created="Wed, 6 Jun 2012 23:37:13 +0000"  >&lt;p&gt;This bug affects one of my replica sets where the cloner consistently brings over a duplicate.  The set is big enough that it takes 10 hours to get through cloning and index creation until the unique index fails.  Then I restart the new node in standalone and create the unique index manually.&lt;/p&gt;

&lt;p&gt;If the additional cloning attempts hit the same problem, it sounds like a new node will take 30 hours to fail instead of 10, and might not be left in a state where I can even create the unique index manually?&lt;/p&gt;</comment>
                            <comment id="121105" author="auto" created="Fri, 18 May 2012 20:48:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;milkie&apos;, u&apos;name&apos;: u&apos;Eric Milkie&apos;, u&apos;email&apos;: u&apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5040&quot; title=&quot;Cloner can fail to create unique indexes on initial sync&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5040&quot;&gt;&lt;del&gt;SERVER-5040&lt;/del&gt;&lt;/a&gt; retry initial sync if errors occur when creating indexes&lt;/p&gt;

&lt;p&gt;If you clone a database and a document, due to an update, moves forward in memory, cloner might clone both the old and new document.&lt;br/&gt;
When this happens, creating a unique index might fail. This change restarts the clone when this happens, and will abort after 3 failed cloning attempts.&lt;br/&gt;
Branch: v2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6b0869166832d3c8f540e451e4b6bf21c1d876f8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6b0869166832d3c8f540e451e4b6bf21c1d876f8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="121056" author="auto" created="Fri, 18 May 2012 18:44:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;milkie&apos;, u&apos;name&apos;: u&apos;Eric Milkie&apos;, u&apos;email&apos;: u&apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5040&quot; title=&quot;Cloner can fail to create unique indexes on initial sync&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5040&quot;&gt;&lt;del&gt;SERVER-5040&lt;/del&gt;&lt;/a&gt; retry initial sync if errors occur when creating indexes&lt;/p&gt;

&lt;p&gt;If you clone a database and a document, due to an update, moves forward in memory, cloner might clone both the old and new document.&lt;br/&gt;
When this happens, creating a unique index might fail. This change restarts the clone when this happens, and will abort after 3 failed cloning attempts.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fdc9fead639e96af96a0ed33d67576043fa7bb6c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fdc9fead639e96af96a0ed33d67576043fa7bb6c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="121055" author="auto" created="Fri, 18 May 2012 18:44:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;milkie&apos;, u&apos;name&apos;: u&apos;Eric Milkie&apos;, u&apos;email&apos;: u&apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5040&quot; title=&quot;Cloner can fail to create unique indexes on initial sync&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5040&quot;&gt;&lt;del&gt;SERVER-5040&lt;/del&gt;&lt;/a&gt; better test, use replsets instead of master/slave&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/161960373175779914c093be70fa06dde3b60909&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/161960373175779914c093be70fa06dde3b60909&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="120031" author="auto" created="Wed, 16 May 2012 12:44:04 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;milkie&apos;, u&apos;name&apos;: u&apos;Eric Milkie&apos;, u&apos;email&apos;: u&apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5040&quot; title=&quot;Cloner can fail to create unique indexes on initial sync&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5040&quot;&gt;&lt;del&gt;SERVER-5040&lt;/del&gt;&lt;/a&gt; test&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/76632d922ccd3be2fb4374ff5fdf1d8803be0c07&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/76632d922ccd3be2fb4374ff5fdf1d8803be0c07&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="119592" author="scotthernandez" created="Tue, 15 May 2012 13:22:39 +0000"  >&lt;p&gt;Linked in a new issue to not swallow the exception : &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5840&quot; title=&quot;Error on failed index build during initial-sync results in warning message, not exception (or retry)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5840&quot;&gt;&lt;del&gt;SERVER-5840&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="119369" author="schwerin" created="Mon, 14 May 2012 21:53:56 +0000"  >&lt;p&gt;We should at least abort the replica when this happens, in 2.0, as the result of this is not creating a replica.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="17611">SERVER-3160</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="38694">SERVER-5840</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="39948">SERVER-5963</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="24232">SERVER-4174</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>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 16 Apr 2012 17:50:26 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 23 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-3160'>SERVER-3160</a></s>]]></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>
                            11 years, 23 weeks, 2 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>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>boxedice</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>kevin@indeed.com</customfieldvalue>
            <customfieldvalue>kristina</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|hrocqf:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9056</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_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></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>
                                

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

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