<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:55:47 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-1889] Connection Pool fails to release connection if openAsync fails</title>
                <link>https://jira.mongodb.org/browse/JAVA-1889</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Using async mongo driver I create replica set connection to mongo DB:&lt;/p&gt;

&lt;p&gt;ClusterSettings:&lt;br/&gt;
ClusterType.REPLICA_SET&lt;br/&gt;
ClusterConnectionMode.MULTIPLE&lt;/p&gt;

&lt;p&gt;ConnectionPoolSettings:&lt;br/&gt;
maxSize:1&lt;br/&gt;
minSize:1&lt;br/&gt;
maxWaitTime: 1 sec&lt;br/&gt;
maxWaitQueueSize: 100&lt;/p&gt;

&lt;p&gt;SocketSettings:&lt;br/&gt;
connectTimeout: 100 sec&lt;br/&gt;
readTimeout: 50 millis &lt;/p&gt;

&lt;p&gt;Issue: &lt;br/&gt;
When last connection from pool gets &quot;com.mongodb.MongoSocketReadTimeoutException  Timeout while receiving message&quot; no futher connections will be created and all requests will be rejected with &quot;com.mongodb.MongoTimeoutException  Timeout waiting for a pooled item after&quot;&lt;/p&gt;

&lt;p&gt;The main idea in my case, to setup read very small read time out and do not wait server response in case it is slow for the moment. But when last connection (only one for test case) gets TimeOut, ConcurrentPool doesn&apos;t release semaphore permit.&lt;/p&gt;

&lt;p&gt;Check attached logs&lt;/p&gt;







</description>
                <environment>Windows 8</environment>
        <key id="216982">JAVA-1889</key>
            <summary>Connection Pool fails to release connection if openAsync fails</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="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="dorlov">Denis Orlov</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Jul 2015 13:47:05 +0000</created>
                <updated>Tue, 16 May 2017 23:14:13 +0000</updated>
                            <resolved>Wed, 15 Jul 2015 16:35:55 +0000</resolved>
                                    <version>3.0.0</version>
                                    <fixVersion>3.1.0</fixVersion>
                                    <component>Async</component>
                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="967898" author="jeff.yemin" created="Thu, 16 Jul 2015 16:01:12 +0000"  >&lt;p&gt;Fix is now available in the &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/releases/tag/r3.0.3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;3.0.3 release&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="966869" author="xgen-internal-githook" created="Wed, 15 Jul 2015 16:35:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Release the usage connection when failing in openAsync&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1889&quot; title=&quot;Connection Pool fails to release connection if openAsync fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1889&quot;&gt;&lt;del&gt;JAVA-1889&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/9802eb3b239404c0cef9e617e4b96bab0f8089d4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/9802eb3b239404c0cef9e617e4b96bab0f8089d4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="966868" author="xgen-internal-githook" created="Wed, 15 Jul 2015 16:35:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Handle null result in CommandHelper&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1889&quot; title=&quot;Connection Pool fails to release connection if openAsync fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1889&quot;&gt;&lt;del&gt;JAVA-1889&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/62babe9ad5986cb78a797edaf9f5b1a833106848&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/62babe9ad5986cb78a797edaf9f5b1a833106848&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="966866" author="xgen-internal-githook" created="Wed, 15 Jul 2015 16:34:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Release the usage connection when failing in openAsync&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1889&quot; title=&quot;Connection Pool fails to release connection if openAsync fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1889&quot;&gt;&lt;del&gt;JAVA-1889&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/97e160e9a28ba5f288c3ecaae75d8d1b2da36d1a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/97e160e9a28ba5f288c3ecaae75d8d1b2da36d1a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="966865" author="xgen-internal-githook" created="Wed, 15 Jul 2015 16:34:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Handle null result in CommandHelper&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1889&quot; title=&quot;Connection Pool fails to release connection if openAsync fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1889&quot;&gt;&lt;del&gt;JAVA-1889&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/15e14635e80d9167c96e271b9b96fb30c9fccac0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/15e14635e80d9167c96e271b9b96fb30c9fccac0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="966843" author="ross@10gen.com" created="Wed, 15 Jul 2015 16:10:32 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dorlov&quot; class=&quot;user-hover&quot; rel=&quot;dorlov&quot;&gt;dorlov&lt;/a&gt; - I&apos;ve identified the issue and updated the title of the ticket.&lt;/p&gt;</comment>
                            <comment id="966674" author="dorlov" created="Wed, 15 Jul 2015 14:25:08 +0000"  >&lt;p&gt;Ross, test java class is committed. Unfortunately I couldn&apos;t provide you an access to our mongo db.&lt;/p&gt;</comment>
                            <comment id="966650" author="ross@10gen.com" created="Wed, 15 Jul 2015 14:05:58 +0000"  >&lt;p&gt;Thanks for reporting &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dorlov&quot; class=&quot;user-hover&quot; rel=&quot;dorlov&quot;&gt;dorlov&lt;/a&gt;, I&apos;m just going to try to reproduce now.  If you have any test code that reproduces the issue that would help speed the issue on!&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="81905" name="Test.java" size="4199" author="dorlov" created="Wed, 15 Jul 2015 14:25:08 +0000"/>
                            <attachment id="81901" name="case-1-timeout-first request.txt" size="2227" author="dorlov" created="Wed, 15 Jul 2015 13:47:05 +0000"/>
                            <attachment id="81902" name="case-2-last-connection-timed-out.txt" size="2748" author="dorlov" created="Wed, 15 Jul 2015 13:47:05 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000X2WLdIAN]]]></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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsb7f3:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="522">Java Sprint 20</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>