<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:16 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>[CDRIVER-2131] mongoc_client_pool_push should mention the configurable uri options</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2131</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;The &lt;a href=&quot;http://mongoc.org/libmongoc/current/mongoc_client_pool_push.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongoc_client_pool_push&lt;/a&gt; docs should say that the client is destroyed if it exceeds the uri configured min_pool_size.&lt;/p&gt;

&lt;p&gt;the pop function should also say when a new client is created and how that is configured.&lt;/p&gt;

&lt;p&gt;the connection string docs for those values may also need improvements to restate how it works as it isn&apos;t identical with other implementations as pointed out by &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=david.golden&quot; class=&quot;user-hover&quot; rel=&quot;david.golden&quot;&gt;david.golden&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The way that&apos;s written sounds more like a &quot;maximum number of idle connections in the pool&quot; which isn&apos;t how I usually understand minpoolsize&lt;/p&gt;

&lt;p&gt;Contrast with pymongo: &lt;a href=&quot;https://api.mongodb.com/python/current/faq.html#how-does-connection-pooling-work-in-pymongo&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://api.mongodb.com/python/current/faq.html#how-does-connection-pooling-work-in-pymongo&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment></environment>
        <key id="375537">CDRIVER-2131</key>
            <summary>mongoc_client_pool_push should mention the configurable uri options</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="13201">Fixed</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="bjori">Hannes Magnusson</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Apr 2017 17:44:25 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:44 +0000</updated>
                            <resolved>Mon, 29 Jan 2018 13:56:50 +0000</resolved>
                                                    <fixVersion>1.10.0</fixVersion>
                                    <component>docs</component>
                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1788208" author="xgen-internal-githook" created="Mon, 29 Jan 2018 20:39:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2131&quot; title=&quot;mongoc_client_pool_push should mention the configurable uri options&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2131&quot;&gt;&lt;del&gt;CDRIVER-2131&lt;/del&gt;&lt;/a&gt; improve mongoc_client_pool_push doc&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/eab340d4ad2bc56e472fde2d39e74338cfe0f0d1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/eab340d4ad2bc56e472fde2d39e74338cfe0f0d1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1552888" author="david.golden" created="Wed, 19 Apr 2017 18:26:39 +0000"  >&lt;p&gt;Also, the discontinuity of &quot;0&quot; and &quot;1&quot; in minPoolSize is strange.  There is no way to configure the pool to destroy all clients if all are returned.&lt;/p&gt;

&lt;p&gt;If I understand this correctly, then minPoolSize of &quot;0&quot; is effectively the same as setting minPoolSize = maxPoolSize (i.e. create up to maxPoolSize clients and then never destroy any).&lt;/p&gt;</comment>
                            <comment id="1552842" author="david.golden" created="Wed, 19 Apr 2017 18:02:51 +0000"  >&lt;p&gt;I think the behavior of &lt;tt&gt;mongoc_client_pool_push&lt;/tt&gt; might be incorrect, or rather that the C driver&apos;s interpretation of &lt;tt&gt;minPoolSize&lt;/tt&gt; design intent is incorrect.  Maybe this ticket should be re-titled to be a fix for &lt;tt&gt;minPoolSize&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;I think the current behavior is equivalent to this:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;If minPoolSize is set, then after minPoolSize clients are in use, further clients are created on demand up to maxPoolSize and destroyed on return to the pool rather than being kept available for the next request.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Does libmongoc create minPoolSize idle clients when the pool is created?  If not, isn&apos;t the &quot;min&quot; on &quot;minPoolSize&quot; misleading?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="461067">CDRIVER-2390</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="460209">CDRIVER-2389</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|hsycb3:</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>