<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:00:22 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-3761] ConcurrentPool doesn&apos;t release semaphore permit properly after com.mongodb.MongoSocketException:&lt;host_name_of_read_replica&gt;</title>
                <link>https://jira.mongodb.org/browse/JAVA-3761</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;One of our application&apos;s node was faced with some network issues,&#160;yet the node did not completely restore its operation after the issue was gone.&#160;&#160;&lt;br/&gt;
It faced the increased number of errors &quot;&lt;em&gt;com.mongodb.MongoTimeoutException: Timeout waiting for a pooled item after.&lt;/em&gt;.&quot;&lt;/p&gt;

&lt;p&gt;During network issues&#160;connections were closed because of&#160;&lt;em&gt;com.mongodb.MongoSocketReadTimeoutException: Timeout while receiving message&lt;/em&gt;.&#160;After network issues were gone opening new connections were failed for only one of two read replicas with&#160;&lt;br/&gt;
com.mongodb.MongoSocketException:&amp;lt;host_name_of_read_replica&amp;gt;&lt;br/&gt;
For second read replica connections were opened successfully.&lt;/p&gt;

&lt;p&gt;Mongo Async driver v3.11.2&lt;/p&gt;

&lt;p&gt;ClusterSettings:&#160;&lt;br/&gt;
type=REPLICA_SET_SECONDARY&lt;/p&gt;

&lt;p&gt;ConnectionOptions: maxPoolSize=10&amp;amp;minPoolSize=10&amp;amp;w=1&amp;amp;wtimeoutMS=500&amp;amp;j=0&amp;amp;connectTimeoutMS=500&amp;amp;socketTimeoutMS=2000&amp;amp;readPreference=secondaryPreferred&amp;amp;waitQueueMultiple=5&amp;amp;waitQueueTimeoutMS=2000&amp;amp;replicaSet=rs0&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Issue:&lt;/b&gt;&lt;br/&gt;
I assume that during com.&lt;em&gt;mongodb.MongoSocketException:&amp;lt;host_name_of_read_replica&amp;gt;&lt;/em&gt; ConcurrentPool doesn&apos;t release semaphore permit properly. As a result, application faced with errors like&#160;&quot;&lt;em&gt;com.mongodb.MongoTimeoutException: Timeout waiting for a pooled item after.&lt;/em&gt;.&quot;&lt;/p&gt;

&lt;p&gt;Please see the attached stacktrace with some obfuscation for more detailes.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1378523">JAVA-3761</key>
            <summary>ConcurrentPool doesn&apos;t release semaphore permit properly after com.mongodb.MongoSocketException:&lt;host_name_of_read_replica&gt;</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="3">Duplicate</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="anastasiya.kaluzhonak@gmail.com">Anastasiya Kaluzhonak</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Jun 2020 16:22:33 +0000</created>
                <updated>Mon, 3 Aug 2020 14:12:04 +0000</updated>
                            <resolved>Mon, 3 Aug 2020 14:12:04 +0000</resolved>
                                    <version>3.11.2</version>
                                                    <component>Async</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3287419" author="jeff.yemin" created="Thu, 16 Jul 2020 01:59:16 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=anastasiya.kaluzhonak%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;anastasiya.kaluzhonak@gmail.com&quot;&gt;anastasiya.kaluzhonak@gmail.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It looks like this duplicates &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-3690&quot; title=&quot;Domain name resolution issues break DefaultConnectionPool when using getAsync&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-3690&quot;&gt;&lt;del&gt;JAVA-3690&lt;/del&gt;&lt;/a&gt;, which will be fixed in the upcoming 4.1.0 release (and is available in the 4.1.0-rc0 pre-release).  &lt;/p&gt;

&lt;p&gt;Let me know if you can test out that release.  We can also consider backporting that fix to a 3.12 patch release.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="1309727">JAVA-3690</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="265752" name="Error in background maintenance task.txt" size="3767" author="anastasiya.kaluzhonak@gmail.com" created="Thu, 11 Jun 2020 16:09:11 +0000"/>
                            <attachment id="265751" name="Error in callback.txt" size="27956" author="anastasiya.kaluzhonak@gmail.com" created="Thu, 11 Jun 2020 16:09:11 +0000"/>
                            <attachment id="265750" name="Error in monitor thread.txt" size="1880" author="anastasiya.kaluzhonak@gmail.com" created="Thu, 11 Jun 2020 16:09:11 +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|hr6tg7:</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>