<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:24:36 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-51132] Ensure that resharding participants have removed all disk metadata after having completed their portion of the resharding operation</title>
                <link>https://jira.mongodb.org/browse/SERVER-51132</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This ticket will only involve making sure donors/recipients/coordinators have removed all disk metadata after having completed the resharding operation.&lt;/p&gt;

&lt;p&gt;This should include:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Removing the reshardingFields parameter from the original config.collections entry on the coordinator after the coordinator has transitioned to kDone.&lt;/li&gt;
	&lt;li&gt;Removing the config.reshardingOperations document for the current resharding operation after the coordinator has transitioned to kDone.&lt;/li&gt;
	&lt;li&gt;Removing the config.localReshardingOperations documents on for the current resharding operation on recipients/donors after the recipients/donors have transitioned to kDone.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Note that for this ticket and Milestone 2 in general, you don&apos;t need to worry about handling any error state cleanup.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1487198">SERVER-51132</key>
            <summary>Ensure that resharding participants have removed all disk metadata after having completed their portion of the resharding operation</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="alex.taskov@mongodb.com">Alexander Taskov</assignee>
                                    <reporter username="janna.golden@mongodb.com">Janna Golden</reporter>
                        <labels>
                            <label>PM-234-M2</label>
                            <label>PM-234-T-lifecycle</label>
                    </labels>
                <created>Thu, 24 Sep 2020 16:32:22 +0000</created>
                <updated>Sun, 29 Oct 2023 22:02:48 +0000</updated>
                            <resolved>Mon, 7 Dec 2020 14:59:07 +0000</resolved>
                                                    <fixVersion>4.9.0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3518489" author="xgen-internal-githook" created="Mon, 7 Dec 2020 14:57:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Alex Taskov&apos;, &apos;email&apos;: &apos;alex.taskov@mongodb.com&apos;, &apos;username&apos;: &apos;alextaskov&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-51132&quot; title=&quot;Ensure that resharding participants have removed all disk metadata after having completed their portion of the resharding operation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-51132&quot;&gt;&lt;del&gt;SERVER-51132&lt;/del&gt;&lt;/a&gt; Ensure that resharding participants have removed all disk metadata after having completed their portion of the resharding operation&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5c6a908f1a889464d667d89f429455e9ce9248ed&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5c6a908f1a889464d667d89f429455e9ce9248ed&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3494225" author="haley.connelly" created="Tue, 17 Nov 2020 18:42:40 +0000"  >&lt;p&gt;Nope, good to go!&lt;/p&gt;</comment>
                            <comment id="3490173" author="blake.oler" created="Fri, 13 Nov 2020 21:16:51 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=haley.connelly&quot; class=&quot;user-hover&quot; rel=&quot;haley.connelly&quot;&gt;haley.connelly&lt;/a&gt; I&apos;m moving this over to &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=alex.taskov&quot; class=&quot;user-hover&quot; rel=&quot;alex.taskov&quot;&gt;alex.taskov&lt;/a&gt;. If you have any in-progress work, could you post it in a code review?&lt;/p&gt;</comment>
                            <comment id="3478499" author="haley.connelly" created="Thu, 5 Nov 2020 22:52:49 +0000"  >&lt;p&gt;While investigating this ticket, I found the following bug and filed&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-52653&quot; title=&quot;Transition resharding coordinator to kDone without bumping shard versions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-52653&quot;&gt;&lt;del&gt;SERVER-52653&lt;/del&gt;&lt;/a&gt;&#160;&lt;/p&gt;

&lt;p&gt;When the ReshardingCoordinatorService tries to persist its transition to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ff6685cf6fa936ab8b8769f496e5a6e35dba228e/src/mongo/db/s/resharding/resharding_coordinator_service.cpp#L894&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;kDone&lt;/a&gt;, it calls it tries to do so via&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/ff6685cf6fa936ab8b8769f496e5a6e35dba228e/src/mongo/db/s/resharding/resharding_coordinator_service.cpp#L909&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;resharding::persistStateTransitionAndCatalogUpdatesThenBumpShardVersions&lt;/a&gt;. However, at this point, we do not want to bump the shard version of the collection (see &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ff6685cf6fa936ab8b8769f496e5a6e35dba228e/src/mongo/db/s/resharding/resharding_coordinator_service.cpp#L417&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;notifyForStateTransition&lt;/a&gt;) and &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ff6685cf6fa936ab8b8769f496e5a6e35dba228e/src/mongo/db/s/resharding/resharding_coordinator_service.cpp#L578&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;will hit an invariant&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Our current testing does not catch this because it tests the transition to kDone by calling &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ff6685cf6fa936ab8b8769f496e5a6e35dba228e/src/mongo/db/s/resharding/resharding_coordinator_service.cpp#L610-L620&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;removeCoordinatorDocAndReshardingFields&lt;/a&gt;, which is a function only called by the test that no longer accurately mirrors the coordinator&apos;s code flow since&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-51291&quot; title=&quot;Increment shard version when changing original or temporary resharding collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-51291&quot;&gt;&lt;del&gt;SERVER-51291&lt;/del&gt;&lt;/a&gt;.&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="3474665" author="blake.oler" created="Tue, 3 Nov 2020 21:40:55 +0000"  >&lt;p&gt;The ticket has been updated to reflect what the final decision on this was. &lt;/p&gt;</comment>
                            <comment id="3437832" author="janna.golden" created="Fri, 9 Oct 2020 22:00:19 +0000"  >&lt;p&gt;This came up in a conversation with &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=max.hirschhorn&quot; class=&quot;user-hover&quot; rel=&quot;max.hirschhorn&quot;&gt;max.hirschhorn&lt;/a&gt; a couple of weeks ago. I agree that the participants should clean up when they transition to done, but the coordinator should be the one to tell them to transition to done (this is important for recovery) - this should happen only once the coordinator is sure that all recipients have successfully renamed the collection and all donors have successfully dropped the collection. &lt;/p&gt;</comment>
                            <comment id="3437553" author="blake.oler" created="Fri, 9 Oct 2020 19:22:11 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=janna.golden&quot; class=&quot;user-hover&quot; rel=&quot;janna.golden&quot;&gt;janna.golden&lt;/a&gt; I&apos;m not sure if this ticket is necessary. The participant shards will clean themselves up as part of themselves transitioning to done, the recipients after they&apos;ve renamed and the donors after they&apos;ve dropped. So as it currently stands, we have already satisfied that shards will clean up before the coordinator begins cleaning up.&lt;/p&gt;</comment>
                    </comments>
                    <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, 9 Oct 2020 19:22:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 9 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-234</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, 9 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alex.taskov@mongodb.com</customfieldvalue>
            <customfieldvalue>blake.oler@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>haley.connelly@mongodb.com</customfieldvalue>
            <customfieldvalue>janna.golden@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hy81nb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxug7j:</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="4257">Sharding 2020-11-30</customfieldvalue>
    <customfieldvalue id="4258">Sharding 2020-12-14</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</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|hy7nwn:</customfieldvalue>

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