<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:01 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-2056] mongoc_uri_get_option_as_int32() does not allow a localThresholdMS of zero</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2056</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;The &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.rst#nearest&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;server selection spec&lt;/a&gt; states the following:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;To always select the server with the lowest RTT, users should use mode &apos;nearest&apos; without &lt;tt&gt;tag_sets&lt;/tt&gt; or &lt;tt&gt;maxStalenessSeconds&lt;/tt&gt; and set &lt;tt&gt;localThresholdMS&lt;/tt&gt; to zero.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1.6.0/src/mongoc/mongoc-topology.c#L182&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;mongoc_topology_new()&lt;/tt&gt;&lt;/a&gt; initializes its copy of  &lt;tt&gt;localThresholdMS&lt;/tt&gt; by &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1.6.0/src/mongoc/mongoc-topology.c#L256&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;calling &lt;tt&gt;mongoc_uri_get_option_as_int32()&lt;/tt&gt;&lt;/a&gt;. which does not respect a zero value and instead returns the fallback of 15ms (as &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1.6.0/src/mongoc/mongoc-uri.c#L1483&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;documented&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;One solution may be to create a separate getter that respects zero, as was done with &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1.6.0/src/mongoc/mongoc-uri.c#L1014&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;_mongoc_uri_get_max_staleness_option()&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="354191">CDRIVER-2056</key>
            <summary>mongoc_uri_get_option_as_int32() does not allow a localThresholdMS of zero</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="jmikola@mongodb.com">Jeremy Mikola</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Feb 2017 23:16:14 +0000</created>
                <updated>Tue, 30 Jun 2020 19:20:16 +0000</updated>
                            <resolved>Thu, 2 Mar 2017 21:12:29 +0000</resolved>
                                    <version>1.5.4</version>
                    <version>1.6.0</version>
                                    <fixVersion>1.5.5</fixVersion>
                    <fixVersion>1.6.1</fixVersion>
                                    <component>libmongoc</component>
                    <component>uri</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1514803" author="jesse" created="Thu, 2 Mar 2017 21:12:17 +0000"  >&lt;p&gt;r1.6: &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/dcff494ef62475ea2e5628461997ba5da001aca8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/dcff494ef62475ea2e5628461997ba5da001aca8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1514794" author="xgen-internal-githook" created="Thu, 2 Mar 2017 21:06:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2056&quot; title=&quot;mongoc_uri_get_option_as_int32() does not allow a localThresholdMS of zero&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2056&quot;&gt;&lt;del&gt;CDRIVER-2056&lt;/del&gt;&lt;/a&gt;: Parse zero values for localThresholdMS URI option&lt;br/&gt;
Branch: r1.5&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/da86c48e64293398a0643b08050a6b524909153f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/da86c48e64293398a0643b08050a6b524909153f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1511193" author="xgen-internal-githook" created="Tue, 28 Feb 2017 14:37:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@emptysquare.net&apos;}
&lt;p&gt;Message: Merge pull request #424 from jmikola/1.5-cdriver-2056&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2056&quot; title=&quot;mongoc_uri_get_option_as_int32() does not allow a localThresholdMS of zero&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2056&quot;&gt;&lt;del&gt;CDRIVER-2056&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2060&quot; title=&quot;localThresholdMS is not validated as a non-negative value&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2060&quot;&gt;&lt;del&gt;CDRIVER-2060&lt;/del&gt;&lt;/a&gt;: Improve localThresholdMS URI option parsing&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/faa52777ba79797ebab1a231c20a413cd2e310cc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/faa52777ba79797ebab1a231c20a413cd2e310cc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1511191" author="xgen-internal-githook" created="Tue, 28 Feb 2017 14:37:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jmikola&apos;, u&apos;name&apos;: u&apos;Jeremy Mikola&apos;, u&apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2056&quot; title=&quot;mongoc_uri_get_option_as_int32() does not allow a localThresholdMS of zero&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2056&quot;&gt;&lt;del&gt;CDRIVER-2056&lt;/del&gt;&lt;/a&gt;: Parse zero values for localThresholdMS URI option&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/0bc493e5cd000a0e59a1b65d2f0682fbb6bc603a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/0bc493e5cd000a0e59a1b65d2f0682fbb6bc603a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1500255" author="jmikola@gmail.com" created="Thu, 16 Feb 2017 17:23:37 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/424&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/424&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="354283">PHPC-918</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1396206">CDRIVER-3730</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="354276">CDRIVER-2057</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="354307">CDRIVER-2060</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|hsv0dj:</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="1602">C Driver 2017 2 - Feb 10, 2019</customfieldvalue>

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