<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:58 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-1766] ERROR: splitIfShould failed: locking namespace failed</title>
                <link>https://jira.mongodb.org/browse/SERVER-1766</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Problem:&lt;/p&gt;

&lt;p&gt;Running a bulk insert via a Java program into a 3 shard system. After about 30 minutes I see the following errors in the log file for the router node&lt;/p&gt;

&lt;p&gt;Thu Sep  9 19:09:15 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn8&amp;#93;&lt;/span&gt; autosplitting scaleout.blogs size: 125479578 shard: ns:scaleout.blogs at: replset0:replset0/10.204.33.94:27000 lastmod: 3|25 min: &lt;/p&gt;
{ ts: -539057490 }
&lt;p&gt; max: &lt;/p&gt;
{ ts: -2960867 }
&lt;p&gt; on: &lt;/p&gt;
{ ts: -271305523 }
&lt;p&gt;(splitThreshold 104857600)&lt;br/&gt;
Thu Sep  9 19:09:15 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn8&amp;#93;&lt;/span&gt; ERROR: splitIfShould failed: locking namespace failed&lt;br/&gt;
Thu Sep  9 19:09:25 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt; autosplitting scaleout.blogs size: 125322369 shard: ns:scaleout.blogs at: replset0:replset0/10.204.33.94:27000 lastmod: 3|23 min: &lt;/p&gt;
{ ts: -1610580558 }
&lt;p&gt; max: &lt;/p&gt;
{ ts: -1076104534 }
&lt;p&gt; on: &lt;/p&gt;
{ ts: -1343209153 }
&lt;p&gt;(splitThreshold 104857600)&lt;br/&gt;
Thu Sep  9 19:09:25 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt; ERROR: splitIfShould failed: locking namespace failed&lt;br/&gt;
Thu Sep  9 19:22:21 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; end connection 71.139.0.44:55312&lt;/p&gt;

&lt;p&gt;At the same time, I see my Java clients fail with&lt;br/&gt;
Exception in thread &quot;Thread-1&quot; com.mongodb.MongoException$Network: can&apos;t call something&lt;br/&gt;
	at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:194)&lt;br/&gt;
	at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:192)&lt;br/&gt;
	at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:192)&lt;br/&gt;
	at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:223)&lt;br/&gt;
	at com.mongodb.DBCollection.findOne(DBCollection.java:486)&lt;br/&gt;
	at com.mongodb.DBCollection.findOne(DBCollection.java:475)&lt;br/&gt;
	at com.mongodb.DB.command(DB.java:137)&lt;br/&gt;
	at com.mongodb.DB.getLastError(DB.java:283)&lt;br/&gt;
	at InsertSpeed$Runner.run(InsertSpeed.java:64)&lt;br/&gt;
Caused by: java.io.IOException: couldn&apos;t connect to &lt;span class=&quot;error&quot;&gt;&amp;#91;/10.204.69.250:27500&amp;#93;&lt;/span&gt; bc:java.net.ConnectException: Connection timed out&lt;br/&gt;
	at com.mongodb.DBPort._open(DBPort.java:150)&lt;br/&gt;
	at com.mongodb.DBPort.go(DBPort.java:70)&lt;br/&gt;
	at com.mongodb.DBPort.call(DBPort.java:56)&lt;br/&gt;
	at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:186)&lt;br/&gt;
	... 8 more&lt;/p&gt;

&lt;p&gt;All mongod&apos;s are still running on all machines.&lt;/p&gt;

&lt;p&gt;Reproduce:&lt;br/&gt;
Not clear, second run did not hit this problem.&lt;/p&gt;

&lt;p&gt;Solution:&lt;br/&gt;
Need to understand why this error is occurring and what the user can do about it.&lt;/p&gt;

&lt;p&gt;Business Case:&lt;br/&gt;
Reliability&lt;/p&gt;

</description>
                <environment>running the nightly&lt;br/&gt;
&lt;br/&gt;
git version: d16ac9d54d9595710ad8288ccdd742d9242a6fc3&lt;br/&gt;
</environment>
        <key id="13057">SERVER-1766</key>
            <summary>ERROR: splitIfShould failed: locking namespace failed</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="alvin">Alvin Richards</assignee>
                                    <reporter username="alvin">Alvin Richards</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Sep 2010 19:46:48 +0000</created>
                <updated>Tue, 12 Jul 2016 00:19:01 +0000</updated>
                            <resolved>Fri, 10 Sep 2010 17:30:10 +0000</resolved>
                                    <version>1.7.0</version>
                                    <fixVersion>1.7.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="18489" author="gilles.gagniard" created="Fri, 24 Sep 2010 07:17:07 +0000"  >&lt;p&gt;Just occured on my 1.6.2 test shard ... the mongos router has been completely stuck for several hours after this splitIfShould failed error message. Killing and restarting it put back the shard in working order.&lt;/p&gt;</comment>
                            <comment id="18069" author="stewwu" created="Mon, 13 Sep 2010 03:53:52 +0000"  >&lt;p&gt;We encountered this also in 1.6.1.&lt;/p&gt;</comment>
                            <comment id="18018" author="alvin" created="Fri, 10 Sep 2010 17:30:10 +0000"  >&lt;p&gt;Not seeing the same blocks with the following&lt;/p&gt;

&lt;p&gt;db version v1.7.1-pre-, pdfile version 4.5&lt;br/&gt;
Fri Sep 10 17:29:41 git version: 6766569f9acdd80e27d957906f61dd7a14425d0d&lt;/p&gt;</comment>
                            <comment id="17997" author="eliot" created="Thu, 9 Sep 2010 22:13:25 +0000"  >&lt;p&gt;did the remove yield lock change - so lets see if it happens again with that in place&lt;/p&gt;</comment>
                            <comment id="17986" author="alvin" created="Thu, 9 Sep 2010 20:02:25 +0000"  >&lt;p&gt;Matias seems to think its stuck on the last changelog entry for moveChunck&lt;/p&gt;


&lt;p&gt;&amp;gt; db.changelog.find().sort(&lt;/p&gt;
{time:-1}
&lt;p&gt;)                                                                                                                                                  { &quot;_id&quot; : &quot;ip-10-204-33-94-2010-09-09T19:10:36-12&quot;, &quot;server&quot; : &quot;ip-10-204-33-94&quot;, &quot;time&quot; : &quot;Thu Sep 09 2010 12:10:36 GMT-0700 (PDT)&quot;, &quot;what&quot; : &quot;moveChunk&quot;, &quot;ns&quot; : &quot;scaleout.blogs&quot;, &quot;details&quot; : { &quot;min&quot; : &lt;/p&gt;
{ &quot;ts&quot; : -1610580558 }
&lt;p&gt;, &quot;max&quot; : &lt;/p&gt;
{ &quot;ts&quot; : -1076104534 }
&lt;p&gt;, &quot;from&quot; : &quot;replset0&quot;, &quot;to&quot; : &quot;replset1&quot; } }&lt;br/&gt;
{ &quot;_id&quot; : &quot;ip-10-202-47-225-2010-09-09T19:10:36-3&quot;, &quot;server&quot; : &quot;ip-10-202-47-225&quot;, &quot;time&quot; : &quot;Thu Sep 09 2010 12:10:36 GMT-0700 (PDT)&quot;, &quot;what&quot; : &quot;moveChunk.to&quot;, &quot;ns&quot; : &quot;scaleout.blogs&quot;, &quot;details&quot; : &lt;/p&gt;
{ &quot;step1&quot; : 54, &quot;step2&quot; : 0, &quot;step3&quot; : 594920, &quot;step4&quot; : 16, &quot;step5&quot; : 103 }
&lt;p&gt; }&lt;/p&gt;


&lt;p&gt;No entries since this point&lt;/p&gt;</comment>
                            <comment id="17985" author="alvin" created="Thu, 9 Sep 2010 19:48:57 +0000"  >&lt;p&gt;Looks like the router is not accepting connections&lt;/p&gt;


&lt;p&gt;vero:10gen$ ./software/mongodb-osx-x86_64-1.6.0/bin/mongo --port 27500 --host ec2-184-72-193-160.compute-1.amazonaws.com&lt;br/&gt;
MongoDB shell version: 1.6.0&lt;br/&gt;
connecting to: ec2-184-72-193-160.compute-1.amazonaws.com:27500/test&lt;br/&gt;
Thu Sep  9 12:48:21 Error: couldn&apos;t connect to server ec2-184-72-193-160.compute-1.amazonaws.com:27500} (anon):1139&lt;br/&gt;
exception: connect failed&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="12601">SERVER-1521</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 9 Sep 2010 22:13:25 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 21 weeks, 5 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, 21 weeks, 5 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>alvin</customfieldvalue>
            <customfieldvalue>stewwu</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>gilles.gagniard</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpfgv:</customfieldvalue>

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

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

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