<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:12:08 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-6589] Pretouch throws &quot;11000:E11000 duplicate key error index&quot; on every update</title>
                <link>https://jira.mongodb.org/browse/SERVER-6589</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi&lt;br/&gt;
I notice that every &quot;update&quot; operation  using the _id causes &quot;11000:E11000 duplicate key error index&quot; on the secondary log.&lt;/p&gt;

&lt;p&gt;primary:&lt;/p&gt;

&lt;p&gt;Tue Jul 24 09:45:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn5&amp;#93;&lt;/span&gt; getmore local.oplog.rs query: { ts: &lt;/p&gt;
{ $gte: new Date(5766220961858716081) }
&lt;p&gt; } cursorid:7344324393376596819 ntoreturn:0 keyUpdates:0 locks(micros) r:64 nreturned:1 reslen:146 0ms&lt;br/&gt;
Tue Jul 24 09:45:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2590&amp;#93;&lt;/span&gt; update r1.Attribute query: &lt;/p&gt;
{ _id: ObjectId(&apos;4ff62387e4b072a042eee906&apos;) }
&lt;p&gt; update: { $set: &lt;/p&gt;
{ typeId: 1 }
&lt;p&gt; } idhack:1 nmoved:1 nupdated:1 keyUpdates:0 locks(micros) w:385 0ms&lt;/p&gt;

&lt;p&gt;secondary:&lt;/p&gt;

&lt;p&gt;Tue Jul 24 09:45:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;repl prefetch worker&amp;#93;&lt;/span&gt; User Assertion: 11000:E11000 duplicate key error index: r1.Attribute.$&lt;em&gt;id&lt;/em&gt;  dup key: { : ObjectId(&apos;4ff62387e4b072a042eee906&apos;) }&lt;/p&gt;</description>
                <environment>Linux el5 x64</environment>
        <key id="45336">SERVER-6589</key>
            <summary>Pretouch throws &quot;11000:E11000 duplicate key error index&quot; on every update</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="kristina">Kristina Chodorow</assignee>
                                    <reporter username="jason.chuong@cbsi.com">Jason Chuong</reporter>
                        <labels>
                    </labels>
                <created>Wed, 25 Jul 2012 15:43:55 +0000</created>
                <updated>Mon, 11 Jul 2016 17:57:09 +0000</updated>
                            <resolved>Thu, 26 Jul 2012 15:30:07 +0000</resolved>
                                    <version>2.2.0-rc0</version>
                                    <fixVersion>2.2.0-rc1</fixVersion>
                                    <component>Write Ops</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="147612" author="kristina" created="Thu, 26 Jul 2012 15:30:07 +0000"  >&lt;p&gt;Thanks for the report, please keep banging on it!&lt;/p&gt;</comment>
                            <comment id="147606" author="auto" created="Thu, 26 Jul 2012 15:28:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-25T11:35:07-07:00&apos;, u&apos;email&apos;: u&apos;kristina@10gen.com&apos;, u&apos;name&apos;: u&apos;Kristina&apos;}
&lt;p&gt;Message: Make prefetch not throw any exceptions &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6589&quot; title=&quot;Pretouch throws &amp;quot;11000:E11000 duplicate key error index&amp;quot; on every update&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6589&quot;&gt;&lt;del&gt;SERVER-6589&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f7fe1378882ddc992ccf9eff8be245336a97c4c3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f7fe1378882ddc992ccf9eff8be245336a97c4c3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="147228" author="kristina" created="Wed, 25 Jul 2012 17:41:01 +0000"  >&lt;p&gt;Thanks! I think this is a bug in some code that&apos;s supposed to touch indexes before replicating data.  Other than being slow, it shouldn&apos;t affect functionality.  Looking into it...&lt;/p&gt;</comment>
                            <comment id="147226" author="jason.chuong@cbsi.com" created="Wed, 25 Jul 2012 17:35:21 +0000"  >&lt;p&gt;Here&apos;s a php test scripts that i used to run the test.  interate thru the collection and update the modDate and verify that update get replicated to secondary&lt;/p&gt;

&lt;p&gt;cursor = $collection-&amp;gt;find()-&amp;gt;limit($limit);&lt;/p&gt;

&lt;p&gt;foreach ($cursor as $doc) {&lt;br/&gt;
	$filter = array(&apos;_id&apos; =&amp;gt; $doc&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;_id&amp;quot;&amp;#93;&lt;/span&gt;);&lt;br/&gt;
	$update = array(&apos;$set&apos; =&amp;gt; array(&quot;date.modDate&quot; =&amp;gt; new MongoDate()));&lt;br/&gt;
	$collection-&amp;gt;update($filter,$update);&lt;br/&gt;
	echo $doc&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;_id&amp;quot;&amp;#93;&lt;/span&gt; . &quot;\n&quot;;;&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;</comment>
                            <comment id="147207" author="kristina" created="Wed, 25 Jul 2012 16:59:15 +0000"  >&lt;p&gt;Can you attach the log from starting up with 2.2.0 through the error?&lt;/p&gt;</comment>
                            <comment id="147204" author="jason.chuong@cbsi.com" created="Wed, 25 Jul 2012 16:56:12 +0000"  >&lt;p&gt;No it wasn&apos;t.  I upgraded our dev environment from 2.0.4 --&amp;gt; 2.2.0.&lt;br/&gt;
Verify the resultset and ran our test when we notice it in the log. &lt;/p&gt;</comment>
                            <comment id="147198" author="kristina" created="Wed, 25 Jul 2012 16:51:08 +0000"  >&lt;p&gt;Was this on initial sync?&lt;/p&gt;</comment>
                            <comment id="147195" author="jason.chuong@cbsi.com" created="Wed, 25 Jul 2012 16:47:35 +0000"  >&lt;p&gt;The replication didn&apos;t get stuck and i&apos;ve verify that the update operation did get populate to the secondary&lt;/p&gt;</comment>
                            <comment id="147177" author="kristina" created="Wed, 25 Jul 2012 16:03:51 +0000"  >&lt;p&gt;That means that replication is stuck.  Can you attach the log from the secondary?&lt;/p&gt;

&lt;p&gt;Do you have a clean backup you can restore from?  If not, you&apos;ll have to resync the secondary from scratch (shut down, delete data files, start it back up again).&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="18425" name="daemon.log" size="205912" author="jason.chuong@cbsi.com" created="Wed, 25 Jul 2012 17:32:23 +0000"/>
                            <attachment id="18424" name="daemon.log" size="205912" author="jason.chuong@cbsi.com" created="Wed, 25 Jul 2012 17:31:28 +0000"/>
                    </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>Wed, 25 Jul 2012 16:03:51 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 29 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>
                            11 years, 29 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="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>jason.chuong@cbsi.com</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnu2v:</customfieldvalue>

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

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

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