<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:09:34 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-5673] Crash during repairDatabase can leave the server unable to start up</title>
                <link>https://jira.mongodb.org/browse/SERVER-5673</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;after doing a db.repair one shard restarted ok, but the other doesn&apos;t&lt;/p&gt;

&lt;p&gt;the logs after running db.repairDatabase()&lt;br/&gt;
----- mongo log ----&lt;/p&gt;

&lt;p&gt;Fri Apr 20 15:32:03 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt; command admin.$cmd command: &lt;/p&gt;
{ serverStatus: 1 }
&lt;p&gt; ntoreturn:1 reslen:1337 477ms&lt;br/&gt;
                13537900/28932981       46%&lt;br/&gt;
                14795700/28932981       51%&lt;br/&gt;
                16063300/28932981       55%&lt;br/&gt;
Fri Apr 20 15:32:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4&amp;#93;&lt;/span&gt; command admin.$cmd command: &lt;/p&gt;
{ serverStatus: 1 }
&lt;p&gt; ntoreturn:1 reslen:1337 177ms&lt;/p&gt;

&lt;p&gt;---------------------&lt;br/&gt;
----- syslog --------&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.810663&amp;#93;&lt;/span&gt; lowmem_reserve[]: 0 0 0 0&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.810667&amp;#93;&lt;/span&gt; Node 0 DMA: 2*4kB 1*8kB 1*16kB 1*32kB 2*64kB 2*128kB 1*256kB 0*512kB 1*1024kB 1*2048kB 1*4096kB = 7872kB&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.810680&amp;#93;&lt;/span&gt; Node 0 DMA32: 1006*4kB 0*8kB 0*16kB 2*32kB 2*64kB 2*128kB 0*256kB 1*512kB 1*1024kB 1*2048kB 0*4096kB = 8056kB&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.810691&amp;#93;&lt;/span&gt; 2510 total pagecache pages&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.810693&amp;#93;&lt;/span&gt; 674 pages in swap cache&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.810695&amp;#93;&lt;/span&gt; Swap cache stats: add 127526, delete 126852, find 43057/43736&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.810697&amp;#93;&lt;/span&gt; Free swap  = 0kB&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.810699&amp;#93;&lt;/span&gt; Total swap = 471032kB&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.814451&amp;#93;&lt;/span&gt; 1048576 pages RAM&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.814451&amp;#93;&lt;/span&gt; 20309 pages reserved&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.814451&amp;#93;&lt;/span&gt; 3710 pages shared&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.814451&amp;#93;&lt;/span&gt; 1022293 pages non-shared&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.814451&amp;#93;&lt;/span&gt; Out of memory: kill process 26171 (mongod) score 158123 or a child&lt;br/&gt;
Apr 20 15:32:42 saas-di0017 kernel: &lt;span class=&quot;error&quot;&gt;&amp;#91;3050891.814451&amp;#93;&lt;/span&gt; Killed process 26171 (mongod)&lt;br/&gt;
---------------------&lt;/p&gt;

&lt;p&gt;the logs after trying to run &quot;mongod restart&quot;&lt;br/&gt;
----- mongo log ----&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;
		&lt;ul&gt;
			&lt;li&gt;
			&lt;ul&gt;
				&lt;li&gt;
				&lt;ul&gt;
					&lt;li&gt;SERVER RESTARTED *****&lt;/li&gt;
				&lt;/ul&gt;
				&lt;/li&gt;
			&lt;/ul&gt;
			&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=10584 port=27018 dbpath=/var/lib/mongodb 64-bit host=saas-di0017&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v2.0.4, pdfile version 4.5&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version: nogitversion&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; build info: Linux hm4317 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64 BOOST_LIB_VERSION=1_42&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; options: &lt;/p&gt;
{ config: &quot;/etc/mongodb.conf&quot;, dbpath: &quot;/var/lib/mongodb&quot;, logappend: &quot;true&quot;, logpath: &quot;/var/log/mongodb/mongodb.log&quot;, repair: true, rest: &quot;true&quot;, shardsvr: &quot;true&quot; }
&lt;p&gt;Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; journal dir=/var/lib/mongodb/journal&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; recover begin&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; recover lsn: 329715219&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; recover /var/lib/mongodb/journal/j._13&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; recover skipping application of section seq:328530229 &amp;lt; lsn:329715219&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; recover skipping application of section seq:328589489 &amp;lt; lsn:329715219&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; recover skipping application of section seq:328648739 &amp;lt; lsn:329715219&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; recover skipping application of section seq:329004279 &amp;lt; lsn:329715219&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; recover skipping application of section seq:329063519 &amp;lt; lsn:329715219&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; recover skipping application of section seq:329122759 &amp;lt; lsn:329715219&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; recover /var/lib/mongodb/journal/j._14&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; recover skipping application of section seq:329596739 &amp;lt; lsn:329715219&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; recover skipping application of section seq:329655969 &amp;lt; lsn:329715219&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; exception during recovery&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; exception in initAndListen std::exception: boost::filesystem::file_size: No such file or directory: &quot;/var/lib/mongodb/$tmp_repairDatabase_0/emailmarketing_development.11&quot;, terminating&lt;br/&gt;
Fri Apr 20 19:28:42 dbexit:&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to flush diaglog...&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: lock for final commit...&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: final commit...&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; closeAllFiles() finished&lt;br/&gt;
Fri Apr 20 19:28:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: removing fs lock...&lt;br/&gt;
Fri Apr 20 19:28:42 dbexit: really exiting now&lt;/p&gt;</description>
                <environment>uname -a&lt;br/&gt;
Linux 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64 GNU/Linux</environment>
        <key id="36834">SERVER-5673</key>
            <summary>Crash during repairDatabase can leave the server unable to start up</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-server-execution">Backlog - Storage Execution Team</assignee>
                                    <reporter username="fabioperrella">fabio perrella</reporter>
                        <labels>
                    </labels>
                <created>Fri, 20 Apr 2012 22:54:11 +0000</created>
                <updated>Tue, 6 Dec 2022 05:33:51 +0000</updated>
                            <resolved>Fri, 14 Sep 2018 20:15:59 +0000</resolved>
                                    <version>2.0.4</version>
                                                    <component>Admin</component>
                    <component>MMAPv1</component>
                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="112523" author="fabioperrella" created="Mon, 23 Apr 2012 11:47:09 +0000"  >&lt;p&gt;full log&lt;/p&gt;</comment>
                            <comment id="112522" author="fabioperrella" created="Mon, 23 Apr 2012 11:46:40 +0000"  >&lt;p&gt;I removed the journal log and it worked, thanks!&lt;br/&gt;
I&apos;m attaching the complete log, you can search in Apr 20 14:00, it was the time I started the repairDb&lt;br/&gt;
One question, removing the journal directory, could I lost some data?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="112333" author="eliot" created="Sun, 22 Apr 2012 00:46:33 +0000"  >&lt;p&gt;Looks the the repair itself failed.&lt;br/&gt;
Do you have the logs for that?&lt;/p&gt;

&lt;p&gt;If the server won&apos;t start now, its safe to remove the journal directory since the repair only touches new files.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="16130" name="mongodb.log.tar.gz" size="1160890" author="fabioperrella" created="Mon, 23 Apr 2012 11:47:09 +0000"/>
                            <attachment id="16129" name="mongodb.log.tar.gz" size="1160890" author="fabioperrella" created="Mon, 23 Apr 2012 11:43:11 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25136"><![CDATA[Storage Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 22 Apr 2012 00:46:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 43 weeks, 2 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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 43 weeks, 2 days ago
                        </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>backlog-server-execution</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>fabioperrella</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hro54n:</customfieldvalue>

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

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

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