<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:35 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-2232] Read preference allows int64_t maxStalenessSeconds but URI is limited to int32_t</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2232</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;When &lt;tt&gt;maxStalenessSeconds&lt;/tt&gt; was reverted from a double to an integer and the 90 second limit was added (SPEC-786), the patch for &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1933&quot; title=&quot;Make minimum value of maxStalenessSeconds 90 seconds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1933&quot;&gt;&lt;del&gt;CDRIVER-1933&lt;/del&gt;&lt;/a&gt; reverted the read preference type to &lt;tt&gt;int64_t&lt;/tt&gt; but URI parsing was changed to &lt;tt&gt;int32_t&lt;/tt&gt; (with error reporting for 64-bit integers).&lt;/p&gt;

&lt;p&gt;Was this intentional or an inadvertent inconsistency? The &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/max-staleness/max-staleness.rst&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;specification&lt;/a&gt; does not refer to any upper limit for the option, and &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=schwerin&quot; class=&quot;user-hover&quot; rel=&quot;schwerin&quot;&gt;schwerin&lt;/a&gt;&apos;s comment in SPEC-786 implies that a 64-bit value is perfectly valid.&lt;/p&gt;</description>
                <environment></environment>
        <key id="412531">CDRIVER-2232</key>
            <summary>Read preference allows int64_t maxStalenessSeconds but URI is limited to int32_t</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Aug 2017 20:27:38 +0000</created>
                <updated>Fri, 4 Aug 2017 14:42:38 +0000</updated>
                            <resolved>Fri, 4 Aug 2017 14:42:38 +0000</resolved>
                                    <version>1.6.3</version>
                                                    <component>uri</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1640813" author="jmikola@gmail.com" created="Fri, 4 Aug 2017 14:42:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jesse&quot; class=&quot;user-hover&quot; rel=&quot;jesse&quot;&gt;jesse&lt;/a&gt;: That works for me. The PHP driver already enforces a 32-bit limit when we parse the option through the URI options array and our ReadPreference constructor, so I will keep that in place and ensure we document it.&lt;/p&gt;</comment>
                            <comment id="1640723" author="jesse" created="Fri, 4 Aug 2017 13:36:22 +0000"  >&lt;p&gt;I propose closing this &quot;wontfix&quot;. Fixing it will allow maxStalenessSeconds over 2 billion, which is 63 years, which doesn&apos;t seem useful. In exchange, it&apos;ll add some complexity to the URI parser, which currently benefits from the simplifying assumption that all numbers are int32.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="334486">PHPC-846</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="333428">CDRIVER-1933</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|ht42xr:</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>