<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:12:16 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-6639] getLastError to Mongos gives an empty errmsg field if it fails</title>
                <link>https://jira.mongodb.org/browse/SERVER-6639</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We were performing a series of restarts of config servers and shards. While some of the servers were rebooting, mongos that used them occasionally returned the following error:&lt;/p&gt;
{ &quot;ok&quot; : 0.0, &quot;errmsg&quot; : &quot;&quot; }
&lt;p&gt;).&lt;br/&gt;
Our auto-retry framework relies on a set of error codes and/or messages and can&apos;t cope with such errors. Emitting a more descriptive error and assigning this kind of error an error code (even generic one) would be very helpful both for diagnosing reasons of the error and attempting to recover from it.&lt;/p&gt;</description>
                <environment></environment>
        <key id="45748">SERVER-6639</key>
            <summary>getLastError to Mongos gives an empty errmsg field if it fails</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="3">Duplicate</resolution>
                                        <assignee username="randolph@mongodb.com">Randolph Tan</assignee>
                                    <reporter username="onyxmaster">Aristarkh Zagorodnikov</reporter>
                        <labels>
                            <label>mongos</label>
                            <label>replicaset</label>
                            <label>sharding</label>
                    </labels>
                <created>Mon, 30 Jul 2012 07:49:25 +0000</created>
                <updated>Wed, 10 Dec 2014 23:05:15 +0000</updated>
                            <resolved>Thu, 4 Apr 2013 22:01:11 +0000</resolved>
                                    <version>2.0.6</version>
                    <version>2.2.0-rc0</version>
                                                    <component>Replication</component>
                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="151590" author="renctan" created="Wed, 8 Aug 2012 14:45:22 +0000"  >&lt;p&gt;Bug reproduced - attaching the test file.&lt;/p&gt;</comment>
                            <comment id="151442" author="onyxmaster" created="Wed, 8 Aug 2012 06:48:21 +0000"  >&lt;p&gt;Sure. It was inserting an object into a GridFS chunk collection though mongos (via MongoGridFS.Upload() method of the C# driver), so it was doing something like db.fs.chunks.insert({_id:ObjectId(&quot;...&quot;), files_id:NumberLong(...), n:&amp;lt;number&amp;gt;, data:BinData(0,&quot;...&quot;)});&lt;/p&gt;</comment>
                            <comment id="151350" author="renctan" created="Tue, 7 Aug 2012 23:00:58 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I have trouble trying to reproduce this. Would you be able to give us more details on what the client was running (I assumed that it was a command) when it got the empty errmsg?&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="148980" author="onyxmaster" created="Tue, 31 Jul 2012 09:59:15 +0000"  >&lt;p&gt;No exact steps, but killing the shard replica set servers leads to this.&lt;br/&gt;
This is an excerpt from a mongos log (d2.s2.fs.drive.bru is one of the shard replica set servers which just gone down):&lt;br/&gt;
Wed Jul 25 10:44:07 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-d2.s2.fs.drive.bru:27022&amp;#93;&lt;/span&gt; DBClientCursor::init call() failed&lt;br/&gt;
Wed Jul 25 10:44:07 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-d2.s2.fs.drive.bru:27022&amp;#93;&lt;/span&gt; WriteBackListener exception : DBClientBase::findN: transport error:&lt;br/&gt;
 d2.s2.fs.drive.bru:27022 query: &lt;/p&gt;
{ writebacklisten: ObjectId(&apos;500066fab28541bf1d929a63&apos;) }
&lt;p&gt;Wed Jul 25 10:44:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-d2.s2.fs.drive.bru:27022&amp;#93;&lt;/span&gt; Socket recv() errno:104 Connection reset by peer 10.3.2.13:27022&lt;br/&gt;
Wed Jul 25 10:44:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-d2.s2.fs.drive.bru:27022&amp;#93;&lt;/span&gt; SocketException: remote: 10.3.2.13:27022 error: 9001 socket excepti&lt;br/&gt;
on &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;10.3.2.13:27022&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed Jul 25 10:44:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-d2.s2.fs.drive.bru:27022&amp;#93;&lt;/span&gt; DBClientCursor::init call() failed&lt;br/&gt;
Wed Jul 25 10:44:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-d2.s2.fs.drive.bru:27022&amp;#93;&lt;/span&gt; WriteBackListener exception : DBClientBase::findN: transport error:&lt;br/&gt;
 d2.s2.fs.drive.bru:27022 query: &lt;/p&gt;
{ writebacklisten: ObjectId(&apos;500066fab28541bf1d929a63&apos;) }
&lt;p&gt;Wed Jul 25 10:44:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; Socket recv() errno:104 Connection reset by peer 10.3.2.13:27022&lt;br/&gt;
Wed Jul 25 10:44:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; SocketException: remote: 10.3.2.13:27022 error: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;10.3.2.13:27022&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed Jul 25 10:44:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; DBClientCursor::init call() failed&lt;br/&gt;
Wed Jul 25 10:44:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; scoped connection to c1.fs.drive.bru:27020,c2.fs.drive.bru:27020,c3.fs.drive.bru:27020 not being returned to the pool&lt;br/&gt;
Wed Jul 25 10:44:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; caught exception while doing balance: DBClientBase::findN: transport error: d2.s2.fs.drive.bru:27022 query: &lt;/p&gt;
{ features: 1 }
&lt;p&gt;Wed Jul 25 10:44:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; Socket recv() errno:104 Connection reset by peer 10.3.2.13:27022&lt;br/&gt;
Wed Jul 25 10:44:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; SocketException: remote: 10.3.2.13:27022 error: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;10.3.2.13:27022&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed Jul 25 10:44:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; DBClientCursor::init call() failed&lt;br/&gt;
Wed Jul 25 10:44:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; trying reconnect to d2.s2.fs.drive.bru:27022&lt;br/&gt;
Wed Jul 25 10:44:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; reconnect d2.s2.fs.drive.bru:27022 ok&lt;/p&gt;


&lt;p&gt;The client got the &quot;empty&quot; error around 10:44:10.&lt;/p&gt;</comment>
                            <comment id="148877" author="renctan" created="Mon, 30 Jul 2012 21:56:54 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Do you have the exact steps for reproducing this blank error message?&lt;/p&gt;</comment>
                            <comment id="148677" author="onyxmaster" created="Mon, 30 Jul 2012 14:43:35 +0000"  >&lt;p&gt;First, there is a batch of &quot;can&apos;t initialize cursor across all shards&quot; w/socket exceptions interleaved with ReplicaSetMonitor complaining about no master in the replica set.&lt;br/&gt;
Then, there is a chunk of &quot;stale config&quot; errors right after underlying replica set recovery (due to a large amount of queued writes landing at that very moment).&lt;/p&gt;</comment>
                            <comment id="148676" author="onyxmaster" created="Mon, 30 Jul 2012 14:40:07 +0000"  >&lt;p&gt;That would be too easy =) &lt;br/&gt;
Since there was a restart of config servers and shards there is about a hundred records (+/- 30 secs since time isn&apos;t synced between mongos and its client) about this time in the log.&lt;/p&gt;</comment>
                            <comment id="148674" author="dan@10gen.com" created="Mon, 30 Jul 2012 14:33:52 +0000"  >&lt;p&gt;Is there a corresponding error in the mongos log?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="45273">SERVER-6581</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="68492">SERVER-8984</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="18663" name="empty_error.js" size="436" author="randolph@mongodb.com" created="Wed, 8 Aug 2012 14:44:32 +0000"/>
                    </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>Mon, 30 Jul 2012 14:33:52 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 28 weeks 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, 28 weeks 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>onyxmaster</customfieldvalue>
            <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>randolph@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrntev:</customfieldvalue>

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

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

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