<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:12:03 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-6558] findAndModify should take a write concern</title>
                <link>https://jira.mongodb.org/browse/SERVER-6558</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The findAndModify should support specification of a writeConcern, in the same manner as the write commands (insert, update, delete), and should support returning write concern failures in the same manner, as well.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;EDIT 8/31/15&lt;/b&gt;&lt;br/&gt;
This ticket originally encompassed work to support sending write concern for all commands, but the work committed for this ticket is only for the findAndModify command.&lt;/p&gt;

&lt;p&gt;The ticket describing the work for extending support for this to all commands which write can be found in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20224&quot; title=&quot;Commands which write should take a write concern&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20224&quot;&gt;&lt;del&gt;SERVER-20224&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;All commands that perform writes on behalf of users should support specification of a writeConcern, in the same manner as the write commands (insert, update, delete), and should support returning write concern failures in the same manner, as well.&lt;/p&gt;</description>
                <environment></environment>
        <key id="45094">SERVER-6558</key>
            <summary>findAndModify should take a write concern</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                            <label>commands</label>
                            <label>findAndModify</label>
                    </labels>
                <created>Mon, 23 Jul 2012 12:11:49 +0000</created>
                <updated>Mon, 8 May 2017 17:17:49 +0000</updated>
                            <resolved>Tue, 1 Sep 2015 20:24:31 +0000</resolved>
                                                    <fixVersion>3.1.1</fixVersion>
                                    <component>Write Ops</component>
                                        <votes>16</votes>
                                    <watches>25</watches>
                                                                                                                <comments>
                            <comment id="866774" author="xgen-internal-githook" created="Fri, 27 Mar 2015 21:54:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;visualzhou&apos;, u&apos;name&apos;: u&apos;Siyuan Zhou&apos;, u&apos;email&apos;: u&apos;siyuan.zhou@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6558&quot; title=&quot;findAndModify should take a write concern&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6558&quot;&gt;&lt;del&gt;SERVER-6558&lt;/del&gt;&lt;/a&gt; Fix write concern option enum on Solaris.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5ae2eb08677cb40ae9c05c109adca7de948a7208&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5ae2eb08677cb40ae9c05c109adca7de948a7208&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="866387" author="xgen-internal-githook" created="Fri, 27 Mar 2015 17:43:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;visualzhou&apos;, u&apos;name&apos;: u&apos;Siyuan Zhou&apos;, u&apos;email&apos;: u&apos;siyuan.zhou@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6558&quot; title=&quot;findAndModify should take a write concern&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6558&quot;&gt;&lt;del&gt;SERVER-6558&lt;/del&gt;&lt;/a&gt; Attach write concern to operation context.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ee8ebe091acd1c519b6e5485e8da642f3c4af892&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ee8ebe091acd1c519b6e5485e8da642f3c4af892&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="855726" author="xgen-internal-githook" created="Tue, 17 Mar 2015 15:57:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;alabid&apos;, u&apos;name&apos;: u&apos;Daniel Alabi&apos;, u&apos;email&apos;: u&apos;alabidan@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6558&quot; title=&quot;findAndModify should take a write concern&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6558&quot;&gt;&lt;del&gt;SERVER-6558&lt;/del&gt;&lt;/a&gt; Add writeConcern option to findAndModify command&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/21c4f06e356d42aa12442e3f6bca99e55266cd6d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/21c4f06e356d42aa12442e3f6bca99e55266cd6d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="853239" author="xgen-internal-githook" created="Mon, 16 Mar 2015 18:59:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;alabid&apos;, u&apos;name&apos;: u&apos;Daniel Alabi&apos;, u&apos;email&apos;: u&apos;alabidan@gmail.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6558&quot; title=&quot;findAndModify should take a write concern&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6558&quot;&gt;&lt;del&gt;SERVER-6558&lt;/del&gt;&lt;/a&gt; Add writeConcern option to findAndModify command&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit bb9b4e27c8c31542af52d80f4c3751c435909d69.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9ac525aa529e825634004758fade4738c3c7b0a8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9ac525aa529e825634004758fade4738c3c7b0a8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="853062" author="xgen-internal-githook" created="Mon, 16 Mar 2015 17:27:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;alabid&apos;, u&apos;name&apos;: u&apos;Daniel Alabi&apos;, u&apos;email&apos;: u&apos;alabidan@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6558&quot; title=&quot;findAndModify should take a write concern&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6558&quot;&gt;&lt;del&gt;SERVER-6558&lt;/del&gt;&lt;/a&gt; Add writeConcern option to findAndModify command&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bb9b4e27c8c31542af52d80f4c3751c435909d69&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bb9b4e27c8c31542af52d80f4c3751c435909d69&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="737654" author="antoine" created="Thu, 9 Oct 2014 16:02:48 +0000"  >&lt;p&gt;Most implementation of &quot;transactions&quot; require use of findAndModify, but with w=1 it&#8217;s really not viable with possible rollbacks &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
I think most ppl overlook it, but it&#8217;s a real problem. Most implementation of queues with mongo are not durable today, even though it&#8217;s the only good pattern for &quot;transactional behavior&quot; in many cases. Basically findAndModify is the building block of transactional designs, so it really should be durable.&lt;/p&gt;</comment>
                            <comment id="490757" author="milkie" created="Thu, 30 Jan 2014 13:36:42 +0000"  >&lt;p&gt;Note: write commands and user management commands already take a write concern.  We should come up with a standard for this and apply it to all commands which do writing.&lt;/p&gt;</comment>
                            <comment id="181991" author="yfinkelstein" created="Fri, 2 Nov 2012 17:54:39 +0000"  >&lt;p&gt;for instance, findAndModify must be able to support write concern with w:2 just like the regular update would do. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="85538">CSHARP-799</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="84052">DRIVERS-106</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="84206">JAVA-908</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="245551">DOCS-6898</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="336380">DOCS-9565</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="26372">SERVER-4469</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="108306">SERVER-12544</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="227813">SERVER-20224</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="199674">DRIVERS-224</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="108256">SERVER-12535</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.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, 2 Nov 2012 17:54:39 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 46 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-112</customfieldvalue>
                        </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>spencer@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 46 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </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>antoine</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>yfinkelstein</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnufb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3899</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="459">Sharding 1 04/03/15</customfieldvalue>
    <customfieldvalue id="475">Sharding 2 04/24/15</customfieldvalue>
    <customfieldvalue id="500">Sharding 3 05/15/15</customfieldvalue>
    <customfieldvalue id="546">Sharding 4 06/05/15</customfieldvalue>
    <customfieldvalue id="566">Sharding 5 06/26/16</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

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

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