<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:20 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>[GODRIVER-1879] topology.connection TLS handshake never times out</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1879</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;With TLS configured on a toplogy, the the &lt;tt&gt;connection.connect()&lt;/tt&gt; method can hang forever. From what I can tell, timeouts are applied to all operations in that method&#160;&lt;em&gt;except&lt;/em&gt;&#160;&lt;tt&gt;tls.Client.Handshake -&lt;/tt&gt;&#160;if the remote server is up but mongod is hung, the &lt;tt&gt;Handshake&lt;/tt&gt; method hangs indefinitely.&lt;/p&gt;

&lt;p&gt;We discovered this bug after noticing that the driver continues to route traffic to servers that have crashed. If a mongod exits in a way that triggers a core dump (segfault, i/o error, etc.), the core dump can take a couple of minutes to write to disk - during this time, no topology updates are triggered in the driver, heartbeats hang, and server selection still returns the bad server.&lt;/p&gt;

&lt;p&gt;This is fairly simple to repro:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Start a mongod with SSL support&lt;/li&gt;
	&lt;li&gt;Start this slightly modified version of the &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/examples/server_monitoring/main.go&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;server_monitoring example&lt;/a&gt;: &lt;a href=&quot;https://gist.github.com/bfink13/df7a72b46ce5c21ae9888ff60a36d54e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/bfink13/df7a72b46ce5c21ae9888ff60a36d54e&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Send a SIGSTOP to the mongod process: &lt;tt&gt;kill -STOP &amp;lt;pid of mongod&amp;gt;&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;Observe that topology updates stop being generated&lt;/li&gt;
	&lt;li&gt;If the mongod process is resumed (&lt;tt&gt;kill -CONT &amp;lt;pid of mongod&amp;gt;&lt;/tt&gt;) or killed, topology updates resume&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="1618024">GODRIVER-1879</key>
            <summary>topology.connection TLS handshake never times out</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="13201">Fixed</resolution>
                                        <assignee username="divjot.arora@mongodb.com">Divjot Arora</assignee>
                                    <reporter username="bfink@stripe.com">Brian Fink</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Feb 2021 16:57:26 +0000</created>
                <updated>Sat, 28 Oct 2023 11:37:54 +0000</updated>
                            <resolved>Mon, 8 Mar 2021 17:48:58 +0000</resolved>
                                    <version>1.3.7</version>
                    <version>1.4.6</version>
                                    <fixVersion>1.4.7</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3651310" author="xgen-internal-githook" created="Mon, 8 Mar 2021 02:48:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Divjot Arora&apos;, &apos;email&apos;: &apos;divjot.arora@10gen.com&apos;, &apos;username&apos;: &apos;divjotarora&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1879&quot; title=&quot;topology.connection TLS handshake never times out&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1879&quot;&gt;&lt;del&gt;GODRIVER-1879&lt;/del&gt;&lt;/a&gt; Apply connectTimeoutMS to TLS handshake (#594)&lt;br/&gt;
Branch: release/1.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/3cf67b94f793d2a1fd062b8d56b730b4d7c4b7e9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/3cf67b94f793d2a1fd062b8d56b730b4d7c4b7e9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3651307" author="xgen-internal-githook" created="Mon, 8 Mar 2021 02:41:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Divjot Arora&apos;, &apos;email&apos;: &apos;divjot.arora@10gen.com&apos;, &apos;username&apos;: &apos;divjotarora&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1879&quot; title=&quot;topology.connection TLS handshake never times out&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1879&quot;&gt;&lt;del&gt;GODRIVER-1879&lt;/del&gt;&lt;/a&gt; Apply connectTimeoutMS to TLS handshake (#594)&lt;br/&gt;
Branch: release/1.5&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/2a5f9a4fa2c39e810a954a2d68757a81bc4ed8c1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/2a5f9a4fa2c39e810a954a2d68757a81bc4ed8c1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3651306" author="xgen-internal-githook" created="Mon, 8 Mar 2021 02:40:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Divjot Arora&apos;, &apos;email&apos;: &apos;divjot.arora@10gen.com&apos;, &apos;username&apos;: &apos;divjotarora&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1879&quot; title=&quot;topology.connection TLS handshake never times out&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1879&quot;&gt;&lt;del&gt;GODRIVER-1879&lt;/del&gt;&lt;/a&gt; Apply connectTimeoutMS to TLS handshake (#594)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/5c0f679db9314d18c64c2f96f9c4c23ac867975e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/5c0f679db9314d18c64c2f96f9c4c23ac867975e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3640284" author="divjot.arora" created="Mon, 1 Mar 2021 18:48:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bfink%40stripe.com&quot; class=&quot;user-hover&quot; rel=&quot;bfink@stripe.com&quot;&gt;bfink@stripe.com&lt;/a&gt;&#160;Our policy is to backport onto the latest released minor version (currently 1.4.x). We&apos;ve made exceptions in cases where the minor version was very new, but this will be the seventh patch release for the 1.4.x branch and the 1.3.x branch is no longer tracked by our CI system, so we feel that backporting to it would be too risky at this point.&lt;/p&gt;

&lt;p&gt;&amp;#8211; Divjot&lt;/p&gt;</comment>
                            <comment id="3637694" author="JIRAUSER1258653" created="Fri, 26 Feb 2021 19:28:58 +0000"  >&lt;p&gt;Great!&lt;/p&gt;

&lt;p&gt;Is there any chance this could be backported to 1.3.x?&lt;/p&gt;</comment>
                            <comment id="3637675" author="divjot.arora" created="Fri, 26 Feb 2021 19:20:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bfink%40stripe.com&quot; class=&quot;user-hover&quot; rel=&quot;bfink@stripe.com&quot;&gt;bfink@stripe.com&lt;/a&gt;&#160;I put up a new PR for this ticket:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/594&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/594&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="3635271" author="JIRAUSER1258653" created="Thu, 25 Feb 2021 16:35:14 +0000"  >&lt;p&gt;Awesome, thank you!&lt;/p&gt;</comment>
                            <comment id="3635254" author="divjot.arora" created="Thu, 25 Feb 2021 16:30:17 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bfink%40stripe.com&quot; class=&quot;user-hover&quot; rel=&quot;bfink@stripe.com&quot;&gt;bfink@stripe.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;This ticket was incorrectly closed. I&apos;ve moved it back to &quot;Investigating&quot; so it won&apos;t be auto-closed again. I plan on putting up a PR for this early next week so that we can include it in our upcoming 1.4.7 release.&lt;/p&gt;</comment>
                            <comment id="3634900" author="JIRAUSER1258653" created="Thu, 25 Feb 2021 14:28:01 +0000"  >&lt;p&gt;I think this was closed incorrectly - there has been activity on the PR linked above, and this bug still exists on master.&lt;/p&gt;</comment>
                            <comment id="3634676" author="backlog-server-pm" created="Thu, 25 Feb 2021 12:00:00 +0000"  >&lt;p&gt;There hasn&apos;t been any recent activity on this ticket, so we&apos;re resolving it. Thanks for reaching out! Please feel free to comment on this if you&apos;re able to provide more information.&lt;/p&gt;</comment>
                            <comment id="3609868" author="divjot.arora" created="Wed, 10 Feb 2021 18:30:48 +0000"  >&lt;p&gt;There&apos;s discussion about how this should be handled on this &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/574&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;PR&lt;/a&gt;. Moving to &quot;Waiting for Reporter&quot; while we wait for a response there.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

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