<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:39:06 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>[DOCS-622] Documentation on &apos;movePrimary&apos; is incorrect</title>
                <link>https://jira.mongodb.org/browse/DOCS-622</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;The documentation on &apos;movePrimary&apos; is incorrect on several counts:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Usage&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Current text:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt; Only use movePrimary when removing a shard from a sharded cluster.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Correct text:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt; Only use movePrimary when the database does not contain any collections with data&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Justification: there are a number of use cases where you may want to do a &apos;movePrimary&apos; on a database which does not contain any collections. The most notable use is to create a federated database: &lt;b&gt;UN&lt;/b&gt;-sharded &apos;collectionA&apos; lives in &apos;databaseA&apos; which has a primary shard of &apos;shardA&apos;; while &lt;b&gt;UN&lt;/b&gt;-sharded &apos;collectionB&apos; lives in &apos;databaseB&apos; which has a primary shard of &apos;shardB&apos;;&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Warning:&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Current text:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Before running movePrimary you must ensure that no sharded data exists on this shard.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Correct text:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt; Only use movePrimary when the database does not contain any collections with data.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Justification: Everything in the warning is true about sharded collections. However, in addition, if you use &apos;movePrimary&apos; command on a database which contains an &lt;b&gt;UN&lt;/b&gt;-sharded collection, any writes performed to that collection while the move is &quot;in flight&quot; may be lost. &lt;/p&gt;</description>
                <environment>&lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/movePrimary/&quot;&gt;http://docs.mongodb.org/manual/reference/command/movePrimary/&lt;/a&gt;</environment>
        <key id="53506">DOCS-622</key>
            <summary>Documentation on &apos;movePrimary&apos; is incorrect</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="sam.kleinman">Sam Kleinman</assignee>
                                    <reporter username="william.zola@10gen.com">William Zola</reporter>
                        <labels>
                    </labels>
                <created>Wed, 17 Oct 2012 22:40:36 +0000</created>
                <updated>Fri, 19 Oct 2012 18:06:44 +0000</updated>
                            <resolved>Fri, 19 Oct 2012 17:32:03 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="177251" author="samk" created="Fri, 19 Oct 2012 18:06:39 +0000"  >&lt;p&gt;Publishing soon. &lt;/p&gt;</comment>
                            <comment id="177250" author="auto" created="Fri, 19 Oct 2012 18:06:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-19T11:06:22-07:00&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-622&quot; title=&quot;Documentation on &amp;#39;movePrimary&amp;#39; is incorrect&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-622&quot;&gt;&lt;del&gt;DOCS-622&lt;/del&gt;&lt;/a&gt;: edits and corrections&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/08330c9591276e0b365ea30b229476bec7f2fdc8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/08330c9591276e0b365ea30b229476bec7f2fdc8&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>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 19 Oct 2012 18:06:28 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 17 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
            <customfieldvalue>william.zola@10gen.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrs9sv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrk2nr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>30818</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hryjon:</customfieldvalue>

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