<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:09:19 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-382] Expose mongoc_client_pool_t size in API for active connections</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-382</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;Is it possible to provide an API or mechanism to expose the the mongoc_client_pool_t size attribute to shows the # of outstanding connections ?&lt;/p&gt;

&lt;p&gt;Thanks!&lt;br/&gt;
Eoin&lt;/p&gt;</description>
                <environment></environment>
        <key id="143012">CDRIVER-382</key>
            <summary>Expose mongoc_client_pool_t size in API for active connections</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="eoin.brazil@mongodb.com">Eoin Brazil</reporter>
                        <labels>
                    </labels>
                <created>Thu, 19 Jun 2014 14:02:37 +0000</created>
                <updated>Wed, 3 May 2017 22:14:39 +0000</updated>
                            <resolved>Wed, 25 Jun 2014 23:25:34 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="634324" author="christian.hergert@10gen.com" created="Wed, 25 Jun 2014 23:25:34 +0000"  >&lt;p&gt;I&apos;m going to close this wont-fix without further understanding of needs. I&apos;m adverse to adding things that will inherently be racy. If we have a good reason for needing access to this, we could potentially add lock/unlock functions to the pool (but I&apos;m skeptical).&lt;/p&gt;</comment>
                            <comment id="628041" author="christian.hergert@10gen.com" created="Thu, 19 Jun 2014 20:02:30 +0000"  >&lt;p&gt;The primary problem here is that exposing the number of free connections alone would be a race condition. (We&apos;d have to also add lock/unlock functions for the thread-safe queue).&lt;/p&gt;

&lt;p&gt;We do have &lt;tt&gt;mongoc_client_pool_try_pop()&lt;/tt&gt; if you need to try to get a connection and do something else if a connection is not yet available. (It returns NULL in the case that all connections are checked out).&lt;/p&gt;

&lt;p&gt;It would help to know what the goal is by knowing the free connection count.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </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|hrzuun:</customfieldvalue>

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