<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:01:48 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-42930] ConnectionPool controller updates must batch across hosts</title>
                <link>https://jira.mongodb.org/browse/SERVER-42930</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Each ConnectionPool::ControllerInterface implementation has its own state. As a consequence of this, its state is only brought in line with each SpecificPool during updateHost(). This can lead to the following race when there are two related pools to HostA and HostB:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Pool to HostA is expired initially. It has no outstanding call to updateHost(), i.e. it has already happened.&lt;/li&gt;
	&lt;li&gt;Pool to HostB is now expired. It schedules a call to updateHost(). Both hosts are now expired, thus both can shut down.&lt;/li&gt;
	&lt;li&gt;Pool to HostA is no longer expired. It schedules a call to updateHost(). We should not be able to shutdown anymore, but the controller doesn&apos;t know that until updateHost() is called.&lt;/li&gt;
	&lt;li&gt;The updateHost() for the pool to HostB runs. It updates the controller&apos;s understanding of HostB and the controller believes both pools can shutdown. Which is wrong, but HostA&apos;s updateHost() is queued behind the updateHost() for HostB.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The solution is to run all in flight updateHost() calls before we do anything on the ConnectionPool side. This probably involves moving all controller logic to ConnectionPool instead of SpecificPool. Hopefully, this shouldn&apos;t ruin the perf, but in the worst case we can maybe shift the spawnConnection() to be scheduled alone and call updateHost() inline.&lt;/p&gt;</description>
                <environment></environment>
        <key id="901542">SERVER-42930</key>
            <summary>ConnectionPool controller updates must batch across hosts</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="ben.caimano@mongodb.com">Benjamin Caimano</assignee>
                                    <reporter username="ben.caimano@mongodb.com">Benjamin Caimano</reporter>
                        <labels>
                    </labels>
                <created>Tue, 20 Aug 2019 19:55:31 +0000</created>
                <updated>Sun, 29 Oct 2023 22:17:52 +0000</updated>
                            <resolved>Mon, 2 Mar 2020 16:30:53 +0000</resolved>
                                    <version>4.2.0</version>
                                    <fixVersion>4.2.4</fixVersion>
                    <fixVersion>4.3.4</fixVersion>
                                                        <votes>1</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2923588" author="xgen-internal-githook" created="Mon, 2 Mar 2020 19:47:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ben Caimano&apos;, &apos;email&apos;: &apos;ben.caimano@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42930&quot; title=&quot;ConnectionPool controller updates must batch across hosts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42930&quot;&gt;&lt;del&gt;SERVER-42930&lt;/del&gt;&lt;/a&gt; Pools for hosts can outlive their groups&lt;/p&gt;

&lt;p&gt;Previously, SpecificPools always were shutdown if their Controller told&lt;br/&gt;
them they &lt;em&gt;could&lt;/em&gt; shutdown. This commit changes the logic to allow&lt;br/&gt;
SpecificPools to reject their Controller&apos;s suggestions if the&lt;br/&gt;
SpecificPool no longer thinks it is &quot;expired&quot;.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 2d8f351c2640f402027a2fc0c51628db8d4f85b1)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/15d042e5ce044f136c6d2c6a79d09b23ae838d73&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/15d042e5ce044f136c6d2c6a79d09b23ae838d73&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2923025" author="ben.caimano" created="Mon, 2 Mar 2020 16:27:49 +0000"  >&lt;p&gt;I&apos;ve landed a patch that should ameliorate the invariant failures and make the behavior slightly more reasonable. This isn&apos;t a perfect fix, we&apos;ll still do a bit more work than we need to in the connection pooling. That said, there were odd side effects when I attempted to linearize our pooling control patterns.&lt;/p&gt;</comment>
                            <comment id="2919331" author="xgen-internal-githook" created="Fri, 28 Feb 2020 23:38:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ben Caimano&apos;, &apos;email&apos;: &apos;ben.caimano@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42930&quot; title=&quot;ConnectionPool controller updates must batch across hosts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42930&quot;&gt;&lt;del&gt;SERVER-42930&lt;/del&gt;&lt;/a&gt; Pools for hosts can outlive their groups&lt;/p&gt;

&lt;p&gt;Previously, SpecificPools always were shutdown if their Controller told&lt;br/&gt;
them they &lt;em&gt;could&lt;/em&gt; shutdown. This commit changes the logic to allow&lt;br/&gt;
SpecificPools to reject their Controller&apos;s suggestions if the&lt;br/&gt;
SpecificPool no longer thinks it is &quot;expired&quot;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2d8f351c2640f402027a2fc0c51628db8d4f85b1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2d8f351c2640f402027a2fc0c51628db8d4f85b1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2428418" author="xgen-internal-githook" created="Mon, 23 Sep 2019 16:06:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;pvselvan&apos;, &apos;email&apos;: &apos;pavithra.vetriselvan@mongodb.com&apos;, &apos;name&apos;: &apos;Pavithra Vetriselvan&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42790&quot; title=&quot;Change ConnectionPool&amp;#39;s kDiagnosticLogLevel from 3 to 4&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42790&quot;&gt;&lt;del&gt;SERVER-42790&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42930&quot; title=&quot;ConnectionPool controller updates must batch across hosts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42930&quot;&gt;&lt;del&gt;SERVER-42930&lt;/del&gt;&lt;/a&gt; ConnectionPool controller updates must batch across hosts&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit e9f5360ba5fba5598e2556816a9d7d818ab586c7.&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/28a50ae351071acdf18745c0f3bb54c84485d3ba&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/28a50ae351071acdf18745c0f3bb54c84485d3ba&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2428385" author="xgen-internal-githook" created="Mon, 23 Sep 2019 15:52:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;pvselvan&apos;, &apos;email&apos;: &apos;pavithra.vetriselvan@mongodb.com&apos;, &apos;name&apos;: &apos;Pavithra Vetriselvan&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42930&quot; title=&quot;ConnectionPool controller updates must batch across hosts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42930&quot;&gt;&lt;del&gt;SERVER-42930&lt;/del&gt;&lt;/a&gt; ConnectionPool controller updates must batch across hosts&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 872a46afa66260b8ea59772aa20acb374939eef5.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d1a457ba34733bec62a201d0d218677494f91b33&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d1a457ba34733bec62a201d0d218677494f91b33&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2425431" author="xgen-internal-githook" created="Thu, 19 Sep 2019 16:11:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ben Caimano&apos;, &apos;username&apos;: &apos;bcaimano&apos;, &apos;email&apos;: &apos;ben.caimano@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42790&quot; title=&quot;Change ConnectionPool&amp;#39;s kDiagnosticLogLevel from 3 to 4&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42790&quot;&gt;&lt;del&gt;SERVER-42790&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42930&quot; title=&quot;ConnectionPool controller updates must batch across hosts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42930&quot;&gt;&lt;del&gt;SERVER-42930&lt;/del&gt;&lt;/a&gt; ConnectionPool controller updates must batch across hosts&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e9f5360ba5fba5598e2556816a9d7d818ab586c7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e9f5360ba5fba5598e2556816a9d7d818ab586c7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2425221" author="xgen-internal-githook" created="Thu, 19 Sep 2019 13:54:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;bcaimano&apos;, &apos;email&apos;: &apos;ben.caimano@mongodb.com&apos;, &apos;name&apos;: &apos;Ben Caimano&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42930&quot; title=&quot;ConnectionPool controller updates must batch across hosts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42930&quot;&gt;&lt;del&gt;SERVER-42930&lt;/del&gt;&lt;/a&gt; ConnectionPool controller updates must batch across hosts&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/872a46afa66260b8ea59772aa20acb374939eef5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/872a46afa66260b8ea59772aa20acb374939eef5&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>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="899794">SERVER-42871</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16775"><![CDATA[v4.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>Thu, 19 Sep 2019 13:54:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 49 weeks, 2 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>
                            3 years, 49 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>17.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>ben.caimano@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hvlxpj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvaqqn:</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="3102">Service Arch 2019-08-26</customfieldvalue>
    <customfieldvalue id="3103">Service Arch 2019-09-09</customfieldvalue>
    <customfieldvalue id="3203">Service Arch 2019-09-23</customfieldvalue>
    <customfieldvalue id="3334">Service Arch 2019-10-21</customfieldvalue>
    <customfieldvalue id="3379">Service Arch 2019-11-04</customfieldvalue>
    <customfieldvalue id="3380">Service Arch 2019-11-18</customfieldvalue>
    <customfieldvalue id="3381">Service Arch 2019-12-02</customfieldvalue>
    <customfieldvalue id="3382">Service Arch 2019-12-16</customfieldvalue>
    <customfieldvalue id="3383">Service Arch 2019-12-30</customfieldvalue>
    <customfieldvalue id="3563">Service Arch 2020-01-13</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hvljyv:</customfieldvalue>

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