<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:56: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>[SERVER-63129] Collection recreated on a dropped view namespace should be handled correctly on logical tenant collection cloner resume.</title>
                <link>https://jira.mongodb.org/browse/SERVER-63129</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;1) Donor: Creates a view for ns &lt;tt&gt;db.coll&lt;/tt&gt;. This in-turn does the following ops.&lt;/p&gt;

&lt;p&gt;&#160;- Create a collection &lt;tt&gt;db.system.views.&lt;/tt&gt;&lt;br/&gt;
&#160;- Insert a document w/ &lt;tt&gt;_id&lt;/tt&gt; as &lt;tt&gt;db.coll&lt;/tt&gt; into&#160;&lt;tt&gt;db.system.views&lt;/tt&gt; collection.&lt;/p&gt;

&lt;p&gt;2) Recipient primary: Start migration and clones &lt;tt&gt;db.system.views&lt;/tt&gt; collection and replicates to secondaries.&lt;br/&gt;
3) Recipient secondary: Receives the insert to ns &lt;tt&gt;db.system.views&lt;/tt&gt; oplog entry, this in-turn cause insert &lt;a href=&quot;https://github.com/10gen/mongo/blob/4f5c7688766e550d32863923ae6c23c09e2cb5e3/src/mongo/db/op_observer_impl.cpp#L578-L579&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;op-observer&lt;/a&gt; to &lt;a href=&quot;https://github.com/10gen/mongo/blob/4f5c7688766e550d32863923ae6c23c09e2cb5e3/src/mongo/db/views/view_catalog.cpp#L281&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;register the view&lt;/a&gt; for the namespace specified in the &lt;tt&gt;_id&lt;/tt&gt; field, (in this case, it&apos;s &lt;tt&gt;db.coll&lt;/tt&gt;).&lt;br/&gt;
4) Donor: &lt;b&gt;Drop the view &lt;tt&gt;db.coll&lt;/tt&gt; and re-create a regular collection on ns &lt;tt&gt;db.coll&lt;/tt&gt;.&lt;/b&gt;&lt;br/&gt;
5) Recipient&apos;s current primary steps down and fails over to new primary.&lt;br/&gt;
6) Recipient new primary: Starts migration and tenant cloner resumes and tries to clone the collection &lt;tt&gt;db.coll&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;This would result the migration to fail due to collection cloner &lt;a href=&quot;https://github.com/10gen/mongo/blob/4f5c7688766e550d32863923ae6c23c09e2cb5e3/src/mongo/db/catalog/collection_catalog.cpp#L953-L956&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;failure&lt;/a&gt; &lt;tt&gt;NamespaceExists&lt;/tt&gt; w/ error message &lt;tt&gt;View already exists&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Note&lt;/b&gt;: This problem applies only to tenant migration machinery not for logical initial initial sync as logical initial sync machinery doesn&apos;t have the capability to resume the database cloner.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1974026">SERVER-63129</key>
            <summary>Collection recreated on a dropped view namespace should be handled correctly on logical tenant collection cloner resume.</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="suganthi.mani@mongodb.com">Suganthi Mani</assignee>
                                    <reporter username="suganthi.mani@mongodb.com">Suganthi Mani</reporter>
                        <labels>
                    </labels>
                <created>Mon, 31 Jan 2022 13:51:31 +0000</created>
                <updated>Sun, 29 Oct 2023 21:43:22 +0000</updated>
                            <resolved>Wed, 16 Feb 2022 14:01:03 +0000</resolved>
                                                    <fixVersion>6.0.0-rc0</fixVersion>
                    <fixVersion>5.3.0-rc2</fixVersion>
                    <fixVersion>5.2.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4376996" author="xgen-internal-githook" created="Fri, 25 Feb 2022 15:18:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Suganthi Mani&apos;, &apos;email&apos;: &apos;38441312+smani87@users.noreply.github.com&apos;, &apos;username&apos;: &apos;smani87&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63129&quot; title=&quot;Collection recreated on a dropped view namespace should be handled correctly on logical tenant collection cloner resume.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63129&quot;&gt;&lt;del&gt;SERVER-63129&lt;/del&gt;&lt;/a&gt; Tenant collection cloner resume should ignore &#8220;view already exists&#8221; errors while creating collections.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit e840bb65779035e3f5e7d1fb9b6951c291957a74)&lt;br/&gt;
Branch: v5.3&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/71d70bf5ebba88a8f51a20d660cb4d9c6532f35c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/71d70bf5ebba88a8f51a20d660cb4d9c6532f35c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4359817" author="xgen-internal-githook" created="Wed, 16 Feb 2022 19:57:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Suganthi Mani&apos;, &apos;email&apos;: &apos;38441312+smani87@users.noreply.github.com&apos;, &apos;username&apos;: &apos;smani87&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63129&quot; title=&quot;Collection recreated on a dropped view namespace should be handled correctly on logical tenant collection cloner resume.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63129&quot;&gt;&lt;del&gt;SERVER-63129&lt;/del&gt;&lt;/a&gt; Tenant collection cloner resume should ignore &#8220;view already exists&#8221; errors while creating collections.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit e840bb65779035e3f5e7d1fb9b6951c291957a74)&lt;br/&gt;
Branch: v5.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/30ed1fff8c2f672a31219cf3ae793f4cbc2260d6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/30ed1fff8c2f672a31219cf3ae793f4cbc2260d6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4357322" author="xgen-internal-githook" created="Tue, 15 Feb 2022 20:55:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Suganthi Mani&apos;, &apos;email&apos;: &apos;38441312+smani87@users.noreply.github.com&apos;, &apos;username&apos;: &apos;smani87&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63129&quot; title=&quot;Collection recreated on a dropped view namespace should be handled correctly on logical tenant collection cloner resume.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63129&quot;&gt;&lt;del&gt;SERVER-63129&lt;/del&gt;&lt;/a&gt; Tenant collection cloner resume should ignore &#8220;view already exists&#8221; errors while creating collections.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e840bb65779035e3f5e7d1fb9b6951c291957a74&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e840bb65779035e3f5e7d1fb9b6951c291957a74&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1985442">SERVER-63764</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2423153">SERVER-80301</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23140"><![CDATA[v5.3]]></customfieldvalue>
    <customfieldvalue key="22676"><![CDATA[v5.2]]></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>Tue, 1 Feb 2022 14:14:10 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 49 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_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_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>
                            1 year, 49 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>35.0</customfieldvalue>

                        </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>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>suganthi.mani@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0il5z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i01ofb:</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="5672">Server Serverless 2022-02-07</customfieldvalue>
    <customfieldvalue id="5856">Server Serverless 2022-02-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|i0i7bb:</customfieldvalue>

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