<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:16:11 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-7967] In sharded clusters on failed insert GLE sometimes returns null err field</title>
                <link>https://jira.mongodb.org/browse/SERVER-7967</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When doing an insert into a sharded collection because of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4381&quot; title=&quot;getLastError returns n:0 after insert, always&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4381&quot;&gt;&lt;del&gt;SERVER-4381&lt;/del&gt;&lt;/a&gt; but in attached testcase it does not properly set &quot;err:&quot; field and &quot;code:&quot; field when writeback listeners are involved.&lt;/p&gt;

&lt;p&gt;Before fix for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4532&quot; title=&quot;GetLastError on sharded cluster can report incorrect result &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4532&quot;&gt;&lt;del&gt;SERVER-4532&lt;/del&gt;&lt;/a&gt; and &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; the attached code would set err: but not code: fields (so it would fail in the first failed asserts before split/migration) however testing it with both of those fixes now it returns proper GLE before split/migrate but after returns:&lt;/p&gt;

&lt;p&gt;assert failed : Insert of a duplicate record after split/migrate did not create correct GLE{&lt;br/&gt;
	&quot;singleShard&quot; : &quot;localhost:30000&quot;,&lt;br/&gt;
	&quot;n&quot; : 0,&lt;br/&gt;
	&quot;connectionId&quot; : 21,&lt;br/&gt;
	&quot;err&quot; : null,&lt;br/&gt;
	&quot;ok&quot; : 1,&lt;br/&gt;
	&quot;code&quot; : 11000,&lt;br/&gt;
	&quot;writebackGLE&quot; : &lt;/p&gt;
{
		&quot;singleShard&quot; : &quot;localhost:30000&quot;,
		&quot;n&quot; : 0,
		&quot;connectionId&quot; : 21,
		&quot;err&quot; : null,
		&quot;ok&quot; : 1
	}
&lt;p&gt;,&lt;br/&gt;
	&quot;initialGLEHost&quot; : &quot;localhost:30000&quot;,&lt;br/&gt;
	&quot;initialGLE&quot; : {&lt;br/&gt;
		&quot;err&quot; : &quot;E11000 duplicate key error index: test.trans.$owner_1  dup key: { : 1234567890 }&quot;,&lt;br/&gt;
		&quot;code&quot; : 11000,&lt;br/&gt;
		&quot;n&quot; : 0,&lt;br/&gt;
		&quot;connectionId&quot; : 16,&lt;br/&gt;
		&quot;ok&quot; : 1&lt;br/&gt;
	}&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment></environment>
        <key id="59691">SERVER-7967</key>
            <summary>In sharded clusters on failed insert GLE sometimes returns null err field</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="asya.kamsky@mongodb.com">Asya Kamsky</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Dec 2012 19:44:42 +0000</created>
                <updated>Fri, 15 Feb 2013 15:06:44 +0000</updated>
                            <resolved>Tue, 18 Dec 2012 01:07:08 +0000</resolved>
                                    <version>2.2.2</version>
                    <version>2.3.1</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="217846" author="asya" created="Tue, 18 Dec 2012 01:07:08 +0000"  >&lt;p&gt;Duplicate of &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;&lt;/p&gt;</comment>
                            <comment id="217844" author="asya" created="Tue, 18 Dec 2012 01:06:27 +0000"  >&lt;p&gt;Okay, while this might be considered a special case of &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; there was an additional set of changes that were needed to make this test pass.&lt;/p&gt;

&lt;p&gt;However, since without those changes &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7948&quot; title=&quot;mongodump should assert that server isn&amp;#39;t fsyncLocked&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7948&quot;&gt;&lt;del&gt;SERVER-7948&lt;/del&gt;&lt;/a&gt; doesn&apos;t completely pass, I&apos;m going to merge them by making this a duplicate, adding fixes from this one to that ticket and adding all the tests in one place.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="59625">SERVER-7958</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="61178">SERVER-8097</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="22611" name="dupBadNoErr.js" size="3191" author="asya.kamsky@mongodb.com" created="Mon, 17 Dec 2012 19:44:42 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 9 weeks, 2 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 9 weeks, 2 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>asya.kamsky@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrne4n:</customfieldvalue>

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

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

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