<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:06:02 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-4453] Shards not picking up replica set updates</title>
                <link>https://jira.mongodb.org/browse/SERVER-4453</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When adding next replica to set we expect mongo to add this node to shard automatically, but in our setup it has never happened. &lt;/p&gt;

&lt;p&gt;e.g. after successfully adding the second replica to set we get rs config:&lt;/p&gt;

&lt;p&gt;PRIMARY&amp;gt; rs.status()&lt;br/&gt;
{&lt;br/&gt;
    &quot;set&quot; : &quot;rs-0&quot;,&lt;br/&gt;
    &quot;date&quot; : ISODate(&quot;2011-12-08T15:46:26Z&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;mongo-0-0:27018&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; : 1323358847000,
                &quot;i&quot; : 1
            }
&lt;p&gt;,&lt;br/&gt;
            &quot;optimeDate&quot; : ISODate(&quot;2011-12-08T15:40:47Z&quot;),&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;mongo-0-1:27018&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; : 513,&lt;br/&gt;
            &quot;optime&quot; : &lt;/p&gt;
{
                &quot;t&quot; : 1323358847000,
                &quot;i&quot; : 1
            }
&lt;p&gt;,&lt;br/&gt;
            &quot;optimeDate&quot; : ISODate(&quot;2011-12-08T15:40:47Z&quot;),&lt;br/&gt;
            &quot;lastHeartbeat&quot; : ISODate(&quot;2011-12-08T15:46:26Z&quot;),&lt;br/&gt;
            &quot;pingMs&quot; : 2&lt;br/&gt;
        },&lt;br/&gt;
        {&lt;br/&gt;
            &quot;_id&quot; : 2,&lt;br/&gt;
            &quot;name&quot; : &quot;mongo-0-0:27020&quot;,&lt;br/&gt;
            &quot;health&quot; : 1,&lt;br/&gt;
            &quot;state&quot; : 7,&lt;br/&gt;
            &quot;stateStr&quot; : &quot;ARBITER&quot;,&lt;br/&gt;
            &quot;uptime&quot; : 327,&lt;br/&gt;
            &quot;optime&quot; : &lt;/p&gt;
{
                &quot;t&quot; : 0,
                &quot;i&quot; : 0
            }
&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;2011-12-08T15:46:25Z&quot;),&lt;br/&gt;
            &quot;pingMs&quot; : 0&lt;br/&gt;
        }&lt;br/&gt;
    ],&lt;br/&gt;
    &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Then we go on router and flush router&apos;s config to update cached info:&lt;/p&gt;

&lt;p&gt;mongos&amp;gt; db.runCommand(&quot;flushRouterConfig&quot;)&lt;/p&gt;
{ &quot;flushed&quot; : true, &quot;ok&quot; : 1 }

&lt;p&gt;And the new node &apos;mongo-0-1&apos; is not in shard-0:&lt;/p&gt;


&lt;p&gt;mongos&amp;gt; db.printShardingStatus()&lt;br/&gt;
&amp;#8212; Sharding Status &amp;#8212; &lt;br/&gt;
  sharding version: &lt;/p&gt;
{ &quot;_id&quot; : 1, &quot;version&quot; : 3 }
&lt;p&gt;  shards:&lt;/p&gt;
    {  &quot;_id&quot; : &quot;shard-0&quot;,  &quot;host&quot; : &quot;rs-0/mongo-0-0:27018&quot; }
    {  &quot;_id&quot; : &quot;shard-1&quot;,  &quot;host&quot; : &quot;rs-1/mongo-1-0:27018&quot; }
&lt;p&gt;  databases:&lt;/p&gt;
    {  &quot;_id&quot; : &quot;admin&quot;,  &quot;partitioned&quot; : false,  &quot;primary&quot; : &quot;config&quot; }

&lt;p&gt;Then we check config-server, just to make sure that shard knows nothing about any new changes in replica set:&lt;/p&gt;

&lt;p&gt;db.shards.find()&lt;/p&gt;
{ &quot;_id&quot; : &quot;shard-0&quot;, &quot;host&quot; : &quot;rs-0/mongo-0-0:27018&quot; }
{ &quot;_id&quot; : &quot;shard-1&quot;, &quot;host&quot; : &quot;rs-1/mongo-1-0:27018&quot; }

&lt;p&gt;The only suspicious part in router&apos;s log was:&lt;/p&gt;

&lt;p&gt;Thu Dec  8 15:37:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; updated set (rs-0) to: rs-0/mongo-0-0:27018,mongo-0-1:27018&lt;br/&gt;
Thu Dec  8 15:37:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; warning: node: mongo-0-1:27018 isn&apos;t a part of set: rs-0 ismaster: &lt;/p&gt;
{ ismaster: false, secondary: false, info: &quot;can&apos;t get local.system.replset config from self or any seed (EMPTYCONFIG)&quot;, isreplicaset: true, maxBsonObjectSize: 16777216, ok: 1.0 }
&lt;p&gt; &lt;/p&gt;


&lt;p&gt;For now we decided to update shards collection manually on each change in replica set, but it would be great to delegate this job to mongo just as official documentation states. &lt;/p&gt;</description>
                <environment>Ubuntu 10.04 on Amazon EC2 </environment>
        <key id="26247">SERVER-4453</key>
            <summary>Shards not picking up replica set updates</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="greg_10gen">Greg Studer</assignee>
                                    <reporter username="korsakov">Dmytro Korsakov</reporter>
                        <labels>
                            <label>mongos</label>
                            <label>replicaset</label>
                            <label>replication</label>
                            <label>sharding</label>
                    </labels>
                <created>Thu, 8 Dec 2011 16:38:41 +0000</created>
                <updated>Mon, 11 Jul 2016 18:34:01 +0000</updated>
                            <resolved>Mon, 2 Jan 2012 17:15:53 +0000</resolved>
                                    <version>2.0.1</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="95822" author="dan@10gen.com" created="Tue, 6 Mar 2012 16:06:03 +0000"  >&lt;p&gt;this was backported to 2.0.3.  Information and commit history in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4399&quot; title=&quot;mongos doesn&amp;#39;t always update shards in response to replica set changes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4399&quot;&gt;&lt;del&gt;SERVER-4399&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="77085" author="greg_10gen" created="Mon, 2 Jan 2012 17:15:53 +0000"  >&lt;p&gt;Fixed in 2.1 branch, mongos now updates hosts as it detects them changing.  &lt;/p&gt;</comment>
                            <comment id="71735" author="greg_10gen" created="Thu, 8 Dec 2011 17:40:31 +0000"  >&lt;p&gt;Assuming that message eventually stopped in the ReplicaSetMonitorWatcher (and the watcher reports the full replica set if/when you set the loglevel up to 2), you should watch &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4399&quot; title=&quot;mongos doesn&amp;#39;t always update shards in response to replica set changes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4399&quot;&gt;&lt;del&gt;SERVER-4399&lt;/del&gt;&lt;/a&gt; for better updating of replica set state.  &lt;/p&gt;</comment>
                            <comment id="71734" author="korsakov" created="Thu, 8 Dec 2011 17:36:31 +0000"  >&lt;p&gt;All hostnames were double-checked and since the router process is placed on the same physical node with primary, the secondary, which has been successfully added to the set, cannot have any hostname related issues&lt;/p&gt;</comment>
                            <comment id="71705" author="eliot" created="Thu, 8 Dec 2011 16:43:31 +0000"  >&lt;p&gt;Can you check that the hostnames are resolving to the same place?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="25783">SERVER-4399</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 8 Dec 2011 16:43:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 50 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_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, 50 weeks, 1 day 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>korsakov</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>greg_10gen</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrojof:</customfieldvalue>

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

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

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