<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:46: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-59328] Renaming a sharded collection might hang if the destination collection is previously dropped</title>
                <link>https://jira.mongodb.org/browse/SERVER-59328</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When renaming a sharded collection, there is &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0f08d4a4e760bec1043249ea5463cc3753803baa/src/mongo/db/s/rename_collection_coordinator.cpp#L338-L377&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;a phase&lt;/a&gt; where the CRUD operations are reactivated on all the involved shards, and this is done by &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0f08d4a4e760bec1043249ea5463cc3753803baa/src/mongo/db/s/rename_collection_coordinator.cpp#L365&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;sending a command&lt;/a&gt;, however, a previous drop of the destination collection might generate an scenario where the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0c2174868263483e6d1973a5f490052e92e70750/src/mongo/db/s/rename_collection_participant_service.cpp#L328&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;next refresh on the recipient&lt;/a&gt; fails with a &quot;QueryPlanKilled&quot; error, and because there is a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0c2174868263483e6d1973a5f490052e92e70750/src/mongo/db/s/sharding_ddl_coordinator.cpp#L203-L233&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;retry policy&lt;/a&gt; implemented, the command does not terminate. We could prevent the error like it &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0c2174868263483e6d1973a5f490052e92e70750/src/mongo/db/s/rename_collection_coordinator.cpp#L219&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;is done on the first phase&lt;/a&gt; or checking for QueryPlanKilled errors specifically.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1850652">SERVER-59328</key>
            <summary>Renaming a sharded collection might hang if the destination collection is previously dropped</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="pierlauro.sciarelli@mongodb.com">Pierlauro Sciarelli</assignee>
                                    <reporter username="marcos.grillo@mongodb.com">Marcos Jos&#233; Grillo Ramirez</reporter>
                        <labels>
                            <label>sharding-wfbf-day</label>
                    </labels>
                <created>Thu, 12 Aug 2021 20:38:17 +0000</created>
                <updated>Tue, 31 Aug 2021 12:06:11 +0000</updated>
                            <resolved>Tue, 31 Aug 2021 12:06:10 +0000</resolved>
                                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="4031046" author="pierlauro.sciarelli" created="Tue, 31 Aug 2021 12:06:11 +0000"  >&lt;p&gt;Closing in favor of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40865&quot; title=&quot;The ShardServerCatalogCacheLoader does not serialize read operations with other operations for the same collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40865&quot;&gt;&lt;del&gt;SERVER-40865&lt;/del&gt;&lt;/a&gt; that will solve the underlying issue.&lt;/p&gt;</comment>
                            <comment id="4019112" author="pierlauro.sciarelli" created="Tue, 24 Aug 2021 13:13:42 +0000"  >&lt;p&gt;The error has the same root of many failures waiting for bug fix on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40865&quot; title=&quot;The ShardServerCatalogCacheLoader does not serialize read operations with other operations for the same collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40865&quot;&gt;&lt;del&gt;SERVER-40865&lt;/del&gt;&lt;/a&gt;. The real problem is that a catalog cache refresh can race with a catalog cache &quot;drop&quot; (when the epoch changes).&lt;/p&gt;

&lt;p&gt;I think we may simply add a call to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/f82bc1eb1b9b17ff8b1aeae818513aa843ddfcbd/src/mongo/s/catalog_cache_loader.h#L172&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;waitForCollectionFlush&lt;/a&gt; after &lt;a href=&quot;https://github.com/mongodb/mongo/blob/f82bc1eb1b9b17ff8b1aeae818513aa843ddfcbd/src/mongo/db/s/rename_collection_participant_service.cpp#L77&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;renaming the collection in each participant&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I believe it&apos;s much safer than removing the DDL coordiantor document, otherwise the coordinator could potentially shut down in an unclean way (e.g. could not unblock all participants).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</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>Tue, 24 Aug 2021 13:13:42 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 23 weeks, 1 day 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>pierlauro.sciarelli@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 23 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>140.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>marcos.grillo@mongodb.com</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|hzxmev:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hyqncf:</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="5179">Sharding EMEA 2021-08-23</customfieldvalue>
    <customfieldvalue id="5180">Sharding EMEA 2021-09-06</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|hzx8nr:</customfieldvalue>

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