<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:09:31 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-45707] Test that range deletion tasks are eventually deleted even if collection is dropped before migration coordination is resumed</title>
                <link>https://jira.mongodb.org/browse/SERVER-45707</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When a replica set node transitions to primary, it &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ccc13ef0b7ce0f908479522660a54dcbd142f7a1/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp#L826&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;launches&lt;/a&gt; an &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ccc13ef0b7ce0f908479522660a54dcbd142f7a1/src/mongo/db/s/migration_util.cpp#L486&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;asynchronous task&lt;/a&gt; to resume coordinating migrations whose state was checkpointed&#160; &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ccc13ef0b7ce0f908479522660a54dcbd142f7a1/src/mongo/db/s/migration_util.cpp#L524-L527&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;in a document in config.migrationCoordinators&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If the outcome of the migration (committed or aborted) had not been checkpointed, the node&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/ccc13ef0b7ce0f908479522660a54dcbd142f7a1/src/mongo/db/s/migration_util.cpp#L551&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;uses the _configsvrEnsureChunkVersionIsGreaterThan command&lt;/a&gt; against the config server to guarantee that the migration&apos;s decision will not change after that command executes, then&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/ccc13ef0b7ce0f908479522660a54dcbd142f7a1/src/mongo/db/s/migration_util.cpp#L554&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;forces a filtering metadata refresh&lt;/a&gt; and checks if the min key of the migrating range still belongs to the local shard.&lt;/p&gt;

&lt;p&gt;As part of this check, the node checks that the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ccc13ef0b7ce0f908479522660a54dcbd142f7a1/src/mongo/db/s/migration_util.cpp#L563&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;filtering metadata&apos;s UUID matches the UUID in the config.migrationCoordinators doc&lt;/a&gt;, and if they do not match, &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ccc13ef0b7ce0f908479522660a54dcbd142f7a1/src/mongo/db/s/migration_util.cpp#L577-L580&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;cleans up&lt;/a&gt; the range deletion tasks on itself and the recipient as well as the migrationCoordinator doc itself.&lt;/p&gt;

&lt;p&gt;This ticket is to add a test that that cleanup does occur, by doing something like inducing a failover on the donor shard, adding a failpoint to hang in the task before doing the filtering metadata refresh, dropping the collection from the cluster while the failpoint is active, then unsetting the failpoint and asserting that the range deletion tasks and migrationCoordinator doc are eventually deleted.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1109659">SERVER-45707</key>
            <summary>Test that range deletion tasks are eventually deleted even if collection is dropped before migration coordination is resumed</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="cheahuychou.mao@mongodb.com">Cheahuychou Mao</assignee>
                                    <reporter username="esha.maharishi@mongodb.com">Esha Maharishi</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Jan 2020 18:14:38 +0000</created>
                <updated>Sun, 29 Oct 2023 22:13:01 +0000</updated>
                            <resolved>Thu, 30 Jan 2020 22:58:30 +0000</resolved>
                                                    <fixVersion>4.3.4</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="3031126" author="xgen-internal-githook" created="Wed, 8 Apr 2020 15:23:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Cheahuychou Mao&apos;, &apos;email&apos;: &apos;cheahuychou.mao@mongodb.com&apos;, &apos;username&apos;: &apos;cheahuychou&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47387&quot; title=&quot;Remove TODO comment for SERVER-45707&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47387&quot;&gt;&lt;del&gt;SERVER-47387&lt;/del&gt;&lt;/a&gt; Remove TODO comment for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45707&quot; title=&quot;Test that range deletion tasks are eventually deleted even if collection is dropped before migration coordination is resumed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45707&quot;&gt;&lt;del&gt;SERVER-45707&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(cherry picked from commit d9b93b6a8eb645f40ee14807e97b038ce1a45d3d)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1270d99eae46ff1b81e712cefb83137eb39d90e8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1270d99eae46ff1b81e712cefb83137eb39d90e8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3031077" author="xgen-internal-githook" created="Wed, 8 Apr 2020 15:05:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Cheahuychou Mao&apos;, &apos;email&apos;: &apos;cheahuychou.mao@mongodb.com&apos;, &apos;username&apos;: &apos;cheahuychou&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47387&quot; title=&quot;Remove TODO comment for SERVER-45707&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47387&quot;&gt;&lt;del&gt;SERVER-47387&lt;/del&gt;&lt;/a&gt; Remove TODO comment for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45707&quot; title=&quot;Test that range deletion tasks are eventually deleted even if collection is dropped before migration coordination is resumed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45707&quot;&gt;&lt;del&gt;SERVER-45707&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d9b93b6a8eb645f40ee14807e97b038ce1a45d3d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d9b93b6a8eb645f40ee14807e97b038ce1a45d3d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2774083" author="xgen-internal-githook" created="Thu, 30 Jan 2020 22:57:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Cheahuychou Mao&apos;, &apos;username&apos;: &apos;cheahuychou&apos;, &apos;email&apos;: &apos;cheahuychou.mao@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45707&quot; title=&quot;Test that range deletion tasks are eventually deleted even if collection is dropped before migration coordination is resumed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45707&quot;&gt;&lt;del&gt;SERVER-45707&lt;/del&gt;&lt;/a&gt; Test that range deletion tasks are eventually deleted even if collection is dropped before migration coordination is resumed&lt;/p&gt;

&lt;p&gt; create mode 100644 jstests/sharding/delete_range_deletion_tasks_on_stepup_after_drop_collection.js&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9cda0c48d4f251f65639417396f06309e562e524&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9cda0c48d4f251f65639417396f06309e562e524&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1306548">SERVER-47387</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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>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, 30 Jan 2020 18:55:24 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 44 weeks 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-812</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, 44 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>cheahuychou.mao@mongodb.com</customfieldvalue>
            <customfieldvalue>esha.maharishi@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|hwkc5z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr85fz:</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="3571">Sharding 2020-02-10</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|hwjyfb:</customfieldvalue>

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