<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:51:07 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-60933] Make the sharded cluster&apos;s &apos;create&apos; command behave the same as replica set</title>
                <link>https://jira.mongodb.org/browse/SERVER-60933</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When a &lt;tt&gt;createCollection&lt;/tt&gt; command is forwarded from the router to the database primary, it is possible to get a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b09ad98c8bfe5677f3db0a5d6fe86e84cbdb18f1/src/mongo/s/commands/cluster_create_cmd.cpp#L143&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;NamespaceExists error&lt;/a&gt; in case the collection already exists. When this happens, a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b09ad98c8bfe5677f3db0a5d6fe86e84cbdb18f1/src/mongo/s/commands/cluster_create_cmd.cpp#L50-L61&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;listCollection command&lt;/a&gt; is issued in order to decide whether to return or not an error to the client (fail in case the collection exists with different options).&lt;/p&gt;

&lt;p&gt;However, there is no guarantee that a collection does not get dropped before the call to&#160;&lt;tt&gt;listCollection&lt;/tt&gt;. In case this happens, currently a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b09ad98c8bfe5677f3db0a5d6fe86e84cbdb18f1/src/mongo/s/commands/cluster_create_cmd.cpp#L71-L73&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&quot;cannot find ns&quot;&lt;/a&gt; error message is returned, that is very misleading considering that the command should create the namespace.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1906790">SERVER-60933</key>
            <summary>Make the sharded cluster&apos;s &apos;create&apos; command behave the same as replica set</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="3">Duplicate</resolution>
                                        <assignee username="backlog-server-sharding-emea">[DO NOT USE] Backlog - Sharding EMEA</assignee>
                                    <reporter username="pierlauro.sciarelli@mongodb.com">Pierlauro Sciarelli</reporter>
                        <labels>
                            <label>shardingemea-qw</label>
                    </labels>
                <created>Fri, 22 Oct 2021 16:03:28 +0000</created>
                <updated>Mon, 20 Feb 2023 12:34:58 +0000</updated>
                            <resolved>Mon, 20 Feb 2023 12:34:41 +0000</resolved>
                                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>11</watches>
                                                                                                                <comments>
                            <comment id="5213758" author="tommaso.tocci" created="Mon, 20 Feb 2023 12:34:41 +0000"  >&lt;p&gt;This issue has been fixed in  &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60064&quot; title=&quot;Make create command idempotent on mongod&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60064&quot;&gt;&lt;del&gt;SERVER-60064&lt;/del&gt;&lt;/a&gt; where we also made the create command idempotent on replset.&lt;/p&gt;</comment>
                            <comment id="5034017" author="xgen-internal-githook" created="Tue, 6 Dec 2022 16:46:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dave Rolsky&apos;, &apos;email&apos;: &apos;autarch@urth.org&apos;, &apos;username&apos;: &apos;autarch&apos;}
&lt;p&gt;Message: REP-1717 Fix handling of NamespaceNotFound when creating temp collection name in older versions create event handler (#1032)&lt;/p&gt;


&lt;p&gt;This addresses a BF in a stepdown ctc test. The mongosync instance crashed&lt;br/&gt;
with a fatal error because of an error from the create event handler. When the&lt;br/&gt;
create event handler tried to create the collection with a temp name it got a&lt;br/&gt;
`NamespaceNotFound` error. The server should not return this error, but there&lt;br/&gt;
is a server bug that causes it to do so,&lt;br/&gt;
(&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60933&quot; title=&quot;Make the sharded cluster&amp;#39;s &amp;#39;create&amp;#39; command behave the same as replica set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60933&quot;&gt;&lt;del&gt;SERVER-60933&lt;/del&gt;&lt;/a&gt;(&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60933&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-60933&lt;/a&gt;)). Then a bug&lt;br/&gt;
with our handling of these errors led to the crash.&lt;/p&gt;

&lt;p&gt;This PR changes our `RunCommand` wrapper so that it always adds `writeConcern:&lt;br/&gt;
majority` and `j: true` to `create` commands. This will be done for more&lt;br/&gt;
commands later as part of REP-1733. This combined with the change in&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;REP-1530&amp;#93;&lt;/span&gt;(&lt;a href=&quot;https://jira.mongodb.org/browse/REP-1530&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/REP-1530&lt;/a&gt;) that treats a&lt;br/&gt;
`WriteConcernError` as retryable. The end result is that we will simply retry&lt;br/&gt;
when we get this error during a stepdown rather than crashing.&lt;br/&gt;
Branch: main&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongosync/commit/1d891663f24a26232b07677058c507c72a402e1a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongosync/commit/1d891663f24a26232b07677058c507c72a402e1a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5031876" author="JIRAUSER1263789" created="Mon, 5 Dec 2022 23:52:35 +0000"  >&lt;p&gt;We got another related BF: &lt;a href=&quot;https://jira.mongodb.org/browse/REP-1917&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/REP-1917&lt;/a&gt; on a 4.2 sharded destination.&lt;/p&gt;</comment>
                            <comment id="4272926" author="kaloian.manassiev" created="Mon, 3 Jan 2022 18:40:11 +0000"  >&lt;p&gt;We should just throw out the whole handling of the &lt;tt&gt;NamespaceExists&lt;/tt&gt; error and just forward the &lt;tt&gt;create&lt;/tt&gt; command to the DB primary shard so that the behaviour is the same between standalone, replica sets and sharded cluster.&lt;/p&gt;

&lt;p&gt;For whoever picks that up, here is an Evergreen patch with the failing tests: &lt;a href=&quot;https://evergreen.mongodb.com/version/61d3252b0305b92df5f0ae8e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://evergreen.mongodb.com/version/61d3252b0305b92df5f0ae8e&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2251015">SERVER-73553</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="1877740">SERVER-60064</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="2084261">SERVER-67828</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25133"><![CDATA[Sharding EMEA]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 3 Jan 2022 18:40:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        50 weeks, 2 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_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>tommaso.tocci@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            50 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.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>backlog-server-sharding-emea</customfieldvalue>
            <customfieldvalue>frederic.vitzikam@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>pierlauro.sciarelli@mongodb.com</customfieldvalue>
            <customfieldvalue>tommaso.tocci@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i07627:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzt7ef:</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="5428">Sharding EMEA 2021-11-29</customfieldvalue>
    <customfieldvalue id="5429">Sharding EMEA 2021-12-13</customfieldvalue>
    <customfieldvalue id="5430">Sharding EMEA 2021-12-27</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.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_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|i06s7j:</customfieldvalue>

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