<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:30:38 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-32569] Introduce uniform way to allow config servers and shard replica sets to start in non-cluster mode</title>
                <link>https://jira.mongodb.org/browse/SERVER-32569</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Starting with MongoDB version 3.2, all sharding database components (config server and shard replica sets) persist the fact that they belong to a sharded cluster. This information is stored in two places - the cluster identity document and the replica set configuration (config servers only).&lt;/p&gt;

&lt;p&gt;Once this information persisted, it is not possible to restart a config server or shard as an independent replica set, because startup will fail if &lt;tt&gt;&amp;#45;&amp;#45;configsvr&lt;/tt&gt; or &lt;tt&gt;&amp;#45;&amp;#45;shardsvr&lt;/tt&gt; are missing. This serves as a protection against customers inadvertently omitting startup parameters and misconfiguring their systems, but it also prevents the shard to be started up for maintenance (e.g., restore).&lt;/p&gt;

&lt;p&gt;In order to unify the non-cluster behaviour across all versions and unblock the Cloud team, on all versions starting from 3.2 we will introduce a new startup-only parameter on mongod called --setParameter skipShardingConfigurationChecks=true, which is incompatible with --configsvr or --shardsvr. The meaning of this flag is &quot;I am planning to restore directly into the node, I know what I am doing and I don&apos;t want any sharding validations or background threads to run&quot;.&lt;/p&gt;

&lt;p&gt;This flag will make &lt;a href=&quot;https://github.com/mongodb/mongo/blob/6166b5586f4dc6c5ac2cc2aa4c78b60f4c234c2d/src/mongo/db/repl/replica_set_config.cpp#L501&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this&lt;/a&gt; and &lt;a href=&quot;https://github.com/mongodb/mongo/blob/6166b5586f4dc6c5ac2cc2aa4c78b60f4c234c2d/src/mongo/db/repl/topology_coordinator_impl.cpp#L2195&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this&lt;/a&gt; checks conditional on the flag being enabled, so that replica set nodes will not fail to start or start as REMOVED.&lt;/p&gt;</description>
                <environment></environment>
        <key id="479478">SERVER-32569</key>
            <summary>Introduce uniform way to allow config servers and shard replica sets to start in non-cluster mode</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="misha.tyulenev@mongodb.com">Misha Tyulenev</assignee>
                                    <reporter username="kaloian.manassiev@mongodb.com">Kaloian Manassiev</reporter>
                        <labels>
                    </labels>
                <created>Fri, 5 Jan 2018 21:45:25 +0000</created>
                <updated>Mon, 30 Oct 2023 23:09:32 +0000</updated>
                            <resolved>Sun, 21 Jan 2018 20:40:29 +0000</resolved>
                                    <version>3.2.0</version>
                    <version>3.4.0</version>
                    <version>3.6.0</version>
                    <version>3.7.1</version>
                                    <fixVersion>3.2.19</fixVersion>
                    <fixVersion>3.4.11</fixVersion>
                    <fixVersion>3.6.3</fixVersion>
                    <fixVersion>3.7.2</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>14</watches>
                                                                                                                <comments>
                            <comment id="1788383" author="xgen-internal-githook" created="Mon, 29 Jan 2018 22:51:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;misha@mongodb.com&apos;, &apos;name&apos;: &apos;Misha Tyulenev&apos;, &apos;username&apos;: &apos;mikety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32569&quot; title=&quot;Introduce uniform way to allow config servers and shard replica sets to start in non-cluster mode&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32569&quot;&gt;&lt;del&gt;SERVER-32569&lt;/del&gt;&lt;/a&gt; allow config servers and shard replica sets to start in non-cluster mode&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1b8cce46314746e106445896d70ca1611ab97ca3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1b8cce46314746e106445896d70ca1611ab97ca3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1781165" author="xgen-internal-githook" created="Mon, 22 Jan 2018 19:22:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Misha Tyulenev&apos;, &apos;email&apos;: &apos;misha@mongodb.com&apos;, &apos;username&apos;: &apos;mikety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32569&quot; title=&quot;Introduce uniform way to allow config servers and shard replica sets to start in non-cluster mode&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32569&quot;&gt;&lt;del&gt;SERVER-32569&lt;/del&gt;&lt;/a&gt; allow config servers and shard replica sets to start in non-cluster mode&lt;/p&gt;

&lt;p&gt;(cherry picked from commit b251fd633d7572c0b221df3b316534596e981041)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/34f5bec2c9d827d71828fe858167f89a28b29a2a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/34f5bec2c9d827d71828fe858167f89a28b29a2a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1781040" author="xgen-internal-githook" created="Mon, 22 Jan 2018 18:17:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Misha Tyulenev&apos;, &apos;email&apos;: &apos;misha@mongodb.com&apos;, &apos;username&apos;: &apos;mikety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32569&quot; title=&quot;Introduce uniform way to allow config servers and shard replica sets to start in non-cluster mode&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32569&quot;&gt;&lt;del&gt;SERVER-32569&lt;/del&gt;&lt;/a&gt; allow config servers and shard replica sets to start in non-cluster mode&lt;/p&gt;

&lt;p&gt;(cherry picked from commit b251fd633d7572c0b221df3b316534596e981041)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/924198af93bd2792f1e8bd86fc9806504826ca2f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/924198af93bd2792f1e8bd86fc9806504826ca2f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1780229" author="xgen-internal-githook" created="Sun, 21 Jan 2018 20:37:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Misha Tyulenev&apos;, &apos;email&apos;: &apos;misha@mongodb.com&apos;, &apos;username&apos;: &apos;mikety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32569&quot; title=&quot;Introduce uniform way to allow config servers and shard replica sets to start in non-cluster mode&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32569&quot;&gt;&lt;del&gt;SERVER-32569&lt;/del&gt;&lt;/a&gt; allow config servers and shard replica sets to start in non-cluster mode&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b251fd633d7572c0b221df3b316534596e981041&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b251fd633d7572c0b221df3b316534596e981041&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1770161" author="kaloian.manassiev" created="Wed, 10 Jan 2018 14:59:27 +0000"  >&lt;p&gt;Yes, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spencer&quot; class=&quot;user-hover&quot; rel=&quot;spencer&quot;&gt;spencer&lt;/a&gt; and I discussed part 2 yesterday and he suggested the same thing. I have it on my TODO list to file a ticket, which defines how this would work - because there are a couple of &quot;races&quot;, which need to be thought through.&lt;/p&gt;</comment>
                            <comment id="1770147" author="schwerin" created="Wed, 10 Jan 2018 14:50:36 +0000"  >&lt;p&gt;Part 1 of our proposal seems fine, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaloian.manassiev&quot; class=&quot;user-hover&quot; rel=&quot;kaloian.manassiev&quot;&gt;kaloian.manassiev&lt;/a&gt;, with one caveat. The &quot;transition to REMOVED&quot; behavior you cite is related to the 3.0-&amp;gt;3.2 rolling upgrade process, so you&apos;ll want to be careful.&lt;/p&gt;

&lt;p&gt;Part 2 I&apos;m less certain of. I&apos;d like to try to catch these misconfigurations closer to startup, if possible. We can already do that for config servers, because the replica set configuration document contains the &lt;tt&gt;configsvr: true&lt;/tt&gt; flag. For shards, it&apos;s certainly trickier. We can consider that under the separate ticket, when you file it. Also, please link that ticket to this one.&lt;/p&gt;</comment>
                            <comment id="1766818" author="kaloian.manassiev" created="Fri, 5 Jan 2018 23:38:17 +0000"  >&lt;p&gt;&lt;b&gt;Part 1:&lt;/b&gt; In order to unify the non-cluster behaviour across all versions and unblock the Cloud team, I propose the following:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;(On all versions starting from 3.2) Introduce a new startup-only parameter on mongod called &lt;tt&gt;--setParameter skipShardingConfigurationChecks=true&lt;/tt&gt;, which is incompatible with &lt;tt&gt;&amp;#45;&amp;#45;configsvr&lt;/tt&gt; or &lt;tt&gt;&amp;#45;&amp;#45;shardsvr&lt;/tt&gt;. The meaning of this flag is &quot;I am planning to restore directly into the node, I know what I am doing and I don&apos;t want any sharding validations or background threads to run&quot;.&lt;/li&gt;
	&lt;li&gt;Make &lt;a href=&quot;https://github.com/mongodb/mongo/blob/6166b5586f4dc6c5ac2cc2aa4c78b60f4c234c2d/src/mongo/db/repl/replica_set_config.cpp#L501&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this&lt;/a&gt; and &lt;a href=&quot;https://github.com/mongodb/mongo/blob/6166b5586f4dc6c5ac2cc2aa4c78b60f4c234c2d/src/mongo/db/repl/topology_coordinator_impl.cpp#L2195&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this&lt;/a&gt; checks conditional on the flag being enabled, so that replica set nodes will not fail to start or start as REMOVED.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;Part 2 (not part of this ticket):&lt;/b&gt; Since internally we rely heavily on the &lt;tt&gt;&amp;#45;&amp;#45;configsvr/&amp;#45;&amp;#45;shardsvr&lt;/tt&gt; flags being set, in order to tighten these checks I propose that we also add this extra logic:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;(On all versions starting from 3.6) Add a check in the replica set&apos;s &lt;a href=&quot;https://github.com/mongodb/mongo/blob/3c71b635958e2e769c47fcabc714546917c34d10/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp#L693&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;transition to primary&lt;/a&gt;, such that if the node contains a cluster id, but is missing the configsvr/shardsvr flags, the transition will fail, unless forClusterRestore is enabled. Ideally this check should also happen when the node is secondary or is transitioning to secondary as well so that there is no way that customers can misconfigure their nodes.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spencer&quot; class=&quot;user-hover&quot; rel=&quot;spencer&quot;&gt;spencer&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=schwerin&quot; class=&quot;user-hover&quot; rel=&quot;schwerin&quot;&gt;schwerin&lt;/a&gt; - do you see any issues with this?&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="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="498087">DOCS-11323</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15141"><![CDATA[v3.6]]></customfieldvalue>
    <customfieldvalue key="14340"><![CDATA[v3.4]]></customfieldvalue>
    <customfieldvalue key="13440"><![CDATA[v3.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>Wed, 10 Jan 2018 14:50:36 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 2 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 2 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>misha.tyulenev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htng8n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrabzz:</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="2089">Sharding 2018-01-29</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|htn2d3:</customfieldvalue>

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