<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:31:01 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-13217] Socket Exception on MapReduce from Removed Shard</title>
                <link>https://jira.mongodb.org/browse/SERVER-13217</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We removed a 2-node replica set from a sharded cluster yesterday. The node fully drained and we ran the &quot;final&quot; removeShard command which resulted in the following &lt;/p&gt;

&lt;p&gt;mongos&amp;gt; db.runCommand(&lt;/p&gt;
{removeShard : &quot;rsgewrset40&quot;}
&lt;p&gt;)&lt;br/&gt;
{&lt;br/&gt;
        &quot;errmsg&quot; : &quot;exception: can&apos;t find shard for: rsgewrset40&quot;,&lt;br/&gt;
        &quot;code&quot; : 13129,&lt;br/&gt;
        &quot;ok&quot; : 0&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;We then shut down the machines in the replica set and the arbiter for this shard.&lt;/p&gt;

&lt;p&gt;All systems except for our map/reduce jobs are running fine. Our MR job is getting the following exception:&lt;/p&gt;

&lt;p&gt;MongoDB shell version: 2.2.6&lt;br/&gt;
connecting to: REWRWEB1P:27017/crew_feuds_prod Fri Mar 14 14:42:04 uncaught exception: map reduce failed:{&lt;br/&gt;
	&apos;ok&apos; : 0,&lt;br/&gt;
	&apos;errmsg&apos; : &apos;MR post processing failed: &lt;/p&gt;
{ result: \&apos;rivals.mp3.pcros\&apos;, errmsg: \&apos;exception: could not initialize cursor across all shards because : socket exception [CONNECT_ERROR] for rsgewrset40/rsgewrmng79.taketwo.online:27017,r...\&apos;, code: 14827, ok: 0.0 }
&lt;p&gt;&apos;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;We&apos;ve restarted all of our mongoS, flushed the router config, and conpoolsynced.&lt;/p&gt;

&lt;p&gt;We&apos;ve had to restart the replica set that was drained and just leave it running even though it&apos;s not part of the cluster.&lt;/p&gt;

&lt;p&gt;What do we need to do to get the MR job to forget about this node?&lt;/p&gt;</description>
                <environment></environment>
        <key id="120830">SERVER-13217</key>
            <summary>Socket Exception on MapReduce from Removed Shard</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="siyuan.zhou@mongodb.com">Siyuan Zhou</assignee>
                                    <reporter username="al.gehrig@rockstarsandiego.com">Al Gehrig</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Mar 2014 23:04:06 +0000</created>
                <updated>Wed, 10 Dec 2014 23:18:31 +0000</updated>
                            <resolved>Thu, 30 Oct 2014 19:52:37 +0000</resolved>
                                    <version>2.2.6</version>
                                                    <component>MapReduce</component>
                    <component>Sharding</component>
                                        <votes>3</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="752950" author="siyuan.zhou@10gen.com" created="Thu, 30 Oct 2014 19:51:51 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=al.gehrig%40rockstarsandiego.com&quot; class=&quot;user-hover&quot; rel=&quot;al.gehrig@rockstarsandiego.com&quot;&gt;al.gehrig@rockstarsandiego.com&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=lars%40iamat.com&quot; class=&quot;user-hover&quot; rel=&quot;lars@iamat.com&quot;&gt;lars@iamat.com&lt;/a&gt;, we haven&#8217;t heard back from you for some time, so I&#8217;m going to mark this ticket as resolved. If this is still an issue for you, feel free to re-open the ticket and provide the information Dan asked in the previous comment.&lt;/p&gt;

&lt;p&gt;Regards, Siyuan&lt;/p&gt;</comment>
                            <comment id="600552" author="dan@10gen.com" created="Thu, 29 May 2014 02:22:59 +0000"  >&lt;p&gt;Can you tell me your cluster configuration?  Can you post the exact map/reduce command you are running?&lt;/p&gt;</comment>
                            <comment id="597459" author="remonvv" created="Tue, 27 May 2014 13:30:29 +0000"  >&lt;p&gt;We would like an update on this as well.&lt;/p&gt;</comment>
                            <comment id="562798" author="lars@iamat.com" created="Fri, 25 Apr 2014 13:18:48 +0000"  >&lt;p&gt;Ok,&lt;br/&gt;
after a bit of digging, we found out that making a fail-over of the primary of the remaining replica set in the shard solved the problem. Seems its related to some cache which didn&apos;t get invalidated after removing the drained shards.&lt;/p&gt;</comment>
                            <comment id="562286" author="lars@iamat.com" created="Thu, 24 Apr 2014 22:20:02 +0000"  >&lt;p&gt;having the same issue here with mongo 2.4.9&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>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, 24 Apr 2014 22:20:02 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>al.gehrig@rockstarsandiego.com</customfieldvalue>
            <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>lars@iamat.com</customfieldvalue>
            <customfieldvalue>remonvv</customfieldvalue>
            <customfieldvalue>siyuan.zhou@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlyun:</customfieldvalue>

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

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

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