<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:01:18 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-64852] mongod --outputConfig produces incorrect YAML option name (replSet vs. replSetName)</title>
                <link>https://jira.mongodb.org/browse/SERVER-64852</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Using &quot;&#8211;outputConfig&quot; to create a YAML configuration file produces an incorrect option name for the replica set name.&#160; Tested in 5.0.5 but also seen in other versions of MongoDB (4.4.8) and likely many others.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2007740">SERVER-64852</key>
            <summary>mongod --outputConfig produces incorrect YAML option name (replSet vs. replSetName)</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="shreyas.kalyan@mongodb.com">Shreyas Kalyan</assignee>
                                    <reporter username="gary.taylor@mongodb.com">Gary Taylor</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 Mar 2022 22:41:26 +0000</created>
                <updated>Sun, 29 Oct 2023 21:40:39 +0000</updated>
                            <resolved>Mon, 7 Aug 2023 19:31:20 +0000</resolved>
                                    <version>4.4.8</version>
                    <version>5.0.5</version>
                                    <fixVersion>7.1.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="5651285" author="shreyas.kalyan" created="Tue, 22 Aug 2023 17:53:21 +0000"  >&lt;p&gt;We decided to not move forward with backporting these to prior server versions. If there is customer demand for this, please re-open the backport tickets.&lt;/p&gt;</comment>
                            <comment id="5618309" author="xgen-internal-githook" created="Mon, 7 Aug 2023 19:24:08 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Shreyas Kalyan&apos;, &apos;email&apos;: &apos;shreyas.kalyan@mongodb.com&apos;, &apos;username&apos;: &apos;shreyaskal&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-64852&quot; title=&quot;mongod --outputConfig produces incorrect YAML option name (replSet vs. replSetName)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-64852&quot;&gt;&lt;del&gt;SERVER-64852&lt;/del&gt;&lt;/a&gt; mongod --outputConfig produces incorrect YAML option name (replSet vs. replSetName)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5478492ce37c8242dea50842bbc1aa623396b6e3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5478492ce37c8242dea50842bbc1aa623396b6e3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4439290" author="sara.golemon" created="Mon, 28 Mar 2022 17:22:01 +0000"  >&lt;p&gt;Looks like both names are &quot;valid&quot; (for certain values of valid): &lt;a href=&quot;https://github.com/mongodb/mongo/blob/dfc76374438cab06a7cce2a43280a7aa69432d78/src/mongo/db/mongod_options_replication.idl#L64-L76&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/dfc76374438cab06a7cce2a43280a7aa69432d78/src/mongo/db/mongod_options_replication.idl#L64-L76&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The imbalance comes from one being valid for YAML configs (using full name), while the other is only valid in INI/CLI.  This means that the fix here is non-trivial, our options are:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Do not include non-YAML configs in --outputConfig output.  This is suboptimal and confusing at best.&lt;/li&gt;
	&lt;li&gt;Option 1, but also output CLI options, and probably also an INI section for settings that are INI only (do these exist?)  Big disadvantage here is that you can&apos;t just cat the output of --outputConfig into a file and be gtg, it goes from machine readable to human readable only.&lt;/li&gt;
	&lt;li&gt;Option2, but also exit non-zero to break existing uses in a predictable way.  This has the disadvantage of preventing uses who &lt;b&gt;expect&lt;/b&gt; combined outputs.&lt;/li&gt;
	&lt;li&gt;Expand --outputConfig to take options, one or more of &quot;yaml&quot;, &quot;ini&quot;, &quot;cli&quot;.  As an advantage this lets us produce a fully-CLI version of the config using short names, which we can&apos;t do currently.&lt;/li&gt;
&lt;/ol&gt;
</comment>
                            <comment id="4433554" author="JIRAUSER1257066" created="Thu, 24 Mar 2022 20:13:38 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36380&quot; title=&quot;Add CLI option for dumping config as YAML&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36380&quot;&gt;&lt;del&gt;SERVER-36380&lt;/del&gt;&lt;/a&gt; implements &lt;tt&gt;&amp;#45;&amp;#45;outputConfig&lt;/tt&gt; cc &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=sara.golemon&quot; class=&quot;user-hover&quot; rel=&quot;sara.golemon&quot;&gt;sara.golemon&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2030089">SERVER-65862</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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25129"><![CDATA[Server Security]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25578"><![CDATA[v7.0]]></customfieldvalue>
    <customfieldvalue key="23470"><![CDATA[v6.0]]></customfieldvalue>
    <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    <customfieldvalue key="18953"><![CDATA[v4.4]]></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>Thu, 24 Mar 2022 20:13:38 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        24 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_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>
                            24 weeks, 1 day 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>edwin.zhou@mongodb.com</customfieldvalue>
            <customfieldvalue>gary.taylor@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>sara.golemon@mongodb.com</customfieldvalue>
            <customfieldvalue>shreyas.kalyan@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0ob5b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1tnsu:</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="6602">Security 2022-12-12</customfieldvalue>
    <customfieldvalue id="6603">Security 2022-12-26</customfieldvalue>
    <customfieldvalue id="6632">Security 2023-01-09</customfieldvalue>
    <customfieldvalue id="6633">Security 2023-01-23</customfieldvalue>
    <customfieldvalue id="6918">Security 2023-02-06</customfieldvalue>
    <customfieldvalue id="6924">Security 2023-05-01</customfieldvalue>
    <customfieldvalue id="6925">Security 2023-05-15</customfieldvalue>
    <customfieldvalue id="7323">Security 2023-06-12</customfieldvalue>
    <customfieldvalue id="7326">Security 2023-07-24</customfieldvalue>
    <customfieldvalue id="7403">Security 2023-08-07</customfieldvalue>
    <customfieldvalue id="7404">Security 2023-08-21</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/program/mongod/#std-option-mongod&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.com/docs/manual/reference/program/mongod/#std-option-mongod&lt;/a&gt;.&#8211;replSet&lt;/tt&gt;{{}}&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;Running: &quot;mongod &lt;font color=&quot;#de350b&quot;&gt;--replSet&lt;/font&gt; s0 --logpath &quot;/data/logs/s0-r0.log&quot; --dbpath /data/shard0/rs0 --bind_ip_all --port 37017 --fork --&lt;b&gt;outputConfig&lt;/b&gt;&quot;&lt;/tt&gt;&lt;tt&gt;&#160;&lt;/tt&gt;&lt;tt&gt;produces the following YAML output.&#160;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;Output below (generated by --outputConfig) to be used as a mongod configuration file.&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;net:&lt;br/&gt;
 bindIp: &quot;*&quot;&lt;br/&gt;
 port: 37017&lt;br/&gt;
 outputConfig: true&lt;br/&gt;
 processManagement:&lt;br/&gt;
 fork: true&lt;br/&gt;
 &lt;font color=&quot;#172b4d&quot;&gt;&lt;b&gt;replication:&lt;/b&gt;&lt;/font&gt;&lt;br/&gt;
 &lt;font color=&quot;#de350b&quot;&gt;replSet: s0&lt;/font&gt;&lt;br/&gt;
 storage:&lt;br/&gt;
 dbPath: /data/shard0/rs0&lt;br/&gt;
 systemLog:&lt;br/&gt;
 destination: file&lt;br/&gt;
 path: /data/logs/s0-r0.log&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;However, if you use this output as a configuration file, mongod will not start as you get the following error:&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;tt&gt;&quot;Unrecognized option: replication.replSet&quot;&lt;/tt&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The following manual correction in the YAML file&#160; below allows mongod to start&lt;/p&gt;

&lt;p&gt;replication:&lt;br/&gt;
 replSetName: s0&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-replication.replSetName&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-replication.replSetName&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;--outputConfig should output the correct name (replSetName) for use in the YAML file as it is different from the name that needs to be used as a command line option (replSet)&lt;/p&gt;</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|i0nxan:</customfieldvalue>

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