<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:22:25 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>[DRIVERS-809] Improve testing around default writeConcern</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-809</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;The existing tests for writeConcern imply that an empty document is a valid writeConcern to send to the server.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/read-write-concern/tests/document/write-concern.json#L3-L10&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/blob/master/source/read-write-concern/tests/document/write-concern.json#L3-L10&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In fact, the default writeConcern is no writeConcern (i.e. don&apos;t send the writeConcern field at all). This has come up in the past related to drivers accidentally overriding &lt;a href=&quot;https://docs.mongodb.com/manual/reference/replica-configuration/#replica-set-configuration-document-example&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;getLastErrorDefaults&lt;/a&gt;. It is coming up again in relation to PM-900.&lt;/p&gt;

&lt;p&gt;There have been two bugs filed and fixed in drivers related to this - &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; and &lt;a href=&quot;https://jira.mongodb.org/browse/PYTHON-1523&quot; title=&quot;PyMongo adds empty writeConcern to commands with Python 2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PYTHON-1523&quot;&gt;&lt;del&gt;PYTHON-1523&lt;/del&gt;&lt;/a&gt;. Other drivers may have the same bug, since our existing tests don&apos;t catch it.&lt;/p&gt;

&lt;p&gt;Please add tests to ensure that drivers don&apos;t add the writeConcern option with an empty document to write commands when the application has not specified a write concern.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1125038">DRIVERS-809</key>
            <summary>Improve testing around default writeConcern</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="-1">Unassigned</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Fri, 31 Jan 2020 21:59:04 +0000</created>
                <updated>Mon, 3 Feb 2020 18:44:19 +0000</updated>
                            <resolved>Mon, 3 Feb 2020 18:44:19 +0000</resolved>
                                                                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2780883" author="esha.bhargava" created="Mon, 3 Feb 2020 18:44:19 +0000"  >&lt;p&gt;Same as &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-440&quot; title=&quot;Improve testing around default writeConcern&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-440&quot;&gt;&lt;del&gt;DRIVERS-440&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hwavrb:</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>