<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:13:37 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-1925] Detecting default or unset value with mongoc_read_prefs_get_max_staleness_seconds()</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1925</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;blockquote&gt;&lt;p&gt;Clients estimate the staleness of each secondary, and select for reads only those secondaries whose estimated staleness is less than or equal to maxStalenessSeconds. The default is -1, meaning no maximum staleness.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Is there a particular reason that &lt;tt&gt;NO_MAX_STALENESS&lt;/tt&gt; is private, unlike &lt;tt&gt;MONGOC_WRITE_CONCERN_W_DEFAULT&lt;/tt&gt;? As-is, this pushes developers to rely on a magic number in their application to detect a default or simply determine if a read preference has a maxStalenessSeconds option applied to it.&lt;/p&gt;

&lt;p&gt;Should developers simply assume that any invalid value (i.e. &amp;lt;= 0) is effectively unset?&lt;/p&gt;</description>
                <environment></environment>
        <key id="332605">CDRIVER-1925</key>
            <summary>Detecting default or unset value with mongoc_read_prefs_get_max_staleness_seconds()</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="-1">Unassigned</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Nov 2016 16:44:18 +0000</created>
                <updated>Wed, 11 Sep 2019 19:04:32 +0000</updated>
                            <resolved>Fri, 25 Nov 2016 22:36:02 +0000</resolved>
                                    <version>1.5.0</version>
                                    <fixVersion>1.5.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1442522" author="jesse" created="Fri, 25 Nov 2016 22:36:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/3bd52c3c285445310517c574b32815db54285972&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/3bd52c3c285445310517c574b32815db54285972&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1436961" author="jesse" created="Thu, 17 Nov 2016 20:34:35 +0000"  >&lt;p&gt;Agreed, we can move NO_MAX_STALENESS to a public header, give it a more dignified name, and document it. Whoever would like to grab this ticket, go ahead. =)&lt;/p&gt;</comment>
                            <comment id="1436768" author="bjori" created="Thu, 17 Nov 2016 17:58:35 +0000"  >&lt;p&gt;I think &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jmikola&quot; class=&quot;user-hover&quot; rel=&quot;jmikola&quot;&gt;jmikola&lt;/a&gt; has a point. There isn&apos;t any reason for wrapping drivers to concerns themselves with the deep underlaying specs that mongoc implements on behalf the wrapped drivers.&lt;/p&gt;</comment>
                            <comment id="1436713" author="jesse" created="Thu, 17 Nov 2016 17:17:15 +0000"  >&lt;p&gt;No particular reason, simply limiting public API as much as possible. The spec says -1 means default, so you should assume that -1 means default.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="330179">PHPC-827</issuekey>
        </issuelink>
                            </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|hsrzlb:</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>