<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:04: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-3876] Adding SECONDARY server to replica set  </title>
                <link>https://jira.mongodb.org/browse/SERVER-3876</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I am setting up replica set. &lt;br/&gt;
On master:&lt;br/&gt;
replSet = rs2 added to config file &lt;br/&gt;
~~~ &lt;br/&gt;
&amp;gt; rs.initiate() &lt;br/&gt;
{&lt;br/&gt;
        &quot;info2&quot; : &quot;no configuration explicitly specified &amp;#8211; making one&quot;,&lt;br/&gt;
        &quot;info&quot; : &quot;Config now saved locally.  Should come online in about a minute.&quot;,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
rs2:PRIMARY&amp;gt; db.unicorns.find(&lt;/p&gt;
{name: &apos;Horny&apos;}
&lt;p&gt;);&lt;br/&gt;
&amp;lt;&apos;, dob: new Date(1992,2,13,7,47), loves: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;carrot&amp;#39;,&amp;#39;papaya&amp;#39;&amp;#93;&lt;/span&gt;, weight: 600, gender: &apos;m&apos;, vampires: 63});                         &lt;br/&gt;
rs2:PRIMARY&amp;gt; db.unicorns.find(&lt;/p&gt;
{name: &apos;Horny&apos;}
&lt;p&gt;);&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4e723bcffa1ff8e3080494cf&quot;), &quot;name&quot; : &quot;Horny&quot;, &quot;dob&quot; : ISODate(&quot;1992-03-13T12:47:00Z&quot;), &quot;loves&quot; : [ &quot;carrot&quot;, &quot;papaya&quot; ], &quot;weight&quot; : 600, &quot;gender&quot; : &quot;m&quot;, &quot;vampires&quot; : 63 }
&lt;p&gt;rs2:PRIMARY&amp;gt; &lt;br/&gt;
rs2:PRIMARY&amp;gt; rs.status()&lt;br/&gt;
{&lt;br/&gt;
        &quot;set&quot; : &quot;rs2&quot;,&lt;br/&gt;
        &quot;date&quot; : ISODate(&quot;2011-09-15T17:57:48Z&quot;),&lt;br/&gt;
        &quot;myState&quot; : 1,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 0,&lt;br/&gt;
                        &quot;name&quot; : &quot;SD2QVQ01VL:27017&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;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 1316109264000,
                                &quot;i&quot; : 1
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;2011-09-15T17:54:24Z&quot;),&lt;br/&gt;
                        &quot;self&quot; : true&lt;br/&gt;
                }&lt;br/&gt;
        ],&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
rs2:PRIMARY&amp;gt;&lt;br/&gt;
~~~  &lt;br/&gt;
On slave :&lt;br/&gt;
replSet = rs2 added to config file &lt;br/&gt;
~~&lt;br/&gt;
&amp;gt; rs2.add(&quot;SD2QVQ01VL:27017&quot;);&lt;br/&gt;
Thu Sep 15 14:25:04 ReferenceError: rs2 is not defined (shell):1&lt;br/&gt;
~~~ &lt;br/&gt;
Ping SD2QVQ01VL shows  &lt;br/&gt;
64 bytes from SD2QVQ01VL.SAKSDIRECT.COM (10.32.150.82): icmp_seq=2 ttl=64 time=0.194 ms &lt;/p&gt;

&lt;p&gt;What is wrong in my setup? &lt;br/&gt;
                  Thanks in advance.&lt;br/&gt;
                         Leonid M. &lt;/p&gt;</description>
                <environment>Linux 2.6.18-238.12.1.el5 #1 SMP Sat May 7 20:18:50 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux</environment>
        <key id="22406">SERVER-3876</key>
            <summary>Adding SECONDARY server to replica set  </summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="9">Done</resolution>
                                        <assignee username="kristina">Kristina Chodorow</assignee>
                                    <reporter username="lmikityanskiy">Leonid Mikityanskiy</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Sep 2011 18:30:11 +0000</created>
                <updated>Mon, 11 Jul 2016 18:33:46 +0000</updated>
                            <resolved>Thu, 15 Sep 2011 20:27:55 +0000</resolved>
                                    <version>1.8.3</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="54596" author="kristina" created="Thu, 15 Sep 2011 20:27:55 +0000"  >&lt;p&gt;Cool, you&apos;re welcome.&lt;/p&gt;</comment>
                            <comment id="54593" author="lmikityanskiy" created="Thu, 15 Sep 2011 20:22:59 +0000"  >&lt;p&gt;Now it is OK. I ran rs.add(&apos;SD2QVQ02VL&apos;) on primary  &lt;br/&gt;
And data was replicate from master to slave.&lt;br/&gt;
                  Thanks for your help. &lt;br/&gt;
                           Leonid M.        &lt;/p&gt;</comment>
                            <comment id="54578" author="kristina" created="Thu, 15 Sep 2011 19:31:36 +0000"  >&lt;p&gt;What server is the shell connected to?  You have to be connected to the replica set primary to run rs.add.&lt;/p&gt;</comment>
                            <comment id="54576" author="lmikityanskiy" created="Thu, 15 Sep 2011 19:24:57 +0000"  >&lt;p&gt;I did it and &lt;br/&gt;
~~ &lt;br/&gt;
&amp;gt; rs.add(&quot;SD2QVQ01VL:27017&quot;);&lt;br/&gt;
assert failed : no config object retrievable from local.system.replset&lt;br/&gt;
Error(&quot;Printing Stack Trace&quot;)@:0&lt;br/&gt;
()@shell/utils.js:21&lt;br/&gt;
(&quot;assert failed : no config object retrievable from local.system.replset&quot;)@shell/utils.js:32&lt;br/&gt;
(null,&quot;no config object retrievable from local.system.replset&quot;)@shell/utils.js:42&lt;br/&gt;
(&quot;SD2QVQ01VL:27017&quot;)@shell/utils.js:1335&lt;br/&gt;
@(shell):1&lt;/p&gt;

&lt;p&gt;Thu Sep 15 15:22:47 uncaught exception: assert failed : no config object retrievable from local.system.replset&lt;br/&gt;
&amp;gt; &lt;br/&gt;
~~ &lt;br/&gt;
                             Thanks.&lt;br/&gt;
                                   Leonid M.&lt;/p&gt;</comment>
                            <comment id="54570" author="kristina" created="Thu, 15 Sep 2011 19:06:47 +0000"  >&lt;p&gt;You need to run rs.add(&quot;SD2QVQ01VL:27017&quot;);, not rs2.  &quot;rs&quot; is a shell global with a bunch of replica set helper functions.  &quot;rs2&quot; doesn&apos;t exist in the shell.&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>5.0</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, 15 Sep 2011 19:02:48 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 22 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>lmikityanskiy</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroqef:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhiqv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15841</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_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|ht0bwv:</customfieldvalue>

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