<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:11 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-1815] mongo client has i/o timeout after network exception</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1815</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I have a micro-service based on mongo client.&lt;/p&gt;

&lt;p&gt;All is well,&#160;however, after some days, A query operations Find(xxx) failed with errors as below:&lt;/p&gt;

&lt;p&gt;connection(192.168.20.194:3717&lt;span class=&quot;error&quot;&gt;&amp;#91;-123425&amp;#93;&lt;/span&gt;) incomplete read of message header: read tcp 10.233.26.252:47192-&amp;gt;192.168.20.194:3717: use of closed network connection&lt;/p&gt;

&lt;p&gt;and the following query operations, such as a lot of Operations Find(xxx),&#160; failed with errors like these:&lt;/p&gt;

&lt;p&gt;context deadline exceeded&lt;/p&gt;

&lt;p&gt;there is no one connection between my-server and mongo-server when I type command `netstat -apn`.&lt;/p&gt;

&lt;p&gt;Then I tried to capture tcp package by tcpdump.&#160; also no one tcp package occured.&lt;/p&gt;</description>
                <environment>mongodb-server 3.4&lt;br/&gt;
mongo-go-driver 1.3.2</environment>
        <key id="1578125">GODRIVER-1815</key>
            <summary>mongo client has i/o timeout after network exception</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="9">Done</resolution>
                                        <assignee username="benji.rewis@mongodb.com">Benji Rewis</assignee>
                                    <reporter username="760802635@qq.com">Evan Pang</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Dec 2020 04:28:55 +0000</created>
                <updated>Fri, 29 Jan 2021 17:52:59 +0000</updated>
                            <resolved>Fri, 29 Jan 2021 17:52:59 +0000</resolved>
                                    <version>1.3.2</version>
                                                    <component>Networking</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3590085" author="benji.rewis" created="Fri, 29 Jan 2021 17:52:59 +0000"  >&lt;p&gt;Closing this issue for the time being &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=760802635%40qq.com&quot; class=&quot;user-hover&quot; rel=&quot;760802635@qq.com&quot;&gt;760802635@qq.com&lt;/a&gt;. If you have any other questions or concerns after updating, feel free to comment on this ticket again. And, thanks again for you report!&lt;/p&gt;

&lt;p&gt;-Benji&lt;/p&gt;</comment>
                            <comment id="3589050" author="JIRAUSER1258098" created="Fri, 29 Jan 2021 08:28:21 +0000"  >&lt;p&gt;Hi Benji,&lt;/p&gt;

&lt;p&gt;Thanks for your feedback. And I will upgrade driver version to 1.3.4 on production env. Any question will let u known, thanks again.&lt;/p&gt;</comment>
                            <comment id="3583645" author="benji.rewis" created="Tue, 26 Jan 2021 21:07:51 +0000"  >&lt;p&gt;Hello again!&lt;/p&gt;

&lt;p&gt;Apologies for the delay, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=760802635%40qq.com&quot; class=&quot;user-hover&quot; rel=&quot;760802635@qq.com&quot;&gt;760802635@qq.com&lt;/a&gt;. Thanks again for your report. We&#8217;re still working on reproducing the error, but it could be caused by a number of issues.&lt;/p&gt;

&lt;p&gt;Broadly, network errors can be classified into timeout errors and non-timeout errors. As of driver version 1.3.4, when a non-timeout error occurs, we clear the whole connection pool, and when a timeout error occurs, we close the single, checked-out connection.&lt;/p&gt;

&lt;p&gt;We recommend that you upgrade your driver version to at least version 1.3.4, as a bug (&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1620&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;GODRIVER-1620&lt;/a&gt;) was fixed where timeout errors would incorrectly clear the whole pool. That could be the cause of those &#8220;context deadline exceeded&#8221; errors.&lt;/p&gt;

&lt;p&gt;It&#8217;s also possible that the timeout of your client is not long enough, and that after a connection has been closed due to an error, the client does not have enough time to find a new connection before it times out.&lt;/p&gt;

&lt;p&gt;Finally, the &#8220;context deadline exceeded&#8221; errors could be happening because your Mongo servers are unhealthy, and there are no remaining, selectable servers available in the deployment.&lt;/p&gt;

&lt;p&gt;We&#8217;ll continue trying to reproduce the error, but hopefully that&#8217;s helpful in the meantime&lt;/p&gt;

&lt;p&gt;-Benji&lt;/p&gt;</comment>
                            <comment id="3560830" author="divjot.arora" created="Tue, 12 Jan 2021 18:34:40 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=760802635%40qq.com&quot; class=&quot;user-hover&quot; rel=&quot;760802635@qq.com&quot;&gt;760802635@qq.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for the bug report. As an update, I&apos;m working on a reproduction script for the issue and will try to test it on different driver versions to see if any of the changes we&apos;ve made after the 1.3.2 release alleviate it.&lt;/p&gt;

&lt;p&gt;&amp;#8211; Divjot&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1577786">GODRIVER-1814</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|hy9a7r:</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>