<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:21:17 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-336] Change &quot;no maxStalenessSeconds&quot; value from 0 to -1</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-336</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;In &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-335&quot; title=&quot; Update Max Staleness implementation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-335&quot;&gt;&lt;del&gt;DRIVERS-335&lt;/del&gt;&lt;/a&gt; we rename maxStalenessMS to maxStalenessSeconds and change the smallest value for it. In this ticket, we change the behaviors for maxStalenessSeconds=0 and maxStalenessSeconds=-1.&lt;/p&gt;

&lt;p&gt;The spec originally specified 0 for &quot;no max&quot;, but that value is confusing. Users will expect 0 to mean &quot;no lag&quot;. The spec has been updated to use -1 instead (0 is now illegal).&lt;/p&gt;

&lt;p&gt;A MongoClient with this connection string has no max staleness, the same as if &quot;maxStalenessSeconds&quot; were omitted from the connection string:&lt;/p&gt;

&lt;p&gt;mongodb://host/?readPreference=secondary&amp;amp;maxStalenessSeconds=-1&lt;/p&gt;

&lt;p&gt;This connection string with mode &quot;primary&quot; is valid and does not raise an error:&lt;/p&gt;

&lt;p&gt;mongodb://host/?readPreference=primary&amp;amp;maxStalenessSeconds=-1&lt;/p&gt;

&lt;p&gt;Same with this implicit mode &quot;primary&quot;, this is valid too:&lt;/p&gt;

&lt;p&gt;mongodb://host/?maxStalenessSeconds=-1&lt;/p&gt;

&lt;p&gt;In code, -1 is an acceptable value meaning &quot;no max staleness&quot;. E.g. in PyMongo:&lt;/p&gt;

&lt;p&gt;MongoClient(readPreference=&quot;secondary&quot;, maxStalenessSeconds=-1)&lt;/p&gt;

&lt;p&gt;You MAY accept null in code, too: up to you.&lt;/p&gt;

&lt;p&gt;These are no longer valid:&lt;/p&gt;

&lt;p&gt;mongodb://host/?readPreference=secondary&amp;amp;maxStalenessSeconds=0&lt;br/&gt;
mongodb://host/?readPreference=primary&amp;amp;maxStalenessSeconds=0&lt;/p&gt;

&lt;p&gt;You can choose whether to explicitly prohibit 0 and raise an error as soon as the URI is parsed, or later when you&apos;re in server selection you could raise an error since maxStalenessSeconds=0 is too small: maxStalenessSeconds must be at least heartbeatFrequencyMS + idleWriteFrequencyMS (&lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-335&quot; title=&quot; Update Max Staleness implementation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-335&quot;&gt;&lt;del&gt;DRIVERS-335&lt;/del&gt;&lt;/a&gt;).&lt;/p&gt;</description>
                <environment></environment>
        <key id="330690">DRIVERS-336</key>
            <summary>Change &quot;no maxStalenessSeconds&quot; value from 0 to -1</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="-1">Unassigned</assignee>
                                    <reporter username="rathi.gnanasekaran">Rathi Gnanasekaran</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Nov 2016 14:41:21 +0000</created>
                <updated>Mon, 15 Apr 2019 17:27:37 +0000</updated>
                            <resolved>Thu, 8 Dec 2016 21:02:06 +0000</resolved>
                                                                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1452765" author="rathi.gnanasekaran" created="Thu, 8 Dec 2016 21:02:06 +0000"  >&lt;p&gt;Closing ticket as all linked tickets are resolved. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="331629">JAVA-2383</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="333333">CSHARP-1833</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="333332">CXX-1139</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="333341">NODE-858</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="333336">PHPC-840</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="333337">RUBY-1177</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="325405">PYTHON-1169</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="330389">CDRIVER-1908</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="330153">DRIVERS-335</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="269200">DRIVERS-293</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="333400">DRIVERS-340</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/PYTHON-1169'>PYTHON-1169</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>3.4</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CDRIVER-1908'>CDRIVER-1908</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>1.5.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CSHARP-1833'>CSHARP-1833</a>
    </td>
    <td>Duplicate</td>
    <td class='hasFixVersion'>2.4</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/SCALA-285'>SCALA-285</a>
    </td>
    <td>Done</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PHPC-840'>PHPC-840</a>
    </td>
    <td>Duplicate</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/RUBY-1177'>RUBY-1177</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>2.4.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CXX-1139'>CXX-1139</a>
    </td>
    <td>Duplicate</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/JAVA-2383'>JAVA-2383</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>3.4.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/NODE-858'>NODE-858</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>2.2.12</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PERL-684'>PERL-684</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>1.6.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|hsrpn3:</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>