<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:27 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-1922] need to restart mongod to clear stale shard mete-data</title>
                <link>https://jira.mongodb.org/browse/SERVER-1922</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Problem:&lt;br/&gt;
After dropping a shard and re-creating a shard with the same name, the following was seen in the logs&lt;/p&gt;

&lt;p&gt;Sun Oct 10 20:37:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn173932&amp;#93;&lt;/span&gt; DBException in process: setShardVersion failed! &lt;/p&gt;
{ &quot;errmsg&quot; : &quot;exception: gotShardHost different than what i had before  before [set3/rs3a:27018]  got [set3/rs3a:27018,rs3b:27018] &quot;, &quot;code&quot; : 13299, &quot;ok&quot; : 0 }

&lt;p&gt;Reproduce:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;turn the balancer off&lt;br/&gt;
db.settings.update( 
{ _id : &quot;balancer&quot; }
&lt;p&gt;, &lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: { $set }&lt;/span&gt; &lt;/div&gt;
&lt;p&gt; , true )&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;create a 2 member replset, &quot;foo&quot;&lt;/li&gt;
	&lt;li&gt;add the shard with a single member&lt;br/&gt;
db.runCommand( 
{ addshard : &quot;foo/node1&quot;, maxSize: 409600, name : &quot;shard1&quot; }
&lt;p&gt; );&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;remove the shard&lt;br/&gt;
db.runCommand( 
{ removeshard : &quot;foo/node1&quot; }
&lt;p&gt; );&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;add the shard again, but with both nodes&lt;br/&gt;
db.runCommand( 
{ addshard : &quot;foo/node1,node2&quot;, maxSize: 409600, name : &quot;shard1&quot; }
&lt;p&gt; );&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Workaround:&lt;br/&gt;
Since the members of the shard were part of a replset, the following was performed to clear the error&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;find the current master (through looking at the rs.status()&lt;/li&gt;
	&lt;li&gt;for the current master, do a rs.stepDown()&lt;/li&gt;
	&lt;li&gt;restart that mongod process&lt;/li&gt;
	&lt;li&gt;repeat until all members of the replset had been re-started&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Business Case:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Reliability&lt;br/&gt;
Need to deal with stale meta-data more gracefully and automatically&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="13316">SERVER-1922</key>
            <summary>need to restart mongod to clear stale shard mete-data</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="9">Done</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="alvin">Alvin Richards</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Oct 2010 15:58:59 +0000</created>
                <updated>Tue, 12 Jul 2016 00:20:12 +0000</updated>
                            <resolved>Mon, 11 Oct 2010 22:01:01 +0000</resolved>
                                    <version>1.7.1</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="145242" author="azat" created="Fri, 20 Jul 2012 09:37:19 +0000"  >&lt;p&gt;This is not helps for me, because before I have 2 single shards, after I have 2 shards with replSet for each&lt;/p&gt;

&lt;p&gt;For how I migrate from single to replSet in sharding see #&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6424&quot; title=&quot;How can I check is &amp;#39;mongos&amp;#39; transfer query to secondary or not&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6424&quot;&gt;&lt;del&gt;SERVER-6424&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="19073" author="eliot" created="Mon, 11 Oct 2010 22:01:01 +0000"  >&lt;p&gt;&lt;a href=&quot;http://github.com/mongodb/mongo/commit/f6141d9bac74be42762c234769b44a661cc1f77c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/f6141d9bac74be42762c234769b44a661cc1f77c&lt;/a&gt;&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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 11 Oct 2010 22:01:01 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 30 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>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>
                            11 years, 30 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_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>alvin</customfieldvalue>
            <customfieldvalue>azat</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpdh3:</customfieldvalue>

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

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

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