<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:27:04 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>[SERVER-31440] Connpool HostTimeout races with callback lock acquire/release</title>
                <link>https://jira.mongodb.org/browse/SERVER-31440</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The executor connection pool host timeout is racy with respect to other code that&apos;s unlocked the parent mutex to allow for callback execution.&lt;/p&gt;

&lt;p&gt;While effort was spent to protect against background threads with active requests and those participating in refresh, after those tasks have been executed we race with callbacks in how quickly they can return.  When we lose that race, we destroy the specific pool out from under those callbacks.&lt;/p&gt;</description>
                <environment></environment>
        <key id="441714">SERVER-31440</key>
            <summary>Connpool HostTimeout races with callback lock acquire/release</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="13201">Fixed</resolution>
                                        <assignee username="mira.carey@mongodb.com">Mira Carey</assignee>
                                    <reporter username="mira.carey@mongodb.com">Mira Carey</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Oct 2017 17:14:01 +0000</created>
                <updated>Mon, 30 Oct 2023 23:13:01 +0000</updated>
                            <resolved>Tue, 7 Nov 2017 22:17:43 +0000</resolved>
                                                    <fixVersion>3.2.18</fixVersion>
                    <fixVersion>3.4.11</fixVersion>
                    <fixVersion>3.6.0-rc4</fixVersion>
                                    <component>Networking</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1728179" author="xgen-internal-githook" created="Thu, 16 Nov 2017 20:46:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jason Carey&apos;, &apos;username&apos;: &apos;hanumantmk&apos;, &apos;email&apos;: &apos;jcarey@argv.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-31440&quot; title=&quot;Connpool HostTimeout races with callback lock acquire/release&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-31440&quot;&gt;&lt;del&gt;SERVER-31440&lt;/del&gt;&lt;/a&gt; Fix Connpool HostTimeout race&lt;/p&gt;

&lt;p&gt;The executor connection pool host timeout is racy with respect to other&lt;br/&gt;
code that&apos;s unlocked the parent mutex to allow for callback execution.&lt;/p&gt;

&lt;p&gt;While effort was spent to protect against background threads with active&lt;br/&gt;
requests and those participating in refresh, after those tasks have been&lt;br/&gt;
executed we race with callbacks in how quickly they can return.  When we&lt;br/&gt;
lose that race, we destroy the specific pool out from under those&lt;br/&gt;
callbacks.&lt;/p&gt;

&lt;p&gt;Fix that by adding an ActiveClient wrapper that ensures a refcount on&lt;br/&gt;
the specific pool is increased for the lifetime of those calls.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit c3e174cab7b8e4a19772746942c7e68daa53bc5e)&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e8438a65d647004e94021e9b25087c7f1aac59f8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e8438a65d647004e94021e9b25087c7f1aac59f8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1728172" author="xgen-internal-githook" created="Thu, 16 Nov 2017 20:42:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jason Carey&apos;, &apos;username&apos;: &apos;hanumantmk&apos;, &apos;email&apos;: &apos;jcarey@argv.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-31440&quot; title=&quot;Connpool HostTimeout races with callback lock acquire/release&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-31440&quot;&gt;&lt;del&gt;SERVER-31440&lt;/del&gt;&lt;/a&gt; Fix Connpool HostTimeout race&lt;/p&gt;

&lt;p&gt;The executor connection pool host timeout is racy with respect to other&lt;br/&gt;
code that&apos;s unlocked the parent mutex to allow for callback execution.&lt;/p&gt;

&lt;p&gt;While effort was spent to protect against background threads with active&lt;br/&gt;
requests and those participating in refresh, after those tasks have been&lt;br/&gt;
executed we race with callbacks in how quickly they can return.  When we&lt;br/&gt;
lose that race, we destroy the specific pool out from under those&lt;br/&gt;
callbacks.&lt;/p&gt;

&lt;p&gt;Fix that by adding an ActiveClient wrapper that ensures a refcount on&lt;br/&gt;
the specific pool is increased for the lifetime of those calls.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit c3e174cab7b8e4a19772746942c7e68daa53bc5e)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e1d6d870c3b2436d4ef4e661e1bbf5500fa17ce8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e1d6d870c3b2436d4ef4e661e1bbf5500fa17ce8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1719858" author="xgen-internal-githook" created="Tue, 7 Nov 2017 22:16:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jason Carey&apos;, &apos;username&apos;: &apos;hanumantmk&apos;, &apos;email&apos;: &apos;jcarey@argv.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-31440&quot; title=&quot;Connpool HostTimeout races with callback lock acquire/release&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-31440&quot;&gt;&lt;del&gt;SERVER-31440&lt;/del&gt;&lt;/a&gt; Fix Connpool HostTimeout race&lt;/p&gt;

&lt;p&gt;The executor connection pool host timeout is racy with respect to other&lt;br/&gt;
code that&apos;s unlocked the parent mutex to allow for callback execution.&lt;/p&gt;

&lt;p&gt;While effort was spent to protect against background threads with active&lt;br/&gt;
requests and those participating in refresh, after those tasks have been&lt;br/&gt;
executed we race with callbacks in how quickly they can return.  When we&lt;br/&gt;
lose that race, we destroy the specific pool out from under those&lt;br/&gt;
callbacks.&lt;/p&gt;

&lt;p&gt;Fix that by adding an ActiveClient wrapper that ensures a refcount on&lt;br/&gt;
the specific pool is increased for the lifetime of those calls.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c3e174cab7b8e4a19772746942c7e68daa53bc5e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c3e174cab7b8e4a19772746942c7e68daa53bc5e&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="14340"><![CDATA[v3.4]]></customfieldvalue>
    <customfieldvalue key="13440"><![CDATA[v3.2]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 7 Nov 2017 22:16:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 12 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 12 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mira.carey@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hth8br:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htab9r:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1929">Platforms 2017-10-23</customfieldvalue>
    <customfieldvalue id="1930">Platforms 2017-11-13</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Add a small timeout before any call to lock() in connection_pool.cpp&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htgufj:</customfieldvalue>

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