<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:17:29 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-8458] adding a node that has been a replset member should clear out the cached state</title>
                <link>https://jira.mongodb.org/browse/SERVER-8458</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I set up a replica set with 3 nodes, one acting as arbiter. &lt;/p&gt;

&lt;p&gt;after initializing and adding the hosts, I added the third as a arbiter using rs.addArb(host)&lt;/p&gt;

&lt;p&gt;rs.conf()&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;&quot;_id&quot; : &quot;api&quot;,&lt;br/&gt;
	&quot;version&quot; : 7,&lt;br/&gt;
	&quot;members&quot; : [&lt;br/&gt;
		&lt;/p&gt;
{
			&quot;_id&quot; : 0,
			&quot;host&quot; : &quot;minnow-data-1.cloud.appcelerator.com:27017&quot;
		}
&lt;p&gt;,&lt;br/&gt;
		&lt;/p&gt;
{
			&quot;_id&quot; : 1,
			&quot;host&quot; : &quot;minnow-data-2.cloud.appcelerator.com:27017&quot;
		}
&lt;p&gt;,&lt;/p&gt;
		{
			&quot;_id&quot; : 2,
			&quot;host&quot; : &quot;minnow-data-arbiter-1.cloud.appcelerator.com:27017&quot;,
			&quot;arbiterOnly&quot; : true
		}

&lt;p&gt;rs.status()&lt;/p&gt;

&lt;p&gt;	&quot;set&quot; : &quot;api&quot;,&lt;br/&gt;
	&quot;date&quot; : ISODate(&quot;2013-02-06T23:51:40Z&quot;),&lt;br/&gt;
	&quot;myState&quot; : 2,&lt;br/&gt;
	&quot;syncingTo&quot; : &quot;minnow-data-2.cloud.appcelerator.com:27017&quot;,&lt;br/&gt;
	&quot;members&quot; : [&lt;br/&gt;
		&lt;/p&gt;
{
			&quot;_id&quot; : 0,
			&quot;name&quot; : &quot;minnow-data-1.cloud.appcelerator.com:27017&quot;,
			&quot;health&quot; : 1,
			&quot;state&quot; : 2,
			&quot;stateStr&quot; : &quot;SECONDARY&quot;,
			&quot;uptime&quot; : 4884,
			&quot;optime&quot; : Timestamp(1360189735000, 1),
			&quot;optimeDate&quot; : ISODate(&quot;2013-02-06T22:28:55Z&quot;),
			&quot;self&quot; : true
		}
&lt;p&gt;,&lt;br/&gt;
		&lt;/p&gt;
{
			&quot;_id&quot; : 1,
			&quot;name&quot; : &quot;minnow-data-2.cloud.appcelerator.com:27017&quot;,
			&quot;health&quot; : 1,
			&quot;state&quot; : 1,
			&quot;stateStr&quot; : &quot;PRIMARY&quot;,
			&quot;uptime&quot; : 4882,
			&quot;optime&quot; : Timestamp(1360189735000, 1),
			&quot;optimeDate&quot; : ISODate(&quot;2013-02-06T22:28:55Z&quot;),
			&quot;lastHeartbeat&quot; : ISODate(&quot;2013-02-06T23:51:39Z&quot;),
			&quot;pingMs&quot; : 1
		}
&lt;p&gt;,&lt;/p&gt;
		{
			&quot;_id&quot; : 2,
			&quot;name&quot; : &quot;minnow-data-arbiter-1.cloud.appcelerator.com:27017&quot;,
			&quot;health&quot; : 1,
			&quot;state&quot; : 2,
			&quot;stateStr&quot; : &quot;SECONDARY&quot;,
			&quot;uptime&quot; : 4882,
			&quot;lastHeartbeat&quot; : ISODate(&quot;2013-02-06T23:51:39Z&quot;),
			&quot;pingMs&quot; : 12
		}
&lt;p&gt;	],&lt;br/&gt;
	&quot;ok&quot; : 1&lt;/p&gt;

&lt;p&gt;I would expect the third node to be in state 7 for arbiter. &lt;/p&gt;</description>
                <environment>ubuntu</environment>
        <key id="64459">SERVER-8458</key>
            <summary>adding a node that has been a replset member should clear out the cached state</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="-1">Unassigned</assignee>
                                    <reporter username="amorcomb">c a morcomb</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Feb 2013 23:52:22 +0000</created>
                <updated>Tue, 3 Mar 2015 18:32:55 +0000</updated>
                            <resolved>Fri, 20 Feb 2015 15:19:17 +0000</resolved>
                                    <version>2.2.3</version>
                                    <fixVersion>2.7.8</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="833577" author="milkie" created="Fri, 20 Feb 2015 15:19:17 +0000"  >&lt;p&gt;Fixed as part of the replication refactor for 3.0.  A node removed from a set and readded as an arbiter now properly works as an arbiter.&lt;/p&gt;</comment>
                            <comment id="261340" author="amorcomb" created="Fri, 8 Feb 2013 21:18:59 +0000"  >&lt;p&gt;Thanks this is what must have happened. Following your steps fixed it. Much thanks. &lt;/p&gt;</comment>
                            <comment id="261268" author="thomasr" created="Fri, 8 Feb 2013 20:14:18 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;did you add the node as a secondary before, then removed it with &lt;tt&gt;rs.remove()&lt;/tt&gt; and re-added it as an arbiter? This is the only way I can think of that would put you in this situation.&lt;/p&gt;

&lt;p&gt;If this is the case, you should shut down the arbiter node, delete its &lt;tt&gt;dbpath&lt;/tt&gt; directory (arbiters don&apos;t need to store any data on disk) and restart it. The &lt;tt&gt;rs.status()&lt;/tt&gt; then should show the node correctly as &lt;tt&gt;ARBITER&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Please let us know if this procedure solves your problem or if you have any additional questions.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="259573" author="amorcomb" created="Thu, 7 Feb 2013 00:04:32 +0000"  >&lt;p&gt;mongodb 2.2.3&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>4.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>Fri, 8 Feb 2013 20:14:18 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 51 weeks, 5 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>false</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>
                            8 years, 51 weeks, 5 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>amorcomb</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>thomas.rueckstiess@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn89j:</customfieldvalue>

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

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

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