<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:43 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>[CDRIVER-2273] Do not include default write concern in insert, update, and delete commands</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2273</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/3e34af30faca57e014044e0a3b7ca8f3460991df#diff-f056549fad972eba9c93b7e0dcd9542bR1414&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;3e34af3&lt;/a&gt; added logic to omit specifying default read and write concerns (i.e. an empty document value) in command documents. However, the code path for insert, update, and delete is still prone to adding a &quot;writeConcern&quot; key with an empty document value to the command document.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=redbeard0531&quot; class=&quot;user-hover&quot; rel=&quot;redbeard0531&quot;&gt;redbeard0531&lt;/a&gt; confirmed that mongod versions going back to 2.6 treat an empty document for &quot;writeConcern&quot; as if the option had never been specified, but I think it would be preferable if libmongoc was consistent here and omitted the option on its own.&lt;/p&gt;

&lt;p&gt;This came up while some users were analyzing logs for the PHP driver (see: &lt;a href=&quot;https://github.com/mongodb/mongo-php-library/issues/326#issuecomment-273311653&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb/mongo-php-library#326&lt;/a&gt;) and did not expect to see a &quot;writeConcern&quot; field at all. After adding logic in the PHP library to ignore default read and write concerns in commands (&lt;a href=&quot;https://jira.mongodb.org/browse/PHPC-976&quot; title=&quot;Create isDefault() method for read and write concerns&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PHPC-976&quot;&gt;&lt;del&gt;PHPC-976&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/PHPLIB-261&quot; title=&quot;Omit default read and write concern from commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PHPLIB-261&quot;&gt;&lt;del&gt;PHPLIB-261&lt;/del&gt;&lt;/a&gt;) I realized that libmongoc was still adding default values for insert, update, and delete.&lt;/p&gt;</description>
                <environment></environment>
        <key id="426203">CDRIVER-2273</key>
            <summary>Do not include default write concern in insert, update, and delete commands</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="13201">Fixed</resolution>
                                        <assignee username="jmikola@mongodb.com">Jeremy Mikola</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Sep 2017 18:32:08 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:28 +0000</updated>
                            <resolved>Thu, 23 Nov 2017 03:22:18 +0000</resolved>
                                    <version>1.7.0</version>
                                    <fixVersion>1.9.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1733463" author="xgen-internal-githook" created="Thu, 23 Nov 2017 03:20:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeremy Mikola&apos;, &apos;username&apos;: &apos;jmikola&apos;, &apos;email&apos;: &apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2273&quot; title=&quot;Do not include default write concern in insert, update, and delete commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2273&quot;&gt;&lt;del&gt;CDRIVER-2273&lt;/del&gt;&lt;/a&gt; add tests for appending default read and write concern&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/b114635fc1cc7c9dec86a412ff03576b48c07e34&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/b114635fc1cc7c9dec86a412ff03576b48c07e34&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1733459" author="xgen-internal-githook" created="Thu, 23 Nov 2017 03:20:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeremy Mikola&apos;, &apos;username&apos;: &apos;jmikola&apos;, &apos;email&apos;: &apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2273&quot; title=&quot;Do not include default write concern in insert, update, and delete commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2273&quot;&gt;&lt;del&gt;CDRIVER-2273&lt;/del&gt;&lt;/a&gt; omit default write concern from CRUD commands&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/c2639c821d3c84745bf2dca5629959926a69e973&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/c2639c821d3c84745bf2dca5629959926a69e973&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="460539">CDRIVER-2383</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="426207">CDRIVER-2274</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="402367">PHPC-976</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="354340">PHPLIB-261</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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht6gkv:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>