<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:23:59 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-30483] Write FSM concurrency workload for removeShard and movePrimary</title>
                <link>https://jira.mongodb.org/browse/SERVER-30483</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Consider the case where we have two nodes, &lt;b&gt;A&lt;/b&gt; and &lt;b&gt;B&lt;/b&gt;, where &lt;b&gt;A&lt;/b&gt; is the primary. If we call &lt;tt&gt;movePrimary&lt;/tt&gt; to move &lt;b&gt;A&lt;/b&gt; to &lt;b&gt;B&lt;/b&gt; and at the same time call &lt;tt&gt;removeShard&lt;/tt&gt; on &lt;b&gt;B&lt;/b&gt;, then the following might happen.&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;&lt;tt&gt;movePrimary&lt;/tt&gt; copies unsharded collections from &lt;b&gt;A&lt;/b&gt; to &lt;b&gt;B&lt;/b&gt;.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;removeShard&lt;/tt&gt; checks if &lt;b&gt;B&lt;/b&gt; is the primary, which it is not.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;movePrimary&lt;/tt&gt; updates the config server, which now thinks &lt;b&gt;B&lt;/b&gt; is the primary.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;removeShard&lt;/tt&gt; removes &lt;b&gt;B&lt;/b&gt;.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;movePrimary&lt;/tt&gt; deletes original unsharded collections from &lt;b&gt;A&lt;/b&gt;.&lt;br/&gt;
If the above were to happen, then all unsharded collections are deleted, and there would exist no primary, which is very bad.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;An FSM concurrency workload should be written to test this type of behavior, and what would happen.&lt;/p&gt;</description>
                <environment></environment>
        <key id="411771">SERVER-30483</key>
            <summary>Write FSM concurrency workload for removeShard and movePrimary</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="backlog-server-sharding">[DO NOT USE] Backlog - Sharding Team</assignee>
                                    <reporter username="hugh.han">Hugh Han</reporter>
                        <labels>
                            <label>PM-1017</label>
                            <label>sharding</label>
                    </labels>
                <created>Wed, 2 Aug 2017 19:40:20 +0000</created>
                <updated>Tue, 6 Dec 2022 03:55:00 +0000</updated>
                            <resolved>Wed, 1 Dec 2021 15:28:28 +0000</resolved>
                                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1657583" author="hugh.han" created="Fri, 25 Aug 2017 20:08:04 +0000"  >&lt;p&gt;docs: &lt;a href=&quot;https://paper.dropbox.com/doc/Metadata-Command-FSM-Workloads-1pbVk0Ao7R0PPCmoCTbyE&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://paper.dropbox.com/doc/Metadata-Command-FSM-Workloads-1pbVk0Ao7R0PPCmoCTbyE&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1639263" author="asya" created="Thu, 3 Aug 2017 01:22:28 +0000"  >&lt;p&gt;Wouldn&apos;t &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30404&quot; title=&quot;movePrimary should take the same (dist)lock as shardCollection to ensure UUID consistency&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30404&quot;&gt;&lt;del&gt;SERVER-30404&lt;/del&gt;&lt;/a&gt; prevent that?&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>2.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_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25141"><![CDATA[Sharding]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 3 Aug 2017 01:22:28 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 24 weeks, 5 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>alexander.golin@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, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-sharding</customfieldvalue>
            <customfieldvalue>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>hugh.han</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htc7br:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht3z3r:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1728">Sharding 2017-08-21</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|htbtef:</customfieldvalue>

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