<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:06:34 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-4643] one of the shard is down</title>
                <link>https://jira.mongodb.org/browse/SERVER-4643</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;we are using one mongos, one config server and two mongod shard server.&lt;br/&gt;
if one of the shard down then it give error for both shard in getlast error.&lt;/p&gt;
</description>
                <environment>linux debian</environment>
        <key id="27865">SERVER-4643</key>
            <summary>one of the shard is down</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="milkie@mongodb.com">Eric Milkie</assignee>
                                    <reporter username="jitendra908">jitendra</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Jan 2012 18:59:57 +0000</created>
                <updated>Mon, 11 Jul 2016 18:33:54 +0000</updated>
                            <resolved>Tue, 24 Jan 2012 22:10:58 +0000</resolved>
                                    <version>2.0.2</version>
                                    <fixVersion>2.0.3</fixVersion>
                    <fixVersion>2.1.0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="82118" author="milkie" created="Tue, 24 Jan 2012 22:10:58 +0000"  >&lt;p&gt;Backported to 2.0.3&lt;/p&gt;</comment>
                            <comment id="81945" author="auto" created="Tue, 24 Jan 2012 14:23:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;milkie&apos;, u&apos;name&apos;: u&apos;Eric Milkie&apos;, u&apos;email&apos;: u&apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3763&quot; title=&quot;when one shard goes down, mongos starts returning failure in getlasterror for all the shards, to already connected client.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3763&quot;&gt;&lt;del&gt;SERVER-3763&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4643&quot; title=&quot;one of the shard is down&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4643&quot;&gt;&lt;del&gt;SERVER-4643&lt;/del&gt;&lt;/a&gt; use correct connection&lt;/p&gt;

&lt;p&gt;There were two automatic variables named &quot;conn&quot; in scope, with one occluding the other.  I mistakenly changed the logic in my last commit, so I have now fixed it, and removed the overlapping scopes.&lt;br/&gt;
Branch: v2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/937077b4c15b75411c661232236f3b2cae70ce81&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/937077b4c15b75411c661232236f3b2cae70ce81&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="81943" author="auto" created="Tue, 24 Jan 2012 14:23:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;milkie&apos;, u&apos;name&apos;: u&apos;Eric Milkie&apos;, u&apos;email&apos;: u&apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3763&quot; title=&quot;when one shard goes down, mongos starts returning failure in getlasterror for all the shards, to already connected client.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3763&quot;&gt;&lt;del&gt;SERVER-3763&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4643&quot; title=&quot;one of the shard is down&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4643&quot;&gt;&lt;del&gt;SERVER-4643&lt;/del&gt;&lt;/a&gt; catch exceptions on connect to other shards when handling multiple shard case&lt;br/&gt;
Branch: v2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c202889e9c3d50f3e7557ceb2b1e505b519a7955&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c202889e9c3d50f3e7557ceb2b1e505b519a7955&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="81941" author="auto" created="Tue, 24 Jan 2012 14:23:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;milkie&apos;, u&apos;name&apos;: u&apos;Eric Milkie&apos;, u&apos;email&apos;: u&apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3763&quot; title=&quot;when one shard goes down, mongos starts returning failure in getlasterror for all the shards, to already connected client.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3763&quot;&gt;&lt;del&gt;SERVER-3763&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4643&quot; title=&quot;one of the shard is down&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4643&quot;&gt;&lt;del&gt;SERVER-4643&lt;/del&gt;&lt;/a&gt; avoid exceptions in getlasterror due to other shards being down&lt;/p&gt;

&lt;p&gt;I had to move the creation of ShardConnection inside the try/catch because it is possible that it might throw a SocketException if the shard is down.&lt;br/&gt;
This change allows shard_gle_insert.js to pass on Windows, and may alleviate Linux failures with getLastError as well.&lt;br/&gt;
Branch: v2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/078c791acd376d60c770c444b3fcd2f5a006baa1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/078c791acd376d60c770c444b3fcd2f5a006baa1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="80797" author="auto" created="Wed, 18 Jan 2012 21:37:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;milkie&apos;, u&apos;name&apos;: u&apos;Eric Milkie&apos;, u&apos;email&apos;: u&apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3763&quot; title=&quot;when one shard goes down, mongos starts returning failure in getlasterror for all the shards, to already connected client.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3763&quot;&gt;&lt;del&gt;SERVER-3763&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4643&quot; title=&quot;one of the shard is down&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4643&quot;&gt;&lt;del&gt;SERVER-4643&lt;/del&gt;&lt;/a&gt; use correct connection&lt;/p&gt;

&lt;p&gt;There were two automatic variables named &quot;conn&quot; in scope, with one occluding the other.  I mistakenly changed the logic in my last commit, so I have now fixed it, and removed the overlapping scopes.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/826d964c31f7a96c43f0467b85ff6b23f66fad68&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/826d964c31f7a96c43f0467b85ff6b23f66fad68&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="80560" author="auto" created="Tue, 17 Jan 2012 22:32:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;milkie&apos;, u&apos;name&apos;: u&apos;Eric Milkie&apos;, u&apos;email&apos;: u&apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3763&quot; title=&quot;when one shard goes down, mongos starts returning failure in getlasterror for all the shards, to already connected client.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3763&quot;&gt;&lt;del&gt;SERVER-3763&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4643&quot; title=&quot;one of the shard is down&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4643&quot;&gt;&lt;del&gt;SERVER-4643&lt;/del&gt;&lt;/a&gt; catch exceptions on connect to other shards when handling multiple shard case&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8a002c30c6d6749f87c618b61d3f58d54696bb7a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8a002c30c6d6749f87c618b61d3f58d54696bb7a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="80174" author="auto" created="Mon, 16 Jan 2012 20:00:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;milkie&apos;, u&apos;name&apos;: u&apos;Eric Milkie&apos;, u&apos;email&apos;: u&apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3763&quot; title=&quot;when one shard goes down, mongos starts returning failure in getlasterror for all the shards, to already connected client.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3763&quot;&gt;&lt;del&gt;SERVER-3763&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4643&quot; title=&quot;one of the shard is down&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4643&quot;&gt;&lt;del&gt;SERVER-4643&lt;/del&gt;&lt;/a&gt; avoid exceptions in getlasterror due to other shards being down&lt;/p&gt;

&lt;p&gt;I had to move the creation of ShardConnection inside the try/catch because it is possible that it might throw a SocketException if the shard is down.&lt;br/&gt;
This change allows shard_gle_insert.js to pass on Windows, and may alleviate Linux failures with getLastError as well.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/937e0d8e1afbc75ef475ec99196f1866f1c56679&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/937e0d8e1afbc75ef475ec99196f1866f1c56679&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="79386" author="milkie" created="Thu, 12 Jan 2012 18:30:08 +0000"  >&lt;p&gt;I believe this is a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3763&quot; title=&quot;when one shard goes down, mongos starts returning failure in getlasterror for all the shards, to already connected client.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3763&quot;&gt;&lt;del&gt;SERVER-3763&lt;/del&gt;&lt;/a&gt;, is this correct?&lt;br/&gt;
We are actively working on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3763&quot; title=&quot;when one shard goes down, mongos starts returning failure in getlasterror for all the shards, to already connected client.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3763&quot;&gt;&lt;del&gt;SERVER-3763&lt;/del&gt;&lt;/a&gt; to correct the problem.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="21910">SERVER-3763</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 8 Jan 2012 03:43:39 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 4 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>
                            12 years, 4 weeks, 1 day ago
                        </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>auto</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>jitendra908</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrohen:</customfieldvalue>

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

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

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