<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:00:49 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>[CXX-927] Support sending writeConcern for commands that write</title>
                <link>https://jira.mongodb.org/browse/CXX-927</link>
                <project id="11980" key="CXX">C++ 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="293110">CXX-927</key>
            <summary>Support sending 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="david.golden@mongodb.com">David Golden</assignee>
                                    <reporter username="rathi.gnanasekaran">Rathi Gnanasekaran</reporter>
                        <labels>
                    </labels>
                <created>Fri, 10 Jun 2016 20:45:47 +0000</created>
                <updated>Mon, 30 Jan 2017 15:23:49 +0000</updated>
                            <resolved>Fri, 21 Oct 2016 15:58:08 +0000</resolved>
                                                    <fixVersion>3.1.0</fixVersion>
                                    <component>Implementation</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1444974" author="xgen-internal-githook" created="Tue, 29 Nov 2016 18:49:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;xdg&apos;, u&apos;name&apos;: u&apos;David Golden&apos;, u&apos;email&apos;: u&apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-927&quot; title=&quot;Support sending writeConcern for commands that write&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-927&quot;&gt;&lt;del&gt;CXX-927&lt;/del&gt;&lt;/a&gt; Document use of write_concern for helper functions&lt;/p&gt;

&lt;p&gt;The C driver helpers handle write concern from the collection struct and&lt;br/&gt;
return an error if a write concern error occurs, so this merely documents&lt;br/&gt;
that setting write concern on the collection is required for use.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/0e40786e66b86bdbd48cdd1ed67cafabe7c4eb97&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/0e40786e66b86bdbd48cdd1ed67cafabe7c4eb97&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1409037" author="david.golden" created="Fri, 14 Oct 2016 18:59:58 +0000"  >&lt;p&gt;This is done from the C++ driver side, so I&apos;m marking it resolved. However, this will not actually work until the C driver addresses its tickets relating to write concern.&lt;/p&gt;</comment>
                            <comment id="1409032" author="xgen-internal-githook" created="Fri, 14 Oct 2016 18:56:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;xdg&apos;, u&apos;name&apos;: u&apos;David Golden&apos;, u&apos;email&apos;: u&apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-927&quot; title=&quot;Support sending writeConcern for commands that write&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-927&quot;&gt;&lt;del&gt;CXX-927&lt;/del&gt;&lt;/a&gt; Document use of write_concern for helper functions&lt;/p&gt;

&lt;p&gt;The C driver helpers handle write concern from the collection struct and&lt;br/&gt;
return an error if a write concern error occurs, so this merely documents&lt;br/&gt;
that setting write concern on the collection is required for use.&lt;br/&gt;
Branch: 3.1-dev&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/0e40786e66b86bdbd48cdd1ed67cafabe7c4eb97&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/0e40786e66b86bdbd48cdd1ed67cafabe7c4eb97&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1409021" author="david.golden" created="Fri, 14 Oct 2016 18:48:13 +0000"  >&lt;p&gt;Aggregation needs &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1704&quot; title=&quot;Inconsistent application of read/write concern in mongoc_collection_aggregate&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1704&quot;&gt;&lt;del&gt;CDRIVER-1704&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1406262" author="david.golden" created="Wed, 12 Oct 2016 14:30:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1527&quot; title=&quot;Add mongoc_client_[read|write|read_write]_command_with_opts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1527&quot;&gt;&lt;del&gt;CDRIVER-1527&lt;/del&gt;&lt;/a&gt; cleans up the application of collection/database write concern to helpers.  Once merged, we have the option to rely on it for Server 3.4 support rather than adding write concern to options.&lt;/p&gt;

&lt;p&gt;We could do that later for &lt;b&gt;all&lt;/b&gt; relevant commands as part of &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1085&quot; title=&quot;Inconsistent API for operation level write concern&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1085&quot;&gt;&lt;del&gt;CXX-1085&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;That means the necessary work is:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;on mongocxx::collection
	&lt;ul&gt;
		&lt;li&gt;&lt;tt&gt;aggregate with $out&lt;/tt&gt; &#8211;&#160; document that write concern must be set on collection&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;createIndexes&lt;/tt&gt; &#8211;  document that write concern must be set on collection&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;drop&lt;/tt&gt; &#8211;  document that write concern must be set on collection&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;renameCollection&lt;/tt&gt; &#8211;  document that write concern must be set on collection&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;on mongocxx::database
	&lt;ul&gt;
		&lt;li&gt;&lt;tt&gt;create&lt;/tt&gt; &#8211;&#160; document that write concern must be set on database(for create_collection and create_view)&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;dropDatabase&lt;/tt&gt; &#8211; document that write concern must be set on database&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;collMod&lt;/tt&gt; &#8211; nothing; &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1058&quot; title=&quot;Deprecate database::modify_collection()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1058&quot;&gt;&lt;del&gt;CXX-1058&lt;/del&gt;&lt;/a&gt; will deprecate it&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1405838" author="david.golden" created="Tue, 11 Oct 2016 21:34:37 +0000"  >&lt;p&gt;Summary of write concern support changes needed:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;on mongocxx::collection
	&lt;ul&gt;
		&lt;li&gt;&lt;tt&gt;aggregate with $out&lt;/tt&gt; &#8211;&#160;need to add to existing options&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;createIndexes&lt;/tt&gt; &#8211; need to add to existing options&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;drop&lt;/tt&gt; &#8211; new options class needed&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;renameCollection&lt;/tt&gt; &#8211; new options class needed&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;on mongocxx::database
	&lt;ul&gt;
		&lt;li&gt;&lt;tt&gt;create&lt;/tt&gt; &#8211;&#160;need to add to existing options (for create_collection and create_view)&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;dropDatabase&lt;/tt&gt; &#8211; new options class needed&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;collMod&lt;/tt&gt; &#8211; to be deprecated in mongocxx API&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1297179" author="david.golden" created="Thu, 16 Jun 2016 21:03:15 +0000"  >&lt;p&gt;libmongoc 1.4.0 will add additional helper function variants that take write concern&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="323807">CDRIVER-1704</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="314650">CDRIVER-1527</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="269132">DRIVERS-290</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="322935">CXX-1085</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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>CXX-960</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrdsqv:</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="1287">Perl/CXX 2016-10-21</customfieldvalue>

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