<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:23: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-30375] make renameCollection attach databaseVersion and shardVersion=UNSHARDED</title>
                <link>https://jira.mongodb.org/browse/SERVER-30375</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;renameCollection is not supposed to be allowed to run on sharded collections.&lt;/p&gt;

&lt;p&gt;However, today shardCollection and renameCollection can run concurrently, and therefore race.&lt;/p&gt;

&lt;p&gt;So, we can end up in a situation where the UUID in a config.collections entry (propagated from the primary shard through shardCollection) differs from the UUID on the primary shard (after renameCollection).&lt;/p&gt;

&lt;p&gt;In this case, it is as if the collection has been dropped and recreated as unsharded, but the entry for the old sharded collection doesn&apos;t get deleted from config.collections.&lt;/p&gt;</description>
                <environment></environment>
        <key id="409190">SERVER-30375</key>
            <summary>make renameCollection attach databaseVersion and shardVersion=UNSHARDED</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="kaloian.manassiev@mongodb.com">Kaloian Manassiev</assignee>
                                    <reporter username="esha.maharishi@mongodb.com">Esha Maharishi</reporter>
                        <labels>
                    </labels>
                <created>Thu, 27 Jul 2017 18:14:33 +0000</created>
                <updated>Mon, 30 Oct 2023 23:14:50 +0000</updated>
                            <resolved>Wed, 21 Mar 2018 22:01:47 +0000</resolved>
                                    <version>3.5.10</version>
                                    <fixVersion>3.7.4</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1841882" author="xgen-internal-githook" created="Thu, 22 Mar 2018 14:17:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;, &apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;username&apos;: &apos;kaloianm&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33770&quot; title=&quot;send dbVersion on convertToCapped&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33770&quot;&gt;&lt;del&gt;SERVER-33770&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30375&quot; title=&quot;make renameCollection attach databaseVersion and shardVersion=UNSHARDED&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30375&quot;&gt;&lt;del&gt;SERVER-30375&lt;/del&gt;&lt;/a&gt; Make &apos;convertToCapped&apos; attach databaseVersion and shardVersion=UNSHARDED&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d306ed01e21b9c63edb6dc15628ab4f2c0107ef6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d306ed01e21b9c63edb6dc15628ab4f2c0107ef6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1841385" author="xgen-internal-githook" created="Wed, 21 Mar 2018 21:59:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;, &apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;username&apos;: &apos;kaloianm&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30375&quot; title=&quot;make renameCollection attach databaseVersion and shardVersion=UNSHARDED&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30375&quot;&gt;&lt;del&gt;SERVER-30375&lt;/del&gt;&lt;/a&gt; Make &apos;renameCollection&apos; attach databaseVersion and shardVersion=UNSHARDED&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bbcff548d0c9922f6dc8f23a4dc8bd02ff9f57fc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bbcff548d0c9922f6dc8f23a4dc8bd02ff9f57fc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1828165" author="esha.maharishi@10gen.com" created="Thu, 8 Mar 2018 23:08:25 +0000"  >&lt;p&gt;Assigning to &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaloian.manassiev&quot; class=&quot;user-hover&quot; rel=&quot;kaloian.manassiev&quot;&gt;kaloian.manassiev&lt;/a&gt; under the &quot;Introduce Database Versioning&quot; project, to make renameCollection attach both shardVersion and databaseVersion.&lt;/p&gt;</comment>
                            <comment id="1649917" author="esha.maharishi@10gen.com" created="Wed, 16 Aug 2017 20:16:50 +0000"  >&lt;p&gt;Another way to do this might just be to make renameCollection versioned (i.e., attach ChunkVersion::UNSHARDED()).&lt;/p&gt;</comment>
                            <comment id="1633806" author="esha.maharishi@10gen.com" created="Thu, 27 Jul 2017 19:18:10 +0000"  >&lt;p&gt;Marked as &quot;Needs Triage&quot; because it&apos;s more Collection Lifecycle-y, and doesn&apos;t cause UUID corruption so much as an unreachable collection.&lt;/p&gt;</comment>
                            <comment id="1633774" author="esha.maharishi@10gen.com" created="Thu, 27 Jul 2017 18:44:13 +0000"  >&lt;p&gt;Also consider making renameCollection take the same distlock as movePrimary, since otherwise:&lt;/p&gt;

&lt;p&gt;1) if user thought both db&apos;s were on the same shard, but movePrimary has been called on &lt;b&gt;another&lt;/b&gt; mongos: this mongos will accept the rename and send it to the primary shard of the source db.&lt;br/&gt;
a) if the source db has moved, the shard will return NamespaceNotFound&lt;br/&gt;
b) if the destination db has moved, the db will be re-created on the primary shard of the source db and the collection will be moved into it, leaving the collection unreachable&lt;/p&gt;

&lt;p&gt;2) if the user thought both db&apos;s were on separate shards, but movePrimary has been called on &lt;b&gt;this&lt;/b&gt; mongos: the rename will succeed, perhaps against the user&apos;s expectation&lt;/p&gt;</comment>
                            <comment id="1633728" author="esha.maharishi@10gen.com" created="Thu, 27 Jul 2017 18:15:09 +0000"  >&lt;p&gt;Marked as &quot;minor&quot; backwards-breaking change, since it will mean renameCollection and shardCollection cannot run concurrently.&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>5.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, 25 Aug 2017 20:07:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 46 weeks, 6 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_14262" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 26 Sep 2017 00:00:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1017</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>
                            5 years, 46 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>esha.maharishi@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htbsbj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htg8mv:</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="1728">Sharding 2017-08-21</customfieldvalue>
    <customfieldvalue id="1854">Sharding 2017-09-11</customfieldvalue>
    <customfieldvalue id="1891">Sharding 2017-10-02</customfieldvalue>
    <customfieldvalue id="1927">Sharding 2017-10-23</customfieldvalue>
    <customfieldvalue id="2167">Sharding 2018-03-26</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_14261" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 27 Jul 2017 00:00:00 +0000</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htbee7:</customfieldvalue>

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