<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:56:38 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>[JAVA-2221] Always send writeConcern for commands that write</title>
                <link>https://jira.mongodb.org/browse/JAVA-2221</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;When talking with server 3.4 or greater (maxWireVersion &amp;gt;=5), &lt;tt&gt;writeConcern&lt;/tt&gt; should be a supported option for commands that write.&lt;br/&gt;
Helpers for the following commands therefore must be updated to support the option. The list is ordered according to likelihood that a driver has a helper for the command.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;tt&gt;aggregate with $out&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;copydb&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;create&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;createIndexes&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;drop&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;dropDatabase&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;dropIndexes&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;mapReduce with $out&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;clone&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;cloneCollection&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;cloneCollectionAsCapped&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;collMod&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;convertToCapped&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;emptyCapped&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;renameCollection&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;appendoplognote&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;godInsert&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;capTrunc&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;reindex&lt;/tt&gt;&lt;br/&gt;
* &lt;tt&gt;mergechunk&#8232;&lt;/tt&gt;&lt;/li&gt;
&lt;/ul&gt;



&lt;h4&gt;&lt;a name=&quot;Note%3A&quot;&gt;&lt;/a&gt;Note:&lt;/h4&gt;
&lt;p&gt;When the writeConcern on a command that writes fails, the resulting document still comes back with ok: 1. Hence, to check for write concern and raise the appropriate error to your users, you will need to check the resulting document for a writeConcernError field. If it is present, then writeConcern failed.&lt;/p&gt;</description>
                <environment></environment>
        <key id="293114">JAVA-2221</key>
            <summary>Always send writeConcern for commands that write</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="rathi.gnanasekaran">Rathi Gnanasekaran</reporter>
                        <labels>
                    </labels>
                <created>Fri, 10 Jun 2016 20:47:08 +0000</created>
                <updated>Wed, 19 Oct 2016 14:17:39 +0000</updated>
                            <resolved>Tue, 26 Jul 2016 18:45:39 +0000</resolved>
                                                    <fixVersion>3.4.0</fixVersion>
                                    <component>Command Operations</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1336522" author="xgen-internal-githook" created="Tue, 26 Jul 2016 18:45:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2221&quot; title=&quot;Always send writeConcern for commands that write&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2221&quot;&gt;&lt;del&gt;JAVA-2221&lt;/del&gt;&lt;/a&gt;: Add write concern to commands that write, including:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;aggregate with $out stage&lt;/li&gt;
	&lt;li&gt;mapReduce to collection&lt;/li&gt;
	&lt;li&gt;rename, create and drop a collection, create and drop indexes, drop database&lt;/li&gt;
	&lt;li&gt;create, update, and drop user&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/f9045ea1265a3630beddf9d984f55c39d162a101&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/f9045ea1265a3630beddf9d984f55c39d162a101&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="269132">DRIVERS-290</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <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>JAVA-2141</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsngrj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1123">JVM Sprint 34</customfieldvalue>

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