<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:04 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-1793] getLastError(2) hangs/timesout about every N inserts into replica set shard</title>
                <link>https://jira.mongodb.org/browse/SERVER-1793</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;1. Create replica set of 3 servers.&lt;br/&gt;
2. Add data to it.&lt;br/&gt;
3. Create 3 config servers for sharding.&lt;br/&gt;
4. Create one router (mongos)&lt;br/&gt;
5. Add replica set as solo shard&lt;br/&gt;
6. enable sharding on the db and collection that you already added data to&lt;br/&gt;
7. Repeatedly insert a record into sharded collection and check insert has gone to 2 replicas (getLastError(2))&lt;/p&gt;

&lt;p&gt;There is a jstest for this test case at: jstests/grid/shard_insert_getlasterror_w2.&lt;/p&gt;

&lt;p&gt;Problem: About every 170th insert fails (getLastError times out) on my Macbook&lt;br/&gt;
result of timed-out getLastErrorObj(2,30000) looks like:&lt;br/&gt;
{&lt;br/&gt;
        &quot;shards&quot; : [&lt;br/&gt;
                &quot;127.0.0.1:31003,127.0.0.1:31004,127.0.0.1:31005&quot;,&lt;br/&gt;
                &quot;repset1/127.0.0.1:31000,127.0.0.1:31001,127.0.0.1:31002&quot;&lt;br/&gt;
        ],&lt;br/&gt;
        &quot;n&quot; : 0,&lt;br/&gt;
        &quot;err&quot; : &quot;&quot;,&lt;br/&gt;
        &quot;errs&quot; : [&lt;br/&gt;
                &quot;&quot;&lt;br/&gt;
        ],&lt;br/&gt;
        &quot;errObjects&quot; : [&lt;/p&gt;
                {
                        &quot;err&quot; : null,
                        &quot;n&quot; : 0,
                        &quot;wtimeout&quot; : true,
                        &quot;waited&quot; : 30000,
                        &quot;errmsg&quot; : &quot;timed out waiting for slaves&quot;,
                        &quot;ok&quot; : 0
                }
&lt;p&gt;        ],&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Result of a successful getLastErrorObj(2,30000) looks like:&lt;br/&gt;
{&lt;br/&gt;
        &quot;theshard&quot; : &quot;repset1/127.0.0.1:31000,127.0.0.1:31001,127.0.0.1:31002&quot;,&lt;br/&gt;
        &quot;err&quot; : null,&lt;br/&gt;
        &quot;n&quot; : 0,&lt;br/&gt;
        &quot;lastOp&quot; : NumberLong(&quot;5516791406158413840&quot;),&lt;br/&gt;
        &quot;wtime&quot; : 2,&lt;br/&gt;
        &quot;ok&quot; : 1,&lt;br/&gt;
        &quot;singleShard&quot; : &quot;repset1/127.0.0.1:31000,127.0.0.1:31001,127.0.0.1:31002&quot;&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>db version v1.7.1-pre-, pdfile version 4.5&lt;br/&gt;
Tue Sep 14 13:19:38 git version: 524e633748a24b5a1e753373ba63e5c267964576</environment>
        <key id="13091">SERVER-1793</key>
            <summary>getLastError(2) hangs/timesout about every N inserts into replica set 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="kristina">Kristina Chodorow</assignee>
                                    <reporter username="tonyh">Tony Hannan</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 Sep 2010 17:38:26 +0000</created>
                <updated>Tue, 12 Jul 2016 00:18:45 +0000</updated>
                            <resolved>Mon, 27 Dec 2010 23:19:07 +0000</resolved>
                                    <version>1.7.0</version>
                                    <fixVersion>1.7.5</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="21800" author="auto" created="Sat, 25 Dec 2010 04:56:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;kchodorow&apos;, u&apos;name&apos;: u&apos;Kristina&apos;, u&apos;email&apos;: u&apos;kristina@10gen.com&apos;}
&lt;p&gt;Message: Revert &quot;don&apos;t forward getlasterror to config servers &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1793&quot; title=&quot;getLastError(2) hangs/timesout about every N inserts into replica set shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1793&quot;&gt;&lt;del&gt;SERVER-1793&lt;/del&gt;&lt;/a&gt;&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 9fbb4f81f42a50d88bb520af307cb237a48146dc.&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/60814a460faa902b75b3dc0b209e89c52512c8d6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/60814a460faa902b75b3dc0b209e89c52512c8d6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="21787" author="auto" created="Thu, 23 Dec 2010 20:49:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;kchodorow&apos;, u&apos;name&apos;: u&apos;Kristina&apos;, u&apos;email&apos;: u&apos;kristina@10gen.com&apos;}
&lt;p&gt;Message: don&apos;t forward getlasterror to config servers &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1793&quot; title=&quot;getLastError(2) hangs/timesout about every N inserts into replica set shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1793&quot;&gt;&lt;del&gt;SERVER-1793&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9fbb4f81f42a50d88bb520af307cb237a48146dc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9fbb4f81f42a50d88bb520af307cb237a48146dc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="20413" author="kristina" created="Wed, 17 Nov 2010 19:27:02 +0000"  >&lt;p&gt;Tony already wrote one (jstests/grid/shard_insert_getlasterror_w2.js), do you want another?  I added a line to his to make it assert when it fails.&lt;/p&gt;</comment>
                            <comment id="20412" author="auto" created="Wed, 17 Nov 2010 19:27:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kchodorow&apos;, &apos;name&apos;: &apos;Kristina Chodorow&apos;, &apos;email&apos;: &apos;kristina@10gen.com&apos;}
&lt;p&gt;Message: make test assert &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1793&quot; title=&quot;getLastError(2) hangs/timesout about every N inserts into replica set shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1793&quot;&gt;&lt;del&gt;SERVER-1793&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
/mongodb/mongo/commit/ec5f5befbecf4285dd5324225efa08a7baa6129c&lt;/p&gt;</comment>
                            <comment id="20324" author="eliot" created="Mon, 15 Nov 2010 18:03:54 +0000"  >&lt;p&gt;Kristina, can you try and make a test case that shows this&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>Mon, 15 Nov 2010 18:03:54 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 8 weeks, 4 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>
                            13 years, 8 weeks, 4 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>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>tonyh</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpf2v:</customfieldvalue>

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

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

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