<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:46 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-3329] Add more response fields for getLastError with w/wtimeout</title>
                <link>https://jira.mongodb.org/browse/SERVER-3329</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We should return the follow:&lt;/p&gt;

&lt;p&gt;&quot;majority&quot; : true/false //if the write was applied to a majority &amp;#8211; no rollback will happen&lt;br/&gt;
&quot;weffected&quot; : # &amp;#8211; the number of nodes w the write&lt;br/&gt;
&quot;up&quot; : # //number of replicas up&lt;/p&gt;

&lt;p&gt;We talked and these should work with the new tag&apos;n system as well.&lt;/p&gt;</description>
                <environment></environment>
        <key id="18685">SERVER-3329</key>
            <summary>Add more response fields for getLastError with w/wtimeout</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Jun 2011 16:15:10 +0000</created>
                <updated>Fri, 20 Feb 2015 14:58:05 +0000</updated>
                            <resolved>Fri, 20 Feb 2015 14:58:05 +0000</resolved>
                                                                    <component>Replication</component>
                                        <votes>3</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="833551" author="milkie" created="Fri, 20 Feb 2015 14:58:05 +0000"  >&lt;p&gt;see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4073&quot; title=&quot;getLastError should return the members that the write has been replicated to&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4073&quot;&gt;&lt;del&gt;SERVER-4073&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="148913" author="tecnobrat" created="Mon, 30 Jul 2012 23:32:43 +0000"  >&lt;p&gt;This is a major issue for us currently.&lt;/p&gt;

&lt;p&gt;We have 3 nodes (primary and 2 secondaries).  We want to be able to write to the primary, ensure that ONE Of the secondaries gets the write (ensures our data is safe and secure) and then immediately be able to read it.&lt;/p&gt;

&lt;p&gt;Often the 2nd secondary will end up with replication lag, because we are doing backups off of it .. or some other process which is bogging it down a little.  That replication lag may be upwards of 5 minutes at times.  Which isn&apos;t really an issue, this is why we have 2 secondaries.&lt;/p&gt;

&lt;p&gt;However, when we go to do a read from the secondaries, it has a 50% chance to pick the one which has massive lag.  Which of course the document we just wrote, won&apos;t exist.&lt;/p&gt;

&lt;p&gt;So having the driver know what nodes it wrote to, would allow us to ensure we did the read from that node, and all would be fine.&lt;/p&gt;</comment>
                            <comment id="55671" author="dattas" created="Wed, 21 Sep 2011 16:57:38 +0000"  >&lt;p&gt;It would also be nice to be able to get the server names that the write has propagated to so that there could be a function to read from those servers, this would allow writing to replication sets and being able to read that write reliably soon after it is written.&lt;/p&gt;</comment>
                            <comment id="41122" author="gambitg" created="Thu, 7 Jul 2011 16:59:38 +0000"  >&lt;p&gt;Even weffected could change after wtimeout, right ?&lt;/p&gt;</comment>
                            <comment id="39104" author="scotthernandez" created="Fri, 24 Jun 2011 17:44:12 +0000"  >&lt;p&gt;Balkrishna, this dosen&apos;t make a lot of sense to me since by the time you get the response the write could be on all the replicas. It isn&apos;t like replication stops when the wtimeout occurs.&lt;/p&gt;

&lt;p&gt;Any writes need to go through the primary so I&apos;m not sure how this would be accomplished using individual nodes.&lt;/p&gt;</comment>
                            <comment id="39089" author="gambitg" created="Fri, 24 Jun 2011 16:31:04 +0000"  >&lt;p&gt;Along with the above, it will be great to return:&lt;/p&gt;

&lt;p&gt;&quot;weffected_name&quot; : the name of the nodes where the write was applied&lt;/p&gt;

&lt;p&gt;This will be very handy for applications that wish to create a pseudo-transaction like operation, where they wish to rollback (or flag accordingly) operations that failed because they did not make to w nodes within the specified timeout.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="49342">SERVER-6934</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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 24 Jun 2011 16:31:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 51 weeks, 5 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>false</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>milkie@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 51 weeks, 5 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>gambitg</customfieldvalue>
            <customfieldvalue>tecnobrat</customfieldvalue>
            <customfieldvalue>dattas</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>milkie@mongodb.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|hrowyv:</customfieldvalue>

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

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

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