<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:21:43 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-29745] Range deletion after moving away a chunk must wait for metadata update to finish before proceeding</title>
                <link>https://jira.mongodb.org/browse/SERVER-29745</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Range deletion and metadata updates are both done asynchronously without order. If data deletion were to propagate to a secondary before a metadata update, this would be wrong.&lt;/p&gt;</description>
                <environment></environment>
        <key id="396027">SERVER-29745</key>
            <summary>Range deletion after moving away a chunk must wait for metadata update to finish before proceeding</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="dianna.hohensee@mongodb.com">Dianna Hohensee</assignee>
                                    <reporter username="dianna.hohensee@mongodb.com">Dianna Hohensee</reporter>
                        <labels>
                    </labels>
                <created>Tue, 20 Jun 2017 14:27:59 +0000</created>
                <updated>Mon, 30 Oct 2023 23:15:53 +0000</updated>
                            <resolved>Thu, 13 Jul 2017 18:37:40 +0000</resolved>
                                                    <fixVersion>3.5.11</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1621358" author="dianna.hohensee" created="Thu, 13 Jul 2017 18:36:41 +0000"  >&lt;p&gt;Finally determined that the hang was caused by holding a ScopedCollectionMetadata object while scheduling and waiting to range deletion. The solution was to stop holding it &amp;#8211; it wasn&apos;t necessary, anyway, so it&apos;s probably better not to hold on to it anyway. However, holding that scoped object of the latest metadata should not have held up range deletion of an unused range from an old metadata version: it&apos;s a bug that clean up was never scheduled. I suspect the error is either related to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/db/s/metadata_manager.cpp#L469&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this&lt;/a&gt; not evaluating to true for some reason when clean up is first requested, or the ScopedCollectionMetadata destructor code that should schedule cleanup when old metadata is released.&lt;/p&gt;</comment>
                            <comment id="1621350" author="xgen-internal-githook" created="Thu, 13 Jul 2017 18:31:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;DiannaHohensee&apos;, u&apos;name&apos;: u&apos;Dianna Hohensee&apos;, u&apos;email&apos;: u&apos;dianna.hohensee@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29745&quot; title=&quot;Range deletion after moving away a chunk must wait for metadata update to finish before proceeding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29745&quot;&gt;&lt;del&gt;SERVER-29745&lt;/del&gt;&lt;/a&gt; after a successful migration, ensure the metadata update is persisted before range deletion is schedule&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4f070aef1c4fe27948db5db93729fdb757f487e5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4f070aef1c4fe27948db5db93729fdb757f487e5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1618714" author="xgen-internal-githook" created="Tue, 11 Jul 2017 13:45:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;DiannaHohensee&apos;, u&apos;name&apos;: u&apos;Dianna Hohensee&apos;, u&apos;email&apos;: u&apos;dianna.hohensee@10gen.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29745&quot; title=&quot;Range deletion after moving away a chunk must wait for metadata update to finish before proceeding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29745&quot;&gt;&lt;del&gt;SERVER-29745&lt;/del&gt;&lt;/a&gt; after a successful migration, ensure the metadata update is persisted before range deletion is schedule&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 3b1554c77ce9c80b30044654ff2cab3aff7070d4.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d25bce8b0954abb003a97c1140c856532dcfb7db&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d25bce8b0954abb003a97c1140c856532dcfb7db&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1618407" author="xgen-internal-githook" created="Tue, 11 Jul 2017 00:38:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;DiannaHohensee&apos;, u&apos;name&apos;: u&apos;Dianna Hohensee&apos;, u&apos;email&apos;: u&apos;dianna.hohensee@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29745&quot; title=&quot;Range deletion after moving away a chunk must wait for metadata update to finish before proceeding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29745&quot;&gt;&lt;del&gt;SERVER-29745&lt;/del&gt;&lt;/a&gt; after a successful migration, ensure the metadata update is persisted before range deletion is schedule&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3b1554c77ce9c80b30044654ff2cab3aff7070d4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3b1554c77ce9c80b30044654ff2cab3aff7070d4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1616851" author="dianna.hohensee" created="Sat, 8 Jul 2017 01:31:57 +0000"  >&lt;p&gt;Reverted the commit. It appears to be causing a hang, e.g. &lt;a href=&quot;https://evergreen.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_62_64_bit_slow1_344bf6e257e1427bc594bacac3f5983c2bdeaacf_17_07_07_12_44_23&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://evergreen.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_62_64_bit_slow1_344bf6e257e1427bc594bacac3f5983c2bdeaacf_17_07_07_12_44_23&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The hang is in the CollectionRangeDeleter code. There&apos;s no corresponding &quot;Finished deleting mr_during_migrate.coll range ....&quot; message after the donor finishes the migration and starts waiting. And one of the thread dumps has CollectionRangeDeleter::DeleteNotification::waitStatus in it. I have not diagnosed the range deletion problem, merely identified that it is the problem and needed to be reverted.&lt;/p&gt;

&lt;p&gt;The CollectionRangeDeleter functions called in moveChunk were changed in this commit. It seems to have unwittingly surfaced a bug.&lt;/p&gt;</comment>
                            <comment id="1616850" author="xgen-internal-githook" created="Sat, 8 Jul 2017 01:28:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;DiannaHohensee&apos;, u&apos;name&apos;: u&apos;Dianna Hohensee&apos;, u&apos;email&apos;: u&apos;dianna.hohensee@10gen.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29745&quot; title=&quot;Range deletion after moving away a chunk must wait for metadata update to finish before proceeding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29745&quot;&gt;&lt;del&gt;SERVER-29745&lt;/del&gt;&lt;/a&gt; after a successful migration, ensure the metadata update is persisted before range deletion is schedule&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 344bf6e257e1427bc594bacac3f5983c2bdeaacf.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/096951f7bc0b7f9cc8d3b6e3334fc74c101fb9c1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/096951f7bc0b7f9cc8d3b6e3334fc74c101fb9c1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1616183" author="xgen-internal-githook" created="Fri, 7 Jul 2017 12:43:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;DiannaHohensee&apos;, u&apos;name&apos;: u&apos;Dianna Hohensee&apos;, u&apos;email&apos;: u&apos;dianna.hohensee@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29745&quot; title=&quot;Range deletion after moving away a chunk must wait for metadata update to finish before proceeding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29745&quot;&gt;&lt;del&gt;SERVER-29745&lt;/del&gt;&lt;/a&gt; after a successful migration, ensure the metadata update is persisted before range deletion is schedule&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/344bf6e257e1427bc594bacac3f5983c2bdeaacf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/344bf6e257e1427bc594bacac3f5983c2bdeaacf&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">
                                        <issuelink>
            <issuekey id="402343">SERVER-30083</issuekey>
        </issuelink>
                            </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>2.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>Fri, 7 Jul 2017 12:43:53 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 30 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-256</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>
                            6 years, 30 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dianna.hohensee@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|ht9jrj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hra3ev:</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="1726">Sharding 2017-07-10</customfieldvalue>
    <customfieldvalue id="1727">Sharding 2017-07-31</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|ht95tz:</customfieldvalue>

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