<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:36 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-574] Improve exception messaging when failing fast waiting for a connection</title>
                <link>https://jira.mongodb.org/browse/JAVA-574</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The maximum number of threads that the driver allows to have waiting in a queue for a connection from the pool is &lt;/p&gt;

&lt;p&gt;_options.connectionsPerHost * _options.threadsAllowedToBlockForConnectionMultiplier&lt;/p&gt;

&lt;p&gt;which defaults to 50  (10 * 5).&lt;/p&gt;

&lt;p&gt;Past that number the driver throws a SemaphoresOut exception with the message &quot;Out of semaphores to get db connection&quot;.&lt;/p&gt;

&lt;p&gt;This is confusing to users, since the fact that the driver uses a semaphore to enforce this limit is not something users generally need to be aware of.&lt;/p&gt;

&lt;p&gt;The driver should throw a less confusing exception with a message more like &quot;Exceeded the maximum number of threads that may be waiting for a connection to become available from the pool.  The maximum is calculated as the product of connectionsPerHost (10) and threadsAllowedToBlockForConnectionMultiplier (5) in com.mongodb.MongoOptions&quot;&lt;/p&gt;</description>
                <environment></environment>
        <key id="39563">JAVA-574</key>
            <summary>Improve exception messaging when failing fast waiting for a connection</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="bryan.reinero">Bryan Reinero</assignee>
                                    <reporter username="jeff.yemin@mongodb.com">Jeffrey Yemin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 May 2012 20:35:53 +0000</created>
                <updated>Mon, 26 Nov 2012 21:50:41 +0000</updated>
                            <resolved>Fri, 16 Nov 2012 21:20:40 +0000</resolved>
                                                    <fixVersion>2.10.0</fixVersion>
                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="191701" author="jeff.yemin" created="Fri, 16 Nov 2012 21:20:25 +0000"  >&lt;p&gt;I had a typo on my commit message.  This fix is actually for this bug:&lt;/p&gt;

&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-11-16T21:16:13Z&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-674&quot; title=&quot;Add more fluent methods like appendIfNotNull() to BasicDBObject&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-674&quot;&gt;&lt;del&gt;JAVA-674&lt;/del&gt;&lt;/a&gt;: Fixed exception messaging for number of concurrent requests allowed&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/a38b467ca2d1ac14b2e4fbd3d1cd0033cdeb4dd2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/a38b467ca2d1ac14b2e4fbd3d1cd0033cdeb4dd2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="191700" author="jeff.yemin" created="Fri, 16 Nov 2012 21:19:57 +0000"  >&lt;p&gt;Need to fix the total number of concurrent requests reported by the exception&lt;/p&gt;</comment>
                            <comment id="168400" author="bryan.reinero@10gen.com" created="Wed, 26 Sep 2012 19:37:23 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/8e5de4304f1bc29904a6508e34000482e7a9f685&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/8e5de4304f1bc29904a6508e34000482e7a9f685&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <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|hrhb3z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14600</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>