<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05:29 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-4267] getLastError &quot;n&quot; is 0 if previous writes goes through writebackListener</title>
                <link>https://jira.mongodb.org/browse/SERVER-4267</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If a write hits the wrong shard, immediately after a migrate, and has to go through the writebackListener then the getLastError call returns n:0.&lt;/p&gt;

&lt;p&gt;We should indicate a special state (writeback:true, or n:-1, or something) if we can&apos;t correctly report the &quot;n&quot; value.&lt;/p&gt;</description>
                <environment></environment>
        <key id="24827">SERVER-4267</key>
            <summary>getLastError &quot;n&quot; is 0 if previous writes goes through writebackListener</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="scotthernandez">Scott Hernandez</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                            <label>writeback</label>
                    </labels>
                <created>Fri, 11 Nov 2011 23:39:28 +0000</created>
                <updated>Thu, 13 Dec 2012 23:04:31 +0000</updated>
                            <resolved>Sat, 14 Apr 2012 15:54:41 +0000</resolved>
                                    <version>2.0.1</version>
                                                    <component>Sharding</component>
                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="109874" author="scotthernandez" created="Sat, 14 Apr 2012 15:54:41 +0000"  >&lt;p&gt;Probably a dup of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5243&quot; title=&quot;mongos will route getLastError command to the config server when last insert triggered a split&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5243&quot;&gt;&lt;del&gt;SERVER-5243&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="74496" author="matthew@lucidchart.com" created="Mon, 19 Dec 2011 19:26:24 +0000"  >&lt;p&gt;We weren&apos;t doing anything fancy.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;$mongo = new Mongo();&lt;br/&gt;
$lucid = $mongo-&amp;gt;lucid;&lt;/p&gt;

&lt;p&gt;$document = array(&apos;_id&apos; =&amp;gt; &apos;unique id&apos;, &apos;state&apos; =&amp;gt; &apos;another string&apos;, &apos;pdf&apos; =&amp;gt; &apos;more&apos;);&lt;br/&gt;
$lucid-&amp;gt;documents-&amp;gt;save($document, array(&apos;safe&apos; =&amp;gt; 2));&lt;/p&gt;

&lt;p&gt;$err = $lucid-&amp;gt;lastError();&lt;br/&gt;
return $err&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;n&amp;#39;&amp;#93;&lt;/span&gt; === 1;&lt;/p&gt;&lt;/blockquote&gt;

</comment>
                            <comment id="67235" author="scotthernandez" created="Wed, 16 Nov 2011 19:48:05 +0000"  >&lt;p&gt;Matthew, do you have tests you can attach?&lt;/p&gt;</comment>
                            <comment id="66346" author="eliot" created="Sat, 12 Nov 2011 02:15:15 +0000"  >&lt;p&gt;@scott - do you have a case?&lt;br/&gt;
there are tests for exactly this case.&lt;/p&gt;</comment>
                            <comment id="66336" author="matthew@lucidchart.com" created="Sat, 12 Nov 2011 00:13:46 +0000"  >&lt;p&gt;I&apos;ve had instances where inserting a single record into a sharded database will return n:2. This could be related.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="32467">SERVER-5243</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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>Sat, 12 Nov 2011 00:13:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 44 weeks, 4 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, 44 weeks, 4 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>eliot</customfieldvalue>
            <customfieldvalue>matthew@lucidchart.com</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|hrolrz:</customfieldvalue>

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

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

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