<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:00:12 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>[DOCS-10286] rs.add should include _id in  upgrade-config-servers-to-replica-set documentation</title>
                <link>https://jira.mongodb.org/browse/DOCS-10286</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;Here is a ticket to help fix the documentation to convert SCCC to CSRS, more specifically for rs.add step. Given the rs.add overloads&lt;/p&gt;

&lt;p&gt;rs.add(hostportstr)&lt;br/&gt;
rs.add(membercfgobj)&lt;/p&gt;

&lt;p&gt;Documentation was pointing to do statement similar to this &lt;br/&gt;
rs.add( &lt;/p&gt;
{ host: &amp;lt;host:port&amp;gt;, priority: 0, votes: 0 }
&lt;p&gt; )&lt;/p&gt;

&lt;p&gt;however,  it threw an exception as below&lt;br/&gt;
csrsN2:PRIMARY&amp;gt; rs.add( &lt;/p&gt;
{ host: &quot;ip-10-167-108-10:17309&quot;, priority: 0, votes: 0 }
&lt;p&gt; )&lt;br/&gt;
{&lt;br/&gt;
	&quot;ok&quot; : 0,&lt;br/&gt;
	&quot;errmsg&quot; : &quot;NoSuchKey: _id field is missing for member:&lt;/p&gt;
{ host: \&quot;ip-10-167-108-10:17309\&quot;, priority: 0.0, votes: 0.0 }
&lt;p&gt;&quot;,&lt;br/&gt;
	&quot;code&quot; : 93,&lt;br/&gt;
	&quot;$gleStats&quot; : &lt;/p&gt;
{
		&quot;lastOpTime&quot; : Timestamp(0, 0),
		&quot;electionId&quot; : ObjectId(&quot;7fffffff0000000000000001&quot;)
	}
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;so I modified the add operation with _id as below and it did work. &lt;/p&gt;

&lt;p&gt;rs.add( &lt;/p&gt;
{ _id: 1, host: &quot;ip-10-167-108-10:17109&quot;, priority: 0, votes: 0 }
&lt;p&gt; )&lt;br/&gt;
rs.add( &lt;/p&gt;
{ _id: 2, host: &quot;ip-10-167-108-10:17209&quot;, priority: 0, votes: 0 }
&lt;p&gt; )&lt;br/&gt;
rs.add( &lt;/p&gt;
{ _id: 3, host: &quot;ip-10-167-108-10:17309&quot;, priority: 0, votes: 0 }
&lt;p&gt; )&lt;br/&gt;
{&lt;br/&gt;
	&quot;ok&quot; : 1,&lt;br/&gt;
	&quot;$gleStats&quot; : &lt;/p&gt;
{
		&quot;lastOpTime&quot; : Timestamp(1495216622, 3),
		&quot;electionId&quot; : ObjectId(&quot;7fffffff0000000000000001&quot;)
	}
&lt;p&gt;} &lt;/p&gt;


&lt;p&gt;rs.status()&lt;br/&gt;
csrsN2:PRIMARY&amp;gt; rs.status()&lt;br/&gt;
{&lt;br/&gt;
	&quot;set&quot; : &quot;csrsN2&quot;,&lt;br/&gt;
	&quot;date&quot; : ISODate(&quot;2017-05-19T17:57:38.600Z&quot;),&lt;br/&gt;
	&quot;myState&quot; : 1,&lt;br/&gt;
	&quot;term&quot; : NumberLong(1),&lt;br/&gt;
	&quot;configsvr&quot; : true,&lt;br/&gt;
	&quot;heartbeatIntervalMillis&quot; : NumberLong(2000),&lt;br/&gt;
	&quot;members&quot; : [&lt;br/&gt;
		{&lt;br/&gt;
			&quot;_id&quot; : 0,&lt;br/&gt;
			&quot;name&quot; : &quot;ip-10-167-108-10:17119&quot;,&lt;br/&gt;
			&quot;health&quot; : 1,&lt;br/&gt;
			&quot;state&quot; : 1,&lt;br/&gt;
			&quot;stateStr&quot; : &quot;PRIMARY&quot;,&lt;br/&gt;
			&quot;uptime&quot; : 1126,&lt;br/&gt;
			&quot;optime&quot; : &lt;/p&gt;
{
				&quot;ts&quot; : Timestamp(1495216655, 2),
				&quot;t&quot; : NumberLong(1)
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;optimeDate&quot; : ISODate(&quot;2017-05-19T17:57:35Z&quot;),&lt;br/&gt;
			&quot;electionTime&quot; : Timestamp(1495215532, 1),&lt;br/&gt;
			&quot;electionDate&quot; : ISODate(&quot;2017-05-19T17:38:52Z&quot;),&lt;br/&gt;
			&quot;configVersion&quot; : 4,&lt;br/&gt;
			&quot;self&quot; : true&lt;br/&gt;
		},&lt;br/&gt;
		{&lt;br/&gt;
			&quot;_id&quot; : 1,&lt;br/&gt;
			&quot;name&quot; : &quot;ip-10-167-108-10:17109&quot;,&lt;br/&gt;
			&quot;health&quot; : 1,&lt;br/&gt;
			&quot;state&quot; : 2,&lt;br/&gt;
			&quot;stateStr&quot; : &quot;SECONDARY&quot;,&lt;br/&gt;
			&quot;uptime&quot; : 35,&lt;br/&gt;
			&quot;optime&quot; : &lt;/p&gt;
{
				&quot;ts&quot; : Timestamp(1495216655, 2),
				&quot;t&quot; : NumberLong(1)
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;optimeDate&quot; : ISODate(&quot;2017-05-19T17:57:35Z&quot;),&lt;br/&gt;
			&quot;lastHeartbeat&quot; : ISODate(&quot;2017-05-19T17:57:36.884Z&quot;),&lt;br/&gt;
			&quot;lastHeartbeatRecv&quot; : ISODate(&quot;2017-05-19T17:57:37.897Z&quot;),&lt;br/&gt;
			&quot;pingMs&quot; : NumberLong(0),&lt;br/&gt;
			&quot;syncingTo&quot; : &quot;ip-10-167-108-10:17119&quot;,&lt;br/&gt;
			&quot;configVersion&quot; : 4&lt;br/&gt;
		},&lt;br/&gt;
		{&lt;br/&gt;
			&quot;_id&quot; : 2,&lt;br/&gt;
			&quot;name&quot; : &quot;ip-10-167-108-10:17209&quot;,&lt;br/&gt;
			&quot;health&quot; : 0,&lt;br/&gt;
			&quot;state&quot; : 8,&lt;br/&gt;
			&quot;stateStr&quot; : &quot;(not reachable/healthy)&quot;,&lt;br/&gt;
			&quot;uptime&quot; : 0,&lt;br/&gt;
			&quot;optime&quot; : &lt;/p&gt;
{
				&quot;ts&quot; : Timestamp(0, 0),
				&quot;t&quot; : NumberLong(-1)
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;optimeDate&quot; : ISODate(&quot;1970-01-01T00:00:00Z&quot;),&lt;br/&gt;
			&quot;lastHeartbeat&quot; : ISODate(&quot;2017-05-19T17:57:36.895Z&quot;),&lt;br/&gt;
			&quot;lastHeartbeatRecv&quot; : ISODate(&quot;1970-01-01T00:00:00Z&quot;),&lt;br/&gt;
			&quot;pingMs&quot; : NumberLong(0),&lt;br/&gt;
			&quot;lastHeartbeatMessage&quot; : &quot;not running with --replSet&quot;,&lt;br/&gt;
			&quot;configVersion&quot; : -1&lt;br/&gt;
		},&lt;br/&gt;
		{&lt;br/&gt;
			&quot;_id&quot; : 3,&lt;br/&gt;
			&quot;name&quot; : &quot;ip-10-167-108-10:17309&quot;,&lt;br/&gt;
			&quot;health&quot; : 0,&lt;br/&gt;
			&quot;state&quot; : 8,&lt;br/&gt;
			&quot;stateStr&quot; : &quot;(not reachable/healthy)&quot;,&lt;br/&gt;
			&quot;uptime&quot; : 0,&lt;br/&gt;
			&quot;optime&quot; : &lt;/p&gt;
{
				&quot;ts&quot; : Timestamp(0, 0),
				&quot;t&quot; : NumberLong(-1)
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;optimeDate&quot; : ISODate(&quot;1970-01-01T00:00:00Z&quot;),&lt;br/&gt;
			&quot;lastHeartbeat&quot; : ISODate(&quot;2017-05-19T17:57:36.895Z&quot;),&lt;br/&gt;
			&quot;lastHeartbeatRecv&quot; : ISODate(&quot;1970-01-01T00:00:00Z&quot;),&lt;br/&gt;
			&quot;pingMs&quot; : NumberLong(0),&lt;br/&gt;
			&quot;lastHeartbeatMessage&quot; : &quot;not running with --replSet&quot;,&lt;br/&gt;
			&quot;configVersion&quot; : -1&lt;br/&gt;
		}&lt;br/&gt;
	],&lt;br/&gt;
	&quot;ok&quot; : 1,&lt;br/&gt;
	&quot;$gleStats&quot; : &lt;/p&gt;
{
		&quot;lastOpTime&quot; : Timestamp(1495216622, 3),
		&quot;electionId&quot; : ObjectId(&quot;7fffffff0000000000000001&quot;)
	}
&lt;p&gt;}&lt;/p&gt;



&lt;p&gt;&lt;b&gt;Reporter&lt;/b&gt;: Shyam Arjarapu&lt;br/&gt;
&lt;b&gt;E-mail&lt;/b&gt;: &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;mailto:shyam@mongodb.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;shyam@mongodb.com&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/mail_small.gif&quot; height=&quot;12&quot; width=&quot;13&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>&lt;br/&gt;
&lt;br/&gt;
*Location*: &lt;a href=&quot;https://docs.mongodb.com/manual/tutorial/upgrade-config-servers-to-replica-set/&quot;&gt;https://docs.mongodb.com/manual/tutorial/upgrade-config-servers-to-replica-set/&lt;/a&gt;&lt;br/&gt;
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36&lt;br/&gt;
*Referrer*: &lt;a href=&quot;https://docs.mongodb.com/manual/release-notes/3.4-upgrade-sharded-cluster/&quot;&gt;https://docs.mongodb.com/manual/release-notes/3.4-upgrade-sharded-cluster/&lt;/a&gt;&lt;br/&gt;
*Screen Resolution*: 1440 x 900&lt;br/&gt;
</environment>
        <key id="385160">DOCS-10286</key>
            <summary>rs.add should include _id in  upgrade-config-servers-to-replica-set documentation</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="13202">Works as Designed</resolution>
                                        <assignee username="nick.larew@mongodb.com">Nicholas Larew</assignee>
                                    <reporter username="xgen-internal-docs">Docs Collector User</reporter>
                        <labels>
                            <label>collector-298ba4e7</label>
                    </labels>
                <created>Fri, 19 May 2017 18:00:35 +0000</created>
                <updated>Fri, 27 Oct 2023 13:19:25 +0000</updated>
                            <resolved>Mon, 4 Dec 2017 16:28:50 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1741585" author="nick.larew" created="Mon, 4 Dec 2017 16:28:50 +0000"  >&lt;p&gt;The config server SCCC -&amp;gt; CSRS tutorial specifies that all upgrades need to be from v3.2.4. In v3.0.0 the _id field was made optional on host documents for rs.add() which is also documented.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 4 Dec 2017 16:28:50 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 10 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, 10 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-docs</customfieldvalue>
            <customfieldvalue>nick.larew@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht7pcn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsztq7:</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_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht73on:</customfieldvalue>

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