<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:20:50 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-131] Drivers should only send {w:1} if and when the user has specified.</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-131</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;According the the &lt;a href=&quot;http://docs.mongodb.org/manual/release-notes/drivers-write-concern/#id1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;documentation&lt;/a&gt;, a driver should not send any arguments along with GLE (or to the new write commands) unless the user has specified some.  &lt;/p&gt;

&lt;p&gt;The server interprets a no-arg GLE (or empty document write concern for the new write commands) as an indication to use the server&apos;s defaults.  If a driver sends &lt;/p&gt;
{w:1}
&lt;p&gt; as the &quot;default&quot;, then it is always overriding the server&apos;s getLastErrorDefaults.&lt;/p&gt;

&lt;p&gt;In practice, this is likely not a big deal as a high majority of users don&apos;t even know that getLastErrorDefaults exist and, of the ones that do, most wouldn&apos;t be changing it.  As such, this is a low priority.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;mongodb://localhost
	&lt;ul&gt;
		&lt;li&gt;GLE: { getLastError: 1}&lt;/li&gt;
		&lt;li&gt;Write Commands: don&apos;t include a writeConcern in the command.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;mongodb://localhost?w=0
	&lt;ul&gt;
		&lt;li&gt;GLE: don&apos;t send one&lt;/li&gt;
		&lt;li&gt;Write Commands: { writeConcern : { w: 0 } }.  In addition, the driver is responsible for not blocking while waiting on the result.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;mongodb://localhost?w=1
	&lt;ul&gt;
		&lt;li&gt;GLE: { getLastError: 1, w: 1 }&lt;/li&gt;
		&lt;li&gt;Write Commands: { writeConcern: { w: 1 } }&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;mongodb://localhost?journal=true
	&lt;ul&gt;
		&lt;li&gt;GLE: { getLastError :  1, j: true }&lt;/li&gt;
		&lt;li&gt;Write Commands: { writeConcern : { j : true } }&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="102022">DRIVERS-131</key>
            <summary>Drivers should only send {w:1} if and when the user has specified.</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="9">Done</resolution>
                                        <assignee username="barrie">Barrie Segal</assignee>
                                    <reporter username="craig.wilson@mongodb.com">Craig Wilson</reporter>
                        <labels>
                            <label>writeconcern</label>
                    </labels>
                <created>Thu, 12 Dec 2013 15:57:33 +0000</created>
                <updated>Mon, 15 Apr 2019 17:29:32 +0000</updated>
                            <resolved>Mon, 8 Feb 2016 22:10:22 +0000</resolved>
                                                                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1167095" author="jmikola@gmail.com" created="Mon, 8 Feb 2016 22:09:58 +0000"  >&lt;p&gt;Legacy PHP driver should already handle this. PHPC and HHVM handled by libmongoc. Not relevant to PHPLIB.&lt;/p&gt;</comment>
                            <comment id="841842" author="acm" created="Tue, 3 Mar 2015 17:56:25 +0000"  >&lt;p&gt;Validating for C&amp;#43;&amp;#43;11 since validated for C&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="109432">MOTOR-19</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="113343">PYTHON-644</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="228969">JAVA-1955</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="131125">CXX-182</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="107440">SERVER-12465</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_23952" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Driver Compliance</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<style type='text/css'>
         #scriptField, #scriptField *{
                border: 1px solid black;
            }

            #scriptField{
                border-collapse: collapse;
            }

            #scriptField td {
                text-align: center; /* Center-align text in table cells */
            }

            #scriptField td.key {
                text-align: left; /* Left-align text in the Key column */
            }

            #scriptField a {
                text-decoration: none; /* Remove underlines from links */
                border: none; /* Remove border from links */
            }
            
            /* Add green background color to cells with FixVersion */
            #scriptField td.hasFixVersion {
                background-color: #00FF00; /* Green color code */
            }

            /* Center-align the first row headers */
            #scriptField th {
                text-align: center;
            }
        </style>
<table id='scriptField'>
  <tr>
    <th>Key</th>
    <th>Status/Resolution</th>
    <th>FixVersion</th>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/MOTOR-19'>MOTOR-19</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>0.4</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PYTHON-644'>PYTHON-644</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>2.8, 3.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PERL-493'>PERL-493</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>1.0.2</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/JAVA-1955'>JAVA-1955</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>3.2.0</td>
  </tr>
</table>]]></customfieldvalue>


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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>93344</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>