<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:51:06 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-60926] Make enableSharding command optional</title>
                <link>https://jira.mongodb.org/browse/SERVER-60926</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Before to create a sharded collection it is currently required to invoke the enableSharding command. This command doesn&apos;t really do much apart from setting a flag in config.databases, that is only consumed by the shardCollection command.&lt;/p&gt;

&lt;p&gt;This additional step is not very useful and not really required in order to create a sharded collection, additionally it contributes to make the sharding experience more complicated than than the replica set one without any real benefit.&lt;/p&gt;

&lt;p&gt;This ticket contain a proposal to make the enableSharding command optional and to deprecate it.&lt;/p&gt;

&lt;p&gt;Proposal:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;It won&apos;t be necessary anymore to call enableSharding&#160; before to shard a collection.&#160;&lt;/li&gt;
	&lt;li&gt;We will still keep support for enableSharding command&#160; because users are using it to select the database primaryShard before to create a collection. So enableSharding&#160; will really behave like a &quot;createDatabase&quot; that you can use if you want to create a database with specific options, otherwise default options will be chosen automatically on the implicit creation (like the primarShard).&#160;&lt;/li&gt;
	&lt;li&gt;&lt;del&gt;Additionally the name &quot;enableSharding&quot; will become misleading since it won&apos;t really &quot;enable sharding&quot; anymore, so we will introduce a new&#160; createDatabase command as an alias of the old enableSharding. In this sense the new&#160; createDatabase&#160; command will be very similar to createCollection , it will be optional but you can use it to specify particular options for database creation.&lt;/del&gt;&lt;br/&gt;
(We decided to postpone the aliasing for now)&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="1906518">SERVER-60926</key>
            <summary>Make enableSharding command optional</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="tommaso.tocci@mongodb.com">Tommaso Tocci</assignee>
                                    <reporter username="tommaso.tocci@mongodb.com">Tommaso Tocci</reporter>
                        <labels>
                            <label>shardingemea-qw</label>
                    </labels>
                <created>Fri, 22 Oct 2021 12:23:22 +0000</created>
                <updated>Sun, 29 Oct 2023 21:47:02 +0000</updated>
                            <resolved>Mon, 28 Feb 2022 16:41:03 +0000</resolved>
                                                    <fixVersion>6.0.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="4399362" author="xgen-internal-githook" created="Tue, 8 Mar 2022 21:32:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Frederic Vitzikam (fredvitz)&apos;, &apos;email&apos;: &apos;95658478+fredvitz@users.noreply.github.com&apos;, &apos;username&apos;: &apos;fredvitz&apos;}
&lt;p&gt;Message: REP-157 Fix TestInitializeCollections_EnableShardingAndShardCollection (#143)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60926&quot; title=&quot;Make enableSharding command optional&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60926&quot;&gt;&lt;del&gt;SERVER-60926&lt;/del&gt;&lt;/a&gt; changed server behavior to accept ShardCollection even without previous EnableSharding, updated the test accordingly.&lt;br/&gt;
Branch: fredvitz/REP-237&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongosync/commit/907dee6983533c529936cfc86e8005090a56d982&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongosync/commit/907dee6983533c529936cfc86e8005090a56d982&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4399051" author="xgen-internal-githook" created="Tue, 8 Mar 2022 20:11:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Frederic Vitzikam (fredvitz)&apos;, &apos;email&apos;: &apos;95658478+fredvitz@users.noreply.github.com&apos;, &apos;username&apos;: &apos;fredvitz&apos;}
&lt;p&gt;Message: REP-157 Fix TestInitializeCollections_EnableShardingAndShardCollection (#143)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60926&quot; title=&quot;Make enableSharding command optional&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60926&quot;&gt;&lt;del&gt;SERVER-60926&lt;/del&gt;&lt;/a&gt; changed server behavior to accept ShardCollection even without previous EnableSharding, updated the test accordingly.&lt;br/&gt;
Branch: ali-mir/REP-265&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongosync/commit/907dee6983533c529936cfc86e8005090a56d982&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongosync/commit/907dee6983533c529936cfc86e8005090a56d982&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4394872" author="tommaso.tocci" created="Mon, 7 Mar 2022 14:13:16 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=massimiliano.marcon&quot; class=&quot;user-hover&quot; rel=&quot;massimiliano.marcon&quot;&gt;massimiliano.marcon&lt;/a&gt; starting from 6.0 we can&apos;t rely anymore on the `partitioned` field in `config.databases`. So if you have any code in mongosh that uses this field you should change it accordingly.&lt;/p&gt;</comment>
                            <comment id="4390610" author="xgen-internal-githook" created="Thu, 3 Mar 2022 22:10:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Frederic Vitzikam (fredvitz)&apos;, &apos;email&apos;: &apos;95658478+fredvitz@users.noreply.github.com&apos;, &apos;username&apos;: &apos;fredvitz&apos;}
&lt;p&gt;Message: REP-157 Fix TestInitializeCollections_EnableShardingAndShardCollection (#143)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60926&quot; title=&quot;Make enableSharding command optional&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60926&quot;&gt;&lt;del&gt;SERVER-60926&lt;/del&gt;&lt;/a&gt; changed server behavior to accept ShardCollection even without previous EnableSharding, updated the test accordingly.&lt;br/&gt;
Branch: main&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongosync/commit/907dee6983533c529936cfc86e8005090a56d982&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongosync/commit/907dee6983533c529936cfc86e8005090a56d982&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4380238" author="xgen-internal-githook" created="Mon, 28 Feb 2022 14:17:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Tommaso Tocci&apos;, &apos;email&apos;: &apos;tommaso.tocci@mongodb.com&apos;, &apos;username&apos;: &apos;toto-dev&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60926&quot; title=&quot;Make enableSharding command optional&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60926&quot;&gt;&lt;del&gt;SERVER-60926&lt;/del&gt;&lt;/a&gt; Make enableSharding command optional&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/891c15831552cea487545c0b16944a7a195d6871&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/891c15831552cea487545c0b16944a7a195d6871&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="1988454">SERVER-63897</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1991394">SERVER-64045</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2028193">SERVER-65798</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2291216">SERVER-74998</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="1991372">DOCS-15138</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="29124">SERVER-4773</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="1990130">SERVER-63983</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2413812">SERVER-79893</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2318597">SERVER-76287</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>5.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_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 25 Feb 2022 15:45:18 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 48 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-63897'>SERVER-63897</a></s>]]></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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Starting from FCV 6.0 all databases will be considered sharding-enabled by default, meaning that it won&amp;#39;t be necessary to call `enableSharding` on  a database before to shard a collection (through `shardCollection`) in that database.&lt;br/&gt;
&lt;br/&gt;
Additionally starting from FCV 6.0 `shardCollection` will automatically create the database if doesn&amp;#39;t exists, this means that starting from FCV 6.0 it won&amp;#39;t never throw NamespacesNotFound.</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[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, 48 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</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|i074dr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr24af:</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5749">Sharding EMEA 2022-02-21</customfieldvalue>
    <customfieldvalue id="5815">Sharding EMEA 2022-03-07</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16943"><![CDATA[Cloud]]></customfieldvalue>
    <customfieldvalue key="16944"><![CDATA[Docs]]></customfieldvalue>
    <customfieldvalue key="16945"><![CDATA[Drivers]]></customfieldvalue>
    <customfieldvalue key="16946"><![CDATA[Triage and Release]]></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|i06qj3:</customfieldvalue>

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