<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:06 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-1772] mongo.Client blocked for ever</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1772</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I create a mongo Client for db operations like&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;cli.Database(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;database&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;).Collection(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;table&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;).FindOneAndUpdate(xxxxx)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;It works as expected.&lt;/p&gt;

&lt;p&gt;However, after some days, the operations fails with errors like these:&lt;/p&gt;


&lt;p&gt;connection(gd07v.tq.bjzt.qianxin-inc.cn:27017&lt;span class=&quot;error&quot;&gt;&amp;#91;-4788&amp;#93;&lt;/span&gt;) incomplete read of message header: read tcp 172.17.0.103:35266-&amp;gt;10.47.88.7:27017: i/o timeout&lt;br/&gt;
auth error: sasl conversation error: unable to authenticate using mechanism &quot;SCRAM-SHA-256&quot;: context deadline exceeded&lt;br/&gt;
context deadline exceeded&lt;br/&gt;
connection() : dial tcp: i/o timeout&lt;br/&gt;
connection() : dial tcp: i/o timeout&lt;br/&gt;
connection() : dial tcp: i/o timeout&lt;br/&gt;
sasl conversation error: unable to authenticate using mechanism &quot;SCRAM-SHA-256&quot;: context deadline exceeded&lt;br/&gt;
context deadline exceeded&lt;br/&gt;
context deadline exceeded&lt;br/&gt;
incomplete read of message header: read tcp 172.17.0.103:35408-&amp;gt;10.47.88.7:27017: i/o timeout&lt;br/&gt;
auth error: sasl conversation error: unable to authenticate using mechanism &quot;SCRAM-SHA-256&quot;: context deadline exceeded&lt;br/&gt;
auth error: sasl conversation error: unable to authenticate using mechanism &quot;SCRAM-SHA-256&quot;: context deadline exceeded&lt;br/&gt;
connection() : dial tcp: i/o timeout&lt;br/&gt;
auth error: sasl conversation error: unable to authenticate using mechanism &quot;SCRAM-SHA-256&quot;: context deadline exceeded&lt;br/&gt;
connection() : dial tcp: i/o timeout&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Ok, maybe some network problem occurs, but what I expected is it should return back to normal after the problem disappears.&lt;/p&gt;

&lt;p&gt;While, in fact, after the last error message has been reported, the next operation will block and never return.&#160; Even I add a context.WithTimeout context for the operation.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;It keeps blocked even the network has been restored.&#160;&#160;&lt;/p&gt;

&lt;p&gt;How can I recovery from this blocking.&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1520424">GODRIVER-1772</key>
            <summary>mongo.Client blocked for ever</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="13203">Gone away</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="zylthinking@gmail.com">Name No</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Oct 2020 09:38:24 +0000</created>
                <updated>Fri, 27 Oct 2023 20:01:19 +0000</updated>
                            <resolved>Thu, 19 Nov 2020 12:00:03 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                                                            <comments>
                            <comment id="3497380" author="backlog-server-pm" created="Thu, 19 Nov 2020 12:00:03 +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="3475645" author="kevin.albertson" created="Wed, 4 Nov 2020 14:42:00 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=zylthinking%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;zylthinking@gmail.com&quot;&gt;zylthinking@gmail.com&lt;/a&gt;, thank you for reporting!&lt;/p&gt;

&lt;p&gt;A few details may help us diagnose this issue. What version of the Go driver are you using? What system are you running on? And against what MongoDB server version?&lt;/p&gt;

&lt;p&gt;As you indicate, the error &lt;tt&gt;incomplete read of message header: read tcp 172.17.0.103:35266-&amp;gt;10.47.88.7:27017: i/o timeout&lt;/tt&gt; indicates an issue reading a server response from the network.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;While, in fact, after the last error message has been reported, the next operation will block and never return.  Even I add a context.WithTimeout context for the operation.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;That next operation is also a &lt;tt&gt;FindOneAndUpdate&lt;/tt&gt;? If possible, are you able to determine where the blocking occurs (e.g. by attaching a debugger)?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                            <subtask id="1577786">GODRIVER-1814</subtask>
                    </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|hxzx9z:</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>