<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:16:09 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-7958] GLE on sharded cluster can return previous operation&apos;s lastError</title>
                <link>https://jira.mongodb.org/browse/SERVER-7958</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In some situations migration that happens between two operations can cause first operation&apos;s GLE result to be returned to GLE call after second operation.&lt;/p&gt;

&lt;p&gt;Running attached js file like so (omitting startup and shutdown lines):&lt;br/&gt;
mongo --nodb dupBad2.js | grep -v &quot;^ m39&quot; | grep -v &quot;^ m30&quot;&lt;/p&gt;

&lt;p&gt;Number of successful updates on node: 0&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;successful update on node on A &lt;br/&gt;
n=0,&lt;br/&gt;
updatedExisting=true,&lt;br/&gt;
err=E11000 duplicate key error index: test.trans.$owner_1  dup key: { : 1234567890 }&lt;/p&gt;
&lt;hr /&gt;
&lt;hr /&gt;
&lt;p&gt;successful update on node on B &lt;br/&gt;
n=0,&lt;br/&gt;
updatedExisting=true,&lt;br/&gt;
err=E11000 duplicate key error index: test.trans.$owner_1  dup key: { : 1234567890 }&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Number of successful updates on node: 2&lt;/p&gt;</description>
                <environment></environment>
        <key id="59625">SERVER-7958</key>
            <summary>GLE on sharded cluster can return previous operation&apos;s lastError</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="asya.kamsky@mongodb.com">Asya Kamsky</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Dec 2012 06:45:03 +0000</created>
                <updated>Mon, 11 Jul 2016 17:57:19 +0000</updated>
                            <resolved>Wed, 19 Dec 2012 16:21:19 +0000</resolved>
                                    <version>2.2.2</version>
                    <version>2.3.1</version>
                                    <fixVersion>2.2.3</fixVersion>
                    <fixVersion>2.3.2</fixVersion>
                                    <component>Sharding</component>
                    <component>Write Ops</component>
                                        <votes>0</votes>
                                    <watches>13</watches>
                                                                                                                <comments>
                            <comment id="219943" author="auto" created="Thu, 20 Dec 2012 03:20:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-12-20T03:19:18Z&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7958&quot; title=&quot;GLE on sharded cluster can return previous operation&amp;#39;s lastError&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7958&quot;&gt;&lt;del&gt;SERVER-7958&lt;/del&gt;&lt;/a&gt; - make test more resilient to gle field ordering&lt;br/&gt;
Branch: v2.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5baf992b906f440ce99f917d1d53767a303be7f9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5baf992b906f440ce99f917d1d53767a303be7f9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="219942" author="auto" created="Thu, 20 Dec 2012 03:20:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-12-20T03:19:18Z&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7958&quot; title=&quot;GLE on sharded cluster can return previous operation&amp;#39;s lastError&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7958&quot;&gt;&lt;del&gt;SERVER-7958&lt;/del&gt;&lt;/a&gt; - make test more resilient to gle field ordering&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c49f0d43433ea41d16d27916aa119cbbb615e730&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c49f0d43433ea41d16d27916aa119cbbb615e730&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="219375" author="auto" created="Wed, 19 Dec 2012 16:21:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-12-18T05:00:53Z&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7958&quot; title=&quot;GLE on sharded cluster can return previous operation&amp;#39;s lastError&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7958&quot;&gt;&lt;del&gt;SERVER-7958&lt;/del&gt;&lt;/a&gt; - when an old operation has a writeback,&lt;br/&gt;
              make sure not to use that info in the user writeback&lt;br/&gt;
              just block&lt;br/&gt;
Branch: v2.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8014832a4a4e0925dda1351e0113c7c7b9af94eb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8014832a4a4e0925dda1351e0113c7c7b9af94eb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="218245" author="auto" created="Tue, 18 Dec 2012 13:39:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-12-18T05:00:53Z&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7958&quot; title=&quot;GLE on sharded cluster can return previous operation&amp;#39;s lastError&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7958&quot;&gt;&lt;del&gt;SERVER-7958&lt;/del&gt;&lt;/a&gt; - when an old operation has a writeback,&lt;br/&gt;
              make sure not to use that info in the user writeback&lt;br/&gt;
              just block&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4dfc7f12d4bdefcf4d5d85a2efd227fdfe730f33&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4dfc7f12d4bdefcf4d5d85a2efd227fdfe730f33&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="217859" author="asya" created="Tue, 18 Dec 2012 01:33:01 +0000"  >&lt;p&gt;fixed up test with asserts for multiple scenarios, covering the edge cases discovered in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7967&quot; title=&quot;In sharded clusters on failed insert GLE sometimes returns null err field&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7967&quot;&gt;&lt;del&gt;SERVER-7967&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="62563">PYTHON-469</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="59691">SERVER-7967</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="61178">SERVER-8097</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="26975">SERVER-4532</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="22578" name="dupBad1.js" size="2405" author="asya.kamsky@mongodb.com" created="Mon, 17 Dec 2012 10:40:42 +0000"/>
                            <attachment id="22564" name="dupBad2.js" size="3912" author="asya.kamsky@mongodb.com" created="Mon, 17 Dec 2012 06:45:03 +0000"/>
                            <attachment id="22625" name="dupBadAssert.js" size="3653" author="asya.kamsky@mongodb.com" created="Tue, 18 Dec 2012 01:33:01 +0000"/>
                            <attachment id="22576" name="dupBadAssert.js" size="3657" author="asya.kamsky@mongodb.com" created="Mon, 17 Dec 2012 10:31:00 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 17 Dec 2012 09:10:35 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 8 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, 8 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>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrne9r:</customfieldvalue>

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

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

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

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