<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:18:10 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-28447] Migration critical section for one collection will block finds for any other sharded collection</title>
                <link>https://jira.mongodb.org/browse/SERVER-28447</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The find command implementation in 3.2 indiscriminately &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.2.12/src/mongo/db/commands/find_cmd.cpp#L256&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;checks for critical section&lt;/a&gt; before even looking at the collection&apos;s shard version. This causes the migration critical section on one collection to stall find operations for all other collections even if they do not participate in migrations themselves.&lt;/p&gt;

&lt;p&gt;Since in 3.2 there isn&apos;t a (non-racy) way to differentiate between the critical sections on one collection versus another, at the very least this check should only be done if shard version mismatch is encountered and not all the time.&lt;/p&gt;</description>
                <environment></environment>
        <key id="367322">SERVER-28447</key>
            <summary>Migration critical section for one collection will block finds for any other sharded collection</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="9">Done</resolution>
                                        <assignee username="kaloian.manassiev@mongodb.com">Kaloian Manassiev</assignee>
                                    <reporter username="kaloian.manassiev@mongodb.com">Kaloian Manassiev</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 Mar 2017 14:59:51 +0000</created>
                <updated>Wed, 6 Dec 2017 21:11:34 +0000</updated>
                            <resolved>Thu, 6 Apr 2017 11:30:33 +0000</resolved>
                                    <version>3.2.12</version>
                                    <fixVersion>3.2.13</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="1656074" author="ramon.fernandez" created="Thu, 24 Aug 2017 14:03:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: u&apos;kaloianm&apos;, &apos;name&apos;: u&apos;Kaloian Manassiev&apos;, &apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message:&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28447&quot; title=&quot;Migration critical section for one collection will block finds for any other sharded collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28447&quot;&gt;&lt;del&gt;SERVER-28447&lt;/del&gt;&lt;/a&gt; Forward-port migration_critical_section_concurrency.js&lt;/p&gt;

&lt;p&gt;This test ensures that while query and write on one collection are stuck in the migration critical section, other collections are not impacted.&lt;br/&gt;
Branch:master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/dca347ebe473a36116157d3649bd10b3319794fc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/dca347ebe473a36116157d3649bd10b3319794fc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1656073" author="ramon.fernandez" created="Thu, 24 Aug 2017 14:03:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: u&apos;kaloianm&apos;, &apos;name&apos;: u&apos;Kaloian Manassiev&apos;, &apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message:Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28447&quot; title=&quot;Migration critical section for one collection will block finds for any other sharded collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28447&quot;&gt;&lt;del&gt;SERVER-28447&lt;/del&gt;&lt;/a&gt; Forward-port migration_critical_section_concurrency.js&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit dca347ebe473a36116157d3649bd10b3319794fc.&lt;br/&gt;
Branch:master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/50474a3282dbda452d91754e07d6fed5f3f8ccab&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/50474a3282dbda452d91754e07d6fed5f3f8ccab&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1544080" author="xgen-internal-githook" created="Fri, 7 Apr 2017 20:45:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28447&quot; title=&quot;Migration critical section for one collection will block finds for any other sharded collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28447&quot;&gt;&lt;del&gt;SERVER-28447&lt;/del&gt;&lt;/a&gt; Disable migration_critical_section_concurrency.js in 3.2 last stable suite&lt;/p&gt;

&lt;p&gt;The last-stable 3.2 is 3.2.12 which does not yet have the fix.&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1b175e16b74c263b1472c56a235725062bf949c0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1b175e16b74c263b1472c56a235725062bf949c0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1543959" author="xgen-internal-githook" created="Fri, 7 Apr 2017 19:08:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28447&quot; title=&quot;Migration critical section for one collection will block finds for any other sharded collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28447&quot;&gt;&lt;del&gt;SERVER-28447&lt;/del&gt;&lt;/a&gt; Use the correct failpoint in migration_critical_section_concurrency.js on master&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d82a86cbf95c0e09271e92a115b4528dac170fdb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d82a86cbf95c0e09271e92a115b4528dac170fdb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1543957" author="xgen-internal-githook" created="Fri, 7 Apr 2017 19:07:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28447&quot; title=&quot;Migration critical section for one collection will block finds for any other sharded collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28447&quot;&gt;&lt;del&gt;SERVER-28447&lt;/del&gt;&lt;/a&gt; Forward-port migration_critical_section_concurrency.js&lt;/p&gt;

&lt;p&gt;This test ensures that while query and write on one collection are stuck&lt;br/&gt;
in the migration critical section, other collections are not impacted.&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2d22e8bf64e97a2b1ef6f755fe3aebaee474e677&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2d22e8bf64e97a2b1ef6f755fe3aebaee474e677&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1543611" author="xgen-internal-githook" created="Fri, 7 Apr 2017 14:50:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28447&quot; title=&quot;Migration critical section for one collection will block finds for any other sharded collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28447&quot;&gt;&lt;del&gt;SERVER-28447&lt;/del&gt;&lt;/a&gt; Forward-port migration_critical_section_concurrency.js&lt;/p&gt;

&lt;p&gt;This test ensures that while query and write on one collection are stuck&lt;br/&gt;
in the migration critical section, other collections are not impacted.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c48f2983e1a525394449fd2f2f1323b964bc8968&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c48f2983e1a525394449fd2f2f1323b964bc8968&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1542361" author="xgen-internal-githook" created="Thu, 6 Apr 2017 11:27:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kaloianm&apos;, u&apos;name&apos;: u&apos;Kaloian Manassiev&apos;, u&apos;email&apos;: u&apos;kaloian.manassiev@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28447&quot; title=&quot;Migration critical section for one collection will block finds for any other sharded collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28447&quot;&gt;&lt;del&gt;SERVER-28447&lt;/del&gt;&lt;/a&gt;/&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28448&quot; title=&quot;Shard find commands get unnecessarily serialized by the ShardingState refresh rate limiting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28448&quot;&gt;&lt;del&gt;SERVER-28448&lt;/del&gt;&lt;/a&gt; Only refresh metadata or wait for critical section on StaleConfigException&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5a5098ea760396adbb9b096bed6c30357ab3cacd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5a5098ea760396adbb9b096bed6c30357ab3cacd&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </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>1.0</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, 6 Apr 2017 11:27:16 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 24 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 24 weeks, 6 days ago
                        </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>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht4oaf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsx3tr:</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="1615">Sharding 2017-04-17</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|hs2d9r:</customfieldvalue>

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