<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:48:03 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-59756] ShardServerProcessInterface&apos;s rename must synchronize with DDL operations</title>
                <link>https://jira.mongodb.org/browse/SERVER-59756</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/9e218b72d3fe6be540fee92d42ace9fe47f83658/src/mongo/db/pipeline/process_interface/shardsvr_process_interface.cpp#L204-L234&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;ShardServerProcessInterface::renameIfOptionsAndIndexesHaveNotChanged&lt;/a&gt; is totally bypassing the DDL coordinator infrastructure and is currently &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b30ecb0fdf8f5d707d28c2ad012f3420fb582b6c/src/mongo/db/pipeline/document_source_out.cpp#L173-L174&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;only used&lt;/a&gt; for the &lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/aggregation/out/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;$out stage&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Such stage requires a &lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/aggregation/out/#std-label-out-collection&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;collection parameter&lt;/a&gt; and works as follows:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;User issues an aggregation including an $out stage with output collection &lt;tt&gt;db.outColl&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;During the aggregation, documents are written to a temporary collection &lt;tt&gt;db.tmp.coll&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;At the end of the aggregation, the temporary collection is renamed to &lt;tt&gt;db.coll&lt;/tt&gt; by calling &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b30ecb0fdf8f5d707d28c2ad012f3420fb582b6c/src/mongo/db/pipeline/document_source_out.cpp#L173-L174&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;renameIfOptionsAndIndexesHaveNotChanged&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;As a result, if any DDL is invoked on &lt;tt&gt;db.coll&lt;/tt&gt; concurrently with the rename happening at point (&lt;tt&gt;3&lt;/tt&gt;), both local and sharding catalog can end up in an inconsistent state.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1866403">SERVER-59756</key>
            <summary>ShardServerProcessInterface&apos;s rename must synchronize with DDL operations</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="pierlauro.sciarelli@mongodb.com">Pierlauro Sciarelli</assignee>
                                    <reporter username="pierlauro.sciarelli@mongodb.com">Pierlauro Sciarelli</reporter>
                        <labels>
                    </labels>
                <created>Thu, 2 Sep 2021 16:49:25 +0000</created>
                <updated>Sun, 29 Oct 2023 21:48:55 +0000</updated>
                            <resolved>Tue, 21 Sep 2021 10:17:37 +0000</resolved>
                                    <version>5.1.0</version>
                    <version>5.0.3</version>
                                    <fixVersion>5.1.0-rc0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4106458" author="JIRAUSER1259052" created="Wed, 6 Oct 2021 17:25:32 +0000"  >&lt;p&gt;Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it&#8217;s been triggered. For more active release information, please keep an eye on #server-release. Thank you!&lt;/p&gt;</comment>
                            <comment id="4073835" author="xgen-internal-githook" created="Tue, 21 Sep 2021 10:15:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Pierlauro Sciarelli&apos;, &apos;email&apos;: &apos;pierlauro.sciarelli@mongodb.com&apos;, &apos;username&apos;: &apos;pierlauro&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-59756&quot; title=&quot;ShardServerProcessInterface&amp;#39;s rename must synchronize with DDL operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-59756&quot;&gt;&lt;del&gt;SERVER-59756&lt;/del&gt;&lt;/a&gt; ShardServerProcessInterface&apos;s rename must synchronize with DDL operations&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 5b219afdb1745464d75a902007764111b97e001f.&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5fa7b277cdd63318c26941eee53e0bd499298461&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5fa7b277cdd63318c26941eee53e0bd499298461&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4073627" author="xgen-internal-githook" created="Tue, 21 Sep 2021 08:04:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Pierlauro Sciarelli&apos;, &apos;email&apos;: &apos;pierlauro.sciarelli@mongodb.com&apos;, &apos;username&apos;: &apos;pierlauro&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-59756&quot; title=&quot;ShardServerProcessInterface&amp;#39;s rename must synchronize with DDL operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-59756&quot;&gt;&lt;del&gt;SERVER-59756&lt;/del&gt;&lt;/a&gt; update fcv test reference due to backport&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2bfdedd5da8f4eedef8f9434b3392a10ed02cae8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2bfdedd5da8f4eedef8f9434b3392a10ed02cae8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4072860" author="xgen-internal-githook" created="Mon, 20 Sep 2021 21:32:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Pierlauro Sciarelli&apos;, &apos;email&apos;: &apos;pierlauro.sciarelli@mongodb.com&apos;, &apos;username&apos;: &apos;pierlauro&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-59756&quot; title=&quot;ShardServerProcessInterface&amp;#39;s rename must synchronize with DDL operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-59756&quot;&gt;&lt;del&gt;SERVER-59756&lt;/del&gt;&lt;/a&gt; ShardServerProcessInterface&apos;s rename must synchronize with DDL operations&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5b219afdb1745464d75a902007764111b97e001f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5b219afdb1745464d75a902007764111b97e001f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4049739" author="xgen-internal-githook" created="Fri, 10 Sep 2021 13:59:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Pierlauro Sciarelli&apos;, &apos;email&apos;: &apos;pierlauro.sciarelli@mongodb.com&apos;, &apos;username&apos;: &apos;pierlauro&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-59756&quot; title=&quot;ShardServerProcessInterface&amp;#39;s rename must synchronize with DDL operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-59756&quot;&gt;&lt;del&gt;SERVER-59756&lt;/del&gt;&lt;/a&gt; ShardServerProcessInterface&apos;s rename must synchronize with DDL operations&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/35dd7411084701594e0912be7964c18d06886baf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/35dd7411084701594e0912be7964c18d06886baf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4038366" author="xgen-internal-githook" created="Fri, 3 Sep 2021 08:14:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Pierlauro Sciarelli&apos;, &apos;email&apos;: &apos;pierlauro.sciarelli@mongodb.com&apos;, &apos;username&apos;: &apos;pierlauro&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-59756&quot; title=&quot;ShardServerProcessInterface&amp;#39;s rename must synchronize with DDL operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-59756&quot;&gt;&lt;del&gt;SERVER-59756&lt;/del&gt;&lt;/a&gt; temporarily disable shardCollection stage in agg_out.js and add TODOs&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9dd736dc7e0de59898a9239d9c031d1473a80c27&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9dd736dc7e0de59898a9239d9c031d1473a80c27&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="21777"><![CDATA[v5.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, 3 Sep 2021 07:42:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 18 weeks 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>
                            2 years, 18 weeks 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>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>pierlauro.sciarelli@mongodb.com</customfieldvalue>
            <customfieldvalue>vivian.ge@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i00aef:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzk9of:</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_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|hzzwk7:</customfieldvalue>

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