<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:04:09 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>[JAVA-5269] Possible bug in Heartbeat Socket settings</title>
                <link>https://jira.mongodb.org/browse/JAVA-5269</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;While adjusting socketsettings, we noticed that heartbeat socketsettings were also getting modified.&#160; This appears to be intentional and makes sense.&#160; However, this code appears to be bugged, in that the connect timeout from socket settings is being propagated to &lt;b&gt;both&lt;/b&gt; the connect and read timeouts of the heartbeat.&#160; From MongoClientSettings:&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;heartbeatSocketSettings = SocketSettings.builder()&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;.readTimeout(builder.heartbeatSocketTimeoutMS == 0&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;font color=&quot;#FF0000&quot;&gt;? socketSettings.getConnectTimeout(MILLISECONDS) &lt;/font&gt;: builder.heartbeatSocketTimeoutMS,&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;MILLISECONDS)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;.connectTimeout(builder.heartbeatConnectTimeoutMS == 0&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;font color=&quot;#FF0000&quot;&gt;? socketSettings.getConnectTimeout(MILLISECONDS)&lt;/font&gt; : builder.heartbeatConnectTimeoutMS,&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;MILLISECONDS)&lt;/tt&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Pleaseprovidetheversionofthedriver.Ifapplicable%2CpleaseprovidetheMongoDBserverversionandtopology%28standalone%2Creplicaset%2Corshardedcluster%29.&quot;&gt;&lt;/a&gt;Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).&lt;/h4&gt;

&lt;p&gt;Java 4.11.1&#160;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;

&lt;p&gt;Configure any new MongoClient, specifying socket settings with a non-zero connect timeout.&#160; Note that this propagates into the heartbeat socket settings read timeout.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2522895">JAVA-5269</key>
            <summary>Possible bug in Heartbeat Socket settings</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="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kroc8@allstate.com">Kenneth Robinson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Dec 2023 16:59:16 +0000</created>
                <updated>Fri, 15 Dec 2023 16:21:58 +0000</updated>
                            <resolved>Fri, 15 Dec 2023 14:26:02 +0000</resolved>
                                                                    <component>SDAM</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5953837" author="JIRAUSER1264546" created="Fri, 15 Dec 2023 16:21:58 +0000"  >&lt;p&gt;Fair enough!&#160; I had gone trolling back through older drivers and noticed it had been like that for a long time.&#160; Can I maybe recommend some comments/javadoc in the driver though?&#160; Its a bit of a surprise to see!&lt;/p&gt;</comment>
                            <comment id="5953483" author="jeff.yemin" created="Fri, 15 Dec 2023 14:25:19 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kroc8%40allstate.com&quot; class=&quot;user-hover&quot; rel=&quot;kroc8@allstate.com&quot;&gt;kroc8@allstate.com&lt;/a&gt;, while it may appear like a bug, the behavior is intentional.  You can find the rationale for it here: &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.rst#socket-timeout-for-monitoring-is-connecttimeoutms&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.rst#socket-timeout-for-monitoring-is-connecttimeoutms&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5944837" author="dbeng-pm-bot" created="Tue, 12 Dec 2023 16:59:19 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kroc8%40allstate.com&quot; class=&quot;user-hover&quot; rel=&quot;kroc8@allstate.com&quot;&gt;kroc8@allstate.com&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                        <customfield id="customfield_23812" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Assigned Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26447"><![CDATA[Java Drivers]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1.  What would you like to communicate to the user about this feature?&lt;br/&gt;
2.  Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3.  Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i2m37w:</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>