<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:02 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-2058] heartbeatFrequencyMS is not validated as being less than minHeartbeatFrequencyMS</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2058</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;The SDAM spec states the following for &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#heartbeatfrequencyms&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;heartbeatFrequencyMS&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;For both multi- and single-threaded drivers, the driver MUST NOT permit users to configure it less than minHeartbeatFrequencyMS (500ms).&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-private.h#L27&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;MONGOC_TOPOLOGY_MIN_HEARTBEAT_FREQUENCY_MS&lt;/tt&gt;&lt;/a&gt; is defined as 500, but that value is never used to validate the &lt;tt&gt;heartbeatFrequencyMS&lt;/tt&gt; option. It is only referenced &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1.6.0/src/mongoc/mongoc-topology.c#L555&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;mongoc_topology_select_server_id()&lt;/tt&gt;&lt;/a&gt; for computing the allowed scan time in single-threaded mode and &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1.6.0/src/mongoc/mongoc-topology.c#L954&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;_mongoc_topology_run_background()&lt;/tt&gt;&lt;/a&gt; when computing a shorter interval for a requested scan.&lt;/p&gt;

&lt;p&gt;Should libmongoc report some error when a value smaller than 500 is specified for heartbeatFrequencyMS? Alternatively, are invalid heartbeatFrequencyMS values ignored based on the aforementioned topology scanner code, which references &lt;tt&gt;MONGOC_TOPOLOGY_MIN_HEARTBEAT_FREQUENCY_MS&lt;/tt&gt;?&lt;/p&gt;</description>
                <environment></environment>
        <key id="354289">CDRIVER-2058</key>
            <summary>heartbeatFrequencyMS is not validated as being less than minHeartbeatFrequencyMS</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, 16 Feb 2017 15:42:50 +0000</created>
                <updated>Wed, 11 Sep 2019 19:05:44 +0000</updated>
                            <resolved>Wed, 22 Mar 2017 20:44:45 +0000</resolved>
                                    <version>1.6.0</version>
                                    <fixVersion>1.7.0</fixVersion>
                                    <component>libmongoc</component>
                    <component>uri</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1530736" author="xgen-internal-githook" created="Wed, 22 Mar 2017 20:44:53 +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-2058&quot; title=&quot;heartbeatFrequencyMS is not validated as being less than minHeartbeatFrequencyMS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2058&quot;&gt;&lt;del&gt;CDRIVER-2058&lt;/del&gt;&lt;/a&gt; prohibit small heartbeatfrequencyms values&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/8cf3e639f72f77dc092995ea9223791382adf626&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/8cf3e639f72f77dc092995ea9223791382adf626&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1505281" author="jesse" created="Tue, 21 Feb 2017 18:46:06 +0000"  >&lt;p&gt;Reading the code for mongoc_topology_select_server_id there&apos;s some question about whether we&apos;re up to spec at all. We should wait MAX(minheartbeatfrequency, heartbeatfrequency) between server checks, but it looks like we wait minheartbeatfrequency + heartbeatfrequency?&lt;/p&gt;

&lt;p&gt;Additionally, as Jeremy says, it should be an error to specify:&lt;/p&gt;

&lt;p&gt;mongodb://host/?heartbeatfrequencyms=1&lt;/p&gt;</comment>
                            <comment id="1500420" author="jmikola@gmail.com" created="Thu, 16 Feb 2017 19:24:24 +0000"  >&lt;p&gt;Cross-referencing with &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;, as it may make sense to use similar logic as &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/424/files#diff-c1dfae86645148a1b148cd418f1a52f1R1332&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;mongoc_uri_get_local_staleness_option()&lt;/tt&gt;&lt;/a&gt; and simply log a warning and return &lt;tt&gt;MONGOC_TOPOLOGY_MIN_HEARTBEAT_FREQUENCY_MS&lt;/tt&gt; for an invalid value. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <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|hswbr3:</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="1641">C Driver 2017 3 - March 7</customfieldvalue>

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