<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:03:08 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-4851] AsyncGetter thread got stuck and all db transactions were got failed</title>
                <link>https://jira.mongodb.org/browse/JAVA-4851</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;All the db transactions were suddenly started to fail. Below logs were continuously coming.&#160;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;- Timeout waiting for a pooled item after 162 MILLISECONDS&lt;/em&gt;&lt;br/&gt;
&lt;em&gt;- Too many operations are already waiting for a server. Max number of operations (maxWaitQueueSize) of 500 has been exceeded&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;From the thread dump, we could see, almost all the &lt;em&gt;AsyncGetter&lt;/em&gt; got stuck in TIMED_WAITING state. We took multiple thread dumps in the interval of 5 seconds. In all the thread dumps, observation is same w.r.t &lt;em&gt;AsyncGetter&lt;/em&gt; thread.&lt;br/&gt;
We recovered the setup by restarting the application process. Post restart, no issues were seen and again we took multiple thread dumps and it looks fine i.e. none of the &lt;em&gt;AsyncGetter&lt;/em&gt; thread was in TIMED_WAITING.&lt;/p&gt;

&lt;p&gt;Java Mongo client driver version: 3.12.9&lt;br/&gt;
Mongo server version: 3.6&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;No definitive steps. Issue is random and inconsistent.&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;AdditionalBackground&quot;&gt;&lt;/a&gt;Additional Background&lt;/h4&gt;

&lt;p&gt;Irrespective of load, this issue is coming. Once issue got hit then all the further db transactions are failing.&#160; Attached the stack trace(AsyncGetter) which have taken during issue and non-issue time.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2240705">JAVA-4851</key>
            <summary>AsyncGetter thread got stuck and all db transactions were got failed</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="senthilkumarc88@gmail.com">senthil kumar c</reporter>
                        <labels>
                    </labels>
                <created>Mon, 23 Jan 2023 17:15:38 +0000</created>
                <updated>Fri, 27 Oct 2023 19:48:33 +0000</updated>
                            <resolved>Tue, 14 Feb 2023 12:00:54 +0000</resolved>
                                    <version>3.12.9</version>
                                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5196477" author="dbeng-pm-bot" created="Tue, 14 Feb 2023 12:00:55 +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="5152036" author="jeff.yemin" created="Mon, 30 Jan 2023 18:17:26 +0000"  >&lt;p&gt;If none of the existing topics are helpful, I suggest that you ask your question in a new topic on the community forum.  There are a wider array of community members there that might be able to help, whereas this Jira project is specifically for reporting bugs and requesting new features, not for general support.&lt;/p&gt;

&lt;p&gt;A few things to get you started:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-3927&quot; title=&quot;Rate limit new connection creations (maxConnecting)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-3927&quot;&gt;&lt;del&gt;JAVA-3927&lt;/del&gt;&lt;/a&gt; is not applicable to 3.12.9 and will not fix this issue.  Though in general we recommend upgrading your driver to the latest supported version, which currently is 4.8&lt;/li&gt;
	&lt;li&gt;&quot;Timeout waiting for a pooled item after 162 MILLISECONDS&quot; is very suspicious, as 162 milliseconds is quite short.  So that&apos;s unexpected, and you should check your MongoClient settings/connection string for timeouts that are too short.  If you don&apos;t see anything suspicious there, that could be an error in the exception message.  Are you actually seeing requests time out after 160 milliseconds?&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="5151793" author="JIRAUSER1272462" created="Mon, 30 Jan 2023 17:07:42 +0000"  >&lt;p&gt;Hi Jeffrey,&lt;/p&gt;

&lt;p&gt;Thanks for the response. Actually, we are using community edition only.&lt;/p&gt;

&lt;p&gt;I checked the mongo community forum and found the similar issue reported. But it didn&apos;t help us.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.mongodb.com/community/forums/t/any-chance-to-get-a-new-java-driver-release-with-latest-bug-fixes/106377&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.com/community/forums/t/any-chance-to-get-a-new-java-driver-release-with-latest-bug-fixes/106377&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also we came across the below ticket, &quot;Deadlock in `DefaultConnectionPool`&quot; fixed as part of it.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-3927?anonymousId=2c165c26-3bdd-4ecd-b805-4f2a087ba77b&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/JAVA-3927?anonymousId=2c165c26-3bdd-4ecd-b805-4f2a087ba77b&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Is this applicable to 3.12.9 and also will this fix the reported issue?&lt;/p&gt;

&lt;p&gt;Could you please check it and provide inputs, which would really helps us to get rid of this issue.&#160;&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Senthil&lt;/p&gt;</comment>
                            <comment id="5133788" author="jeff.yemin" created="Mon, 23 Jan 2023 17:42:41 +0000"  >&lt;p&gt;Hi there, thank you for reaching out. As this sounds like a support issue, I wanted to give you some resources to get this question answered more quickly:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Our MongoDB support portal, located at &lt;a href=&quot;https://support.mongodb.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;support.mongodb.com&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Our MongoDB community portal, located &lt;a href=&quot;https://www.mongodb.com/community/forums/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;If you are an Atlas customer, you can also: Click the in-app chat icon in the lower right corner to chat with a MongoDB Support representative OR Click Support in the left-hand navigation to view Developer Resources.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Just in case you have already opened a support case and are not receiving sufficient help, please let me know and I can facilitate escalating your issue.&lt;/p&gt;

&lt;p&gt;Thank you!&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="427390" name="Stack_trace.txt" size="2427" author="senthilkumarc88@gmail.com" created="Mon, 23 Jan 2023 17:11:49 +0000"/>
                    </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|i1aey0:</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>