<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:06:37 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-4661] Mongos doesn&apos;t detect primary change if old primary lost network connectivity</title>
                <link>https://jira.mongodb.org/browse/SERVER-4661</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If the primary of a shard loses all network connectivity, the secondary will take over as primary, but the mongos may keep trying to reconnect to the former primary.&lt;/p&gt;</description>
                <environment></environment>
        <key id="28138">SERVER-4661</key>
            <summary>Mongos doesn&apos;t detect primary change if old primary lost network connectivity</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="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="spencer@mongodb.com">Spencer Brody</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Jan 2012 17:51:14 +0000</created>
                <updated>Wed, 10 Dec 2014 23:18:30 +0000</updated>
                            <resolved>Fri, 15 Mar 2013 17:50:47 +0000</resolved>
                                    <version>2.0.2</version>
                                                    <component>Sharding</component>
                                        <votes>6</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="292217" author="auto" created="Mon, 18 Mar 2013 18:19:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-18T18:18:16Z&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@10gen.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7573&quot; title=&quot;Add tests for network connectivity loss, especially in sharded systems.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7573&quot;&gt;&lt;del&gt;SERVER-7573&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4661&quot; title=&quot;Mongos doesn&amp;#39;t detect primary change if old primary lost network connectivity&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4661&quot;&gt;&lt;del&gt;SERVER-4661&lt;/del&gt;&lt;/a&gt; Add test for mongos detecting RS failover when primary loses network connectivity&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 8ed4f87153afe99609898c6af7e1b58327e6335f.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a6046309af1b8e7751976e68f46152574e4f078a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a6046309af1b8e7751976e68f46152574e4f078a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="290304" author="spencer" created="Fri, 15 Mar 2013 17:50:47 +0000"  >&lt;p&gt;Have tested with 2.4.0-RC3 and cannot reproduce the problem.  A lot of the connection management code has changed in mongos in the last 2 versions, so it&apos;s quite possible that this was a problem in 2.0 and no longer is.  Can you please re-test this on a 2.4.0 RC (or the official 2.4.0 once it is release in the very near future)?  I&apos;m closing this ticket for now, but if this is still a problem for you in 2.4.0, please re-open.&lt;/p&gt;</comment>
                            <comment id="290298" author="auto" created="Fri, 15 Mar 2013 17:47:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-15T16:10:09Z&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7573&quot; title=&quot;Add tests for network connectivity loss, especially in sharded systems.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7573&quot;&gt;&lt;del&gt;SERVER-7573&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4661&quot; title=&quot;Mongos doesn&amp;#39;t detect primary change if old primary lost network connectivity&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4661&quot;&gt;&lt;del&gt;SERVER-4661&lt;/del&gt;&lt;/a&gt; Add test for mongos detecting RS failover when primary loses network connectivity&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8ed4f87153afe99609898c6af7e1b58327e6335f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8ed4f87153afe99609898c6af7e1b58327e6335f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="183391" author="spencer" created="Wed, 7 Nov 2012 00:37:30 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5642&quot; title=&quot;Make mongobridge work with ShardingTest to facilitate testing network partitions in a sharded system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5642&quot;&gt;&lt;del&gt;SERVER-5642&lt;/del&gt;&lt;/a&gt; or &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7573&quot; title=&quot;Add tests for network connectivity loss, especially in sharded systems.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7573&quot;&gt;&lt;del&gt;SERVER-7573&lt;/del&gt;&lt;/a&gt; could be used to test this, but I think &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7573&quot; title=&quot;Add tests for network connectivity loss, especially in sharded systems.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7573&quot;&gt;&lt;del&gt;SERVER-7573&lt;/del&gt;&lt;/a&gt; is a better solution that will be a closer representation of what happens in the wild.&lt;/p&gt;</comment>
                            <comment id="165952" author="zsm" created="Wed, 19 Sep 2012 12:12:02 +0000"  >&lt;p&gt;Does this bug affect 2.2.x versions?&lt;/p&gt;</comment>
                            <comment id="108426" author="spencer" created="Tue, 10 Apr 2012 19:18:02 +0000"  >&lt;p&gt;Need failpoints from &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5175&quot; title=&quot;Need &amp;quot;failpoints&amp;quot; system to facilitate testing core server.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5175&quot;&gt;&lt;del&gt;SERVER-5175&lt;/del&gt;&lt;/a&gt; (or something similar) to be able to test network connectivity loss.&lt;/p&gt;</comment>
                            <comment id="79731" author="andy.gayton" created="Fri, 13 Jan 2012 19:17:40 +0000"  >&lt;p&gt;We&apos;ve just hit an issue running a fire drill that sounds very similar to this.&lt;/p&gt;

&lt;p&gt;We&apos;re still running 2.0.1, but I couldn&apos;t see anything in the 2.0.2 release notes that looks like it addresses this issue.&lt;/p&gt;

&lt;p&gt;Our setup is a single replica set of 3 nodes, mo01, mo02, mo03.  Each of these nodes is also running a config server and have dns mc01, mc02, mc03 respectively so we can move the config servers later on.&lt;/p&gt;

&lt;p&gt;Our application nodes have a mongos running with:&lt;/p&gt;

&lt;p&gt;bin/mongos --configdb mc01:27019,mc02:27019,mc03:27019&lt;/p&gt;

&lt;p&gt;And the shard single shared configured with:&lt;/p&gt;

&lt;p&gt;db.adminCommand(&lt;/p&gt;
{addShard:&apos;shard1/mo01:27018,mo02:27018,mo03:27018&apos;}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;The fire drill is to terminate the ec2 node running the current master mo01, expect the app to cleanly retry while mo02 or mo03 is elected as a new master, then to fire up a fresh ec2 node and attach a recent ebs snapshot to replace mo01.&lt;/p&gt;

&lt;p&gt;However once mo01 is terminated, the local mongos on the app nodes becomes completely unresponsive.  bin/mongo just hangs and won&apos;t bring up the console, for a long time, then eventually you can get a console. Then a db.printShardingStatus() will hang, pretty much forever.  Connecting directly to mo02/mo03 works OK.&lt;/p&gt;

&lt;p&gt;The mongos logs look like this:&lt;/p&gt;

&lt;p&gt;2012-01-13_19:12:32.71920 Fri Jan 13 19:12:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; reconnect mo01:27018 failed couldn&apos;t connect to server mo01:27018&lt;br/&gt;
2012-01-13_19:12:33.94754 Fri Jan 13 19:12:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4&amp;#93;&lt;/span&gt; SyncClusterConnection connecting to &lt;span class=&quot;error&quot;&gt;&amp;#91;mc01:27019&amp;#93;&lt;/span&gt;&lt;br/&gt;
2012-01-13_19:12:42.76191 Fri Jan 13 19:12:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; trying reconnect to mo01:27018&lt;br/&gt;
2012-01-13_19:12:47.75921 Fri Jan 13 19:12:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; reconnect mo01:27018 failed couldn&apos;t connect to server mo01:27018&lt;br/&gt;
2012-01-13_19:12:57.80280 Fri Jan 13 19:12:57 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; trying reconnect to mo01:27018&lt;br/&gt;
2012-01-13_19:13:02.79923 Fri Jan 13 19:13:02 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; reconnect mo01:27018 failed couldn&apos;t connect to server mo01:27018&lt;br/&gt;
2012-01-13_19:13:12.81288 Fri Jan 13 19:13:12 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; trying reconnect to mo01:27018&lt;br/&gt;
2012-01-13_19:13:17.80929 Fri Jan 13 19:13:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; reconnect mo01:27018 failed couldn&apos;t connect to server mo01:27018&lt;br/&gt;
2012-01-13_19:13:27.82288 Fri Jan 13 19:13:27 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; trying reconnect to mo01:27018&lt;br/&gt;
2012-01-13_19:13:32.81919 Fri Jan 13 19:13:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; reconnect mo01:27018 failed couldn&apos;t connect to server mo01:27018&lt;br/&gt;
2012-01-13_19:13:42.65965 Fri Jan 13 19:13:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;mongosMain&amp;#93;&lt;/span&gt; connection accepted from 127.0.0.1:38212 #5&lt;br/&gt;
2012-01-13_19:13:42.66249 Fri Jan 13 19:13:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn5&amp;#93;&lt;/span&gt; end connection 127.0.0.1:38212&lt;br/&gt;
2012-01-13_19:13:42.83266 Fri Jan 13 19:13:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; trying reconnect to mo01:27018&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="32050">SERVER-5175</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="36600">SERVER-5642</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="55451">SERVER-7573</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="23756">SERVER-4094</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="26712">SERVER-4505</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 13 Jan 2012 19:17:40 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 48 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-5175'>SERVER-5175</a></s>, <s><a href='https://jira.mongodb.org/browse/SERVER-5642'>SERVER-5642</a></s>, <s><a href='https://jira.mongodb.org/browse/SERVER-7573'>SERVER-7573</a></s>]]></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>
                            10 years, 48 weeks, 2 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>andy.gayton</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>zsm</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroh5j:</customfieldvalue>

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

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

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