<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:00:59 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-2713] server crash while creating index</title>
                <link>https://jira.mongodb.org/browse/SERVER-2713</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I was working with the script in &lt;a href=&quot;https://github.com/mongodb/scratch/blob/master/testing/1.8/lotsaupdates/setup.js&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/scratch/blob/master/testing/1.8/lotsaupdates/setup.js&lt;/a&gt;.  This script defines several functions that were being used for testing updates with durability on.&lt;/p&gt;

&lt;p&gt;Config file in use:&lt;/p&gt;
&lt;hr /&gt;
&lt;ol&gt;
	&lt;li&gt;config file for MongoDB&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;quickie pointers for a single instance&lt;br/&gt;
dbpath = c:/cygwin/home/cwestin/sandbox/dbfiles&lt;br/&gt;
logpath = c:/cygwin/home/cwestin/sandbox/mongodb.log&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;#replSet = foo&lt;/p&gt;

&lt;p&gt;dur = true&lt;br/&gt;
directoryperdb = true&lt;br/&gt;
logappend = true&lt;br/&gt;
rest = true&lt;/p&gt;
&lt;hr /&gt;

&lt;p&gt;I had previously loaded a large database with 10M rows, using loadData(10000000);  This was then shutdown and restarted.  Then I set out to test updates.  Here is the shell transcript:&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;$ ./mongo&lt;br/&gt;
MongoDB shell version: 1.9.0-pre-&lt;br/&gt;
connecting to: test&lt;br/&gt;
&amp;gt; var setup = &apos;../scratch/testing/1.8/lotsaupdates/setup.js&apos;;&lt;br/&gt;
&amp;gt; load(setup);&lt;br/&gt;
&amp;gt; shuffleData(1000);&lt;br/&gt;
&amp;gt; checkData(10000000);&lt;br/&gt;
Tue Mar 08 14:27:46 MessagingPort recv() errno:10054 An existing connection was&lt;br/&gt;
forcibly closed by the remote host. 127.0.0.1:27017&lt;br/&gt;
Tue Mar 08 14:27:46 SocketException: remote:  error: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Mar 08 14:27:46 DBClientCursor::init call() failed&lt;br/&gt;
Tue Mar 08 14:27:46 query failed : testdb.$cmd &lt;/p&gt;
{ getlasterror: 1.0 }
&lt;p&gt; to: 127.0.0&lt;br/&gt;
.1&lt;br/&gt;
Tue Mar 08 14:27:46 Error: error doing query: failed shell/collection.js:150&lt;br/&gt;
Tue Mar 08 14:27:46 trying reconnect to 127.0.0.1&lt;br/&gt;
Tue Mar 08 14:27:47 reconnect 127.0.0.1 failed couldn&apos;t connect to server 127.0.&lt;br/&gt;
0.1&lt;br/&gt;
&amp;gt;&lt;/p&gt;
&lt;hr /&gt;

&lt;p&gt;Here is what appeared in the log around the time of the crash:&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;....&lt;br/&gt;
Tue Mar 08 14:24:51 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; query testdb.testdata ntoreturn:1 reslen:115 nscanned:1 &lt;/p&gt;
{ key: 8668692.0 }
&lt;p&gt;  nreturned:1 900ms&lt;br/&gt;
Tue Mar 08 14:24:52 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; update testdb.testdata  query: &lt;/p&gt;
{ key: 5275688.0, a: 5275688.0 }
&lt;p&gt; 961ms&lt;br/&gt;
Tue Mar 08 14:25:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 1009511&lt;br/&gt;
Tue Mar 08 14:25:30 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; CMD: validate testdb.testdata&lt;br/&gt;
Tue Mar 08 14:25:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 1069441&lt;br/&gt;
Tue Mar 08 14:26:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 1129331&lt;br/&gt;
Tue Mar 08 14:27:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 1189291&lt;br/&gt;
Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; query testdb.$cmd ntoreturn:1 command: &lt;/p&gt;
{ validate: &quot;testdata&quot; }
&lt;p&gt; reslen:727 136137ms&lt;br/&gt;
Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; CMD: dropIndexes testdb.testdata&lt;br/&gt;
Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; query testdb.$cmd ntoreturn:1 command: &lt;/p&gt;
{ deleteIndexes: &quot;testdata&quot;, index: &quot;a_1&quot; }
&lt;p&gt; reslen:74 162ms&lt;br/&gt;
Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ a: 1.0 }
&lt;p&gt; for testdb.testdata&lt;br/&gt;
Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; ERROR: Uncaught std::exception: boost::filesystem::create_directory: Access is denied: &quot;c:\cygwin\home\cwestin\sandbox\dbfiles&amp;#95;tmp&quot;, terminating&lt;br/&gt;
Tue Mar 08 14:27:46 dbexit: &lt;br/&gt;
Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;br/&gt;
Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; closing listening socket: 304&lt;br/&gt;
Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; closing listening socket: 308&lt;br/&gt;
Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; now exiting&lt;br/&gt;
Tue Mar 08 14:27:46 Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; shutdown: going to flush diaglog...&lt;br/&gt;
dbexit: ; exiting immediately&lt;br/&gt;
Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Tue Mar 08 14:27:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; shutdown: lock for final commit...&lt;br/&gt;
....&lt;/p&gt;
&lt;hr /&gt;

&lt;p&gt;The operations in the log can easily be matched up with the operations in the checkData() function in setup.js.  If I run checkData() again, I can get the same result repeatedly.&lt;/p&gt;</description>
                <environment>Windows 7 sp1, 64 bit build,  i5 dual core 2.67GHz, 8GB RAM</environment>
        <key id="15047">SERVER-2713</key>
            <summary>server crash while creating index</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="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="cwestin">Chris Westin</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Mar 2011 23:23:08 +0000</created>
                <updated>Fri, 30 Mar 2012 14:37:02 +0000</updated>
                            <resolved>Fri, 2 Sep 2011 04:50:17 +0000</resolved>
                                    <version>1.8.0-rc1</version>
                                                    <component>Index Maintenance</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="25581" author="eliot" created="Wed, 9 Mar 2011 04:52:57 +0000"  >&lt;p&gt;Is there something odd with c:\cygwin\home\cwestin\sandbox\dbfiles&amp;#95;tmp ?&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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 9 Mar 2011 04:52:57 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 50 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 50 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>cwestin</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp48f:</customfieldvalue>

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

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

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