<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:08:57 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-13880] Source and target database primary shards should match when renaming unsharded collections</title>
                <link>https://jira.mongodb.org/browse/DOCS-13880</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;h2&gt;&lt;a name=&quot;Description&quot;&gt;&lt;/a&gt;Description&lt;/h2&gt;

&lt;p&gt;The &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/renameCollection/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;renameCollection&lt;/a&gt; documentation is not mentioning a current limitation in sharded clusters: it is not supported the rename of an unsharded collection if source and target database primary shards are different.&lt;/p&gt;

&lt;p&gt;There is also &lt;a href=&quot;https://github.com/mongodb/mongo/blob/2d9adbdb1b56231cf4b60111b13fe1be3375ca5d/src/mongo/s/commands/cluster_passthrough_commands.cpp#L123-L125&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;a test&lt;/a&gt; showing that this scenario is expected to fail.&lt;/p&gt;

&lt;p&gt;The following sentence should be reformulated.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;FROM&lt;/b&gt;:&lt;br/&gt;
 &quot;You cannot rename a sharded collection. You can however rename an unsharded collection in a sharded cluster.&quot;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;TO&lt;/b&gt; something like:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&quot;You cannot rename a sharded collection. You can however rename an unsharded collection in a sharded cluster as long as source and target databases are residing on the same &lt;a href=&quot;https://docs.mongodb.com/manual/core/sharded-cluster-shards/#primary-shard&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;primary shard&lt;/a&gt;.&quot;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;a name=&quot;Scopeofchanges&quot;&gt;&lt;/a&gt;Scope of changes&lt;/h2&gt;
&lt;h2&gt;&lt;a name=&quot;ImpacttoOtherDocs&quot;&gt;&lt;/a&gt;Impact to Other Docs&lt;/h2&gt;
&lt;h2&gt;&lt;a name=&quot;MVP%28WorkandDate%29&quot;&gt;&lt;/a&gt;MVP (Work and Date)&lt;/h2&gt;
&lt;h2&gt;&lt;a name=&quot;Resources%28ScopeorDesignDocs%2CInvision%2Cetc.%29&quot;&gt;&lt;/a&gt;Resources (Scope or Design Docs, Invision, etc.)&lt;/h2&gt;</description>
                <environment></environment>
        <key id="1479831">DOCS-13880</key>
            <summary>Source and target database primary shards should match when renaming unsharded collections</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="13201">Fixed</resolution>
                                        <assignee username="alison.huh@mongodb.com">Alison Huh</assignee>
                                    <reporter username="pierlauro.sciarelli@mongodb.com">Pierlauro Sciarelli</reporter>
                        <labels>
                            <label>quick-win</label>
                    </labels>
                <created>Fri, 18 Sep 2020 10:43:26 +0000</created>
                <updated>Mon, 30 Oct 2023 20:18:34 +0000</updated>
                            <resolved>Tue, 13 Jul 2021 17:22:08 +0000</resolved>
                                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>manual</component>
                    <component>Server</component>
                        <due>Fri, 16 Jul 2021 00:00:00 +0000</due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3960754" author="xgen-internal-githook" created="Fri, 23 Jul 2021 19:59:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;alisonjhuh&apos;, &apos;email&apos;: &apos;alison.huh@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13880&quot; title=&quot;Source and target database primary shards should match when renaming unsharded collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13880&quot;&gt;&lt;del&gt;DOCS-13880&lt;/del&gt;&lt;/a&gt; indicate requirement of matching source and target databases on the same primary shard&lt;br/&gt;
Branch: v4.2.15&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/d099274f19371a360c5b4d6dc6f4e12b03aa801a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/d099274f19371a360c5b4d6dc6f4e12b03aa801a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3931450" author="xgen-internal-githook" created="Tue, 13 Jul 2021 18:54:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;alisonjhuh&apos;, &apos;email&apos;: &apos;alison.huh@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13880&quot; title=&quot;Source and target database primary shards should match when renaming unsharded collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13880&quot;&gt;&lt;del&gt;DOCS-13880&lt;/del&gt;&lt;/a&gt; indicate requirement of matching source and target databases on the same primary shard&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/7edcabb073cc859cf79cb8025085615f7198c636&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/7edcabb073cc859cf79cb8025085615f7198c636&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3931447" author="xgen-internal-githook" created="Tue, 13 Jul 2021 18:54:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;alisonjhuh&apos;, &apos;email&apos;: &apos;alison.huh@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13880&quot; title=&quot;Source and target database primary shards should match when renaming unsharded collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13880&quot;&gt;&lt;del&gt;DOCS-13880&lt;/del&gt;&lt;/a&gt; indicate requirement of matching source and target databases on the same primary shard&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/d099274f19371a360c5b4d6dc6f4e12b03aa801a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/d099274f19371a360c5b4d6dc6f4e12b03aa801a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3931446" author="xgen-internal-githook" created="Tue, 13 Jul 2021 18:53:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;alisonjhuh&apos;, &apos;email&apos;: &apos;alison.huh@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13880&quot; title=&quot;Source and target database primary shards should match when renaming unsharded collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13880&quot;&gt;&lt;del&gt;DOCS-13880&lt;/del&gt;&lt;/a&gt; indicate requirement of matching source and target databases on the same primary shard&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/b09d46ad22fabf205f81927a030fd9ae792651b3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/b09d46ad22fabf205f81927a030fd9ae792651b3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3927428" author="pierlauro.sciarelli" created="Mon, 12 Jul 2021 07:20:24 +0000"  >&lt;p&gt;Hey &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=naomi.pentrel&quot; class=&quot;user-hover&quot; rel=&quot;naomi.pentrel&quot;&gt;naomi.pentrel&lt;/a&gt;, the original description of this ticket still holds for &lt;tt&gt;v4.4&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;However, starting from &lt;tt&gt;v5.0&lt;/tt&gt; - that supports sharded collections rename - the sentence should be rewritten as follows (or in a similar form):&lt;/p&gt;

&lt;p&gt; &quot;You can rename an unsharded collection in a sharded cluster as long as source and target databases are residing on the same &lt;a href=&quot;https://docs.mongodb.com/manual/core/sharded-cluster-shards/#primary-shard&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;primary shard&lt;/a&gt;. It is not supported rename between databases of sharded collections.&quot;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1812158">DOCS-14633</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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 13 Jul 2021 18:53:45 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 28 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCSP-11701</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>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 28 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alison.huh@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>pierlauro.sciarelli@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hy6sh3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxt84v:</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="5243">ServerDocs2021: Jul6 - Jul13</customfieldvalue>
    <customfieldvalue id="5259">ServerDocs2021: Jul13 - Jul20</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hy6eqf:</customfieldvalue>

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