<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:56:52 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-1386] Auto-repair for packaged build</title>
                <link>https://jira.mongodb.org/browse/SERVER-1386</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If the database was not cleanly shutdown then the next start attempt outputs a message to the mongo log and mongodb does not start.  This would typically happen in the system boot after the unclean shutdown.&lt;/p&gt;

&lt;p&gt;A subsequent attempt to start mongodb will start just fine but nothing has changed and the repair really should be run.&lt;/p&gt;

&lt;p&gt;Trying to do a repair manually is a pain.  For example doing it via the shell requires that you &apos;use&apos; every db and then call repair on that database when you actually want repair to be run on everything.&lt;/p&gt;

&lt;p&gt;Trying to use the command line &apos;mongod --repair&apos; means working out how to supply the parameter for the config file, and then afterwards discovering that the repaired database files are now all owned by root.  Sure combining sudo, su etc could just about pull it off but is very fiddly.&lt;/p&gt;

&lt;p&gt;A bigger picture question is &quot;are there any circumstances where you would not want to do a repair&quot;?  I suspect maybe some slaving scenarios where the local data is not trusted on startup anyway.&lt;/p&gt;

&lt;p&gt;I propose there be a key in the config file defaulting to true (except for previous paragraph answers) that automatically runs --repair with the correct parameters and users on restart if there was an unclean shutdown.&lt;/p&gt;</description>
                <environment>10gen stable build for Ubuntu 10.4</environment>
        <key id="12396">SERVER-1386</key>
            <summary>Auto-repair for packaged build</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="4">Incomplete</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="rogerbinns">Roger Binns</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Jul 2010 14:54:41 +0000</created>
                <updated>Tue, 28 Feb 2012 01:29:23 +0000</updated>
                            <resolved>Tue, 28 Feb 2012 01:29:23 +0000</resolved>
                                    <version>1.4.4</version>
                                                                        <votes>7</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="93166" author="eliot" created="Tue, 28 Feb 2012 01:29:23 +0000"  >&lt;p&gt;2.0+ has journalling enabled by default which recovers automatically after a restart.&lt;/p&gt;</comment>
                            <comment id="93151" author="olo" created="Tue, 28 Feb 2012 00:34:15 +0000"  >&lt;p&gt;@Roger: OK, as I understand this has happened somewhen after version 1.8 (which I&apos;m using)?&lt;/p&gt;
</comment>
                            <comment id="93148" author="rogerbinns" created="Tue, 28 Feb 2012 00:26:38 +0000"  >&lt;p&gt;@Aleksander: this ticket should really just be closed as overcome by events.  Since this ticket was added almost two years ago, MongoDB has gained journalling functionality which is on by default.  Consequently no matter what happened to a machine involving inadvertent power off, MongoDB will still start and function correctly without the need for any repair.&lt;/p&gt;</comment>
                            <comment id="93142" author="olo" created="Tue, 28 Feb 2012 00:19:27 +0000"  >&lt;p&gt;I fully support the idea of autorepair. Moreover, I am of the opinion that this should be enabled by default, and could be disabled in the mongodb.conf file for specific deployments (clusters? high importance production environments?) where standard autorepair might not cut the mustard and a custom solution is deployed.&lt;/p&gt;

&lt;p&gt;Why would anyone anywhere want to run without some form of autorepair (be it high load production environment, or experimental development environment on a laptop) and be forced to handle things manually each time - is beyond me.&lt;/p&gt;
</comment>
                            <comment id="20231" author="dbackeus" created="Thu, 11 Nov 2010 10:20:56 +0000"  >&lt;p&gt;Agree with this one. A config option for automatic repair in case of a stale lock file seems like a no brainer.&lt;/p&gt;

&lt;p&gt;We&apos;ve had some problems with our cloud provider causing 3 hard reboots in the past few month and every time it would cause problems as I was waiting to be notified and be able to remote the server and manually restart mongodb.&lt;/p&gt;

&lt;p&gt;I never even dared to run the repair as I didn&apos;t want to run it from outside the init script. Also I wasn&apos;t sure how it would affect my replica sets and there was some scary warning about running repair on MongoDB 1.6 (the note said it would be fixed on 1.6.1 and we&apos;re running 1.6.4 but I was still confused enough about the actual workings of repair to do it).&lt;/p&gt;</comment>
                            <comment id="15609" author="rogerbinns" created="Sat, 10 Jul 2010 00:19:35 +0000"  >&lt;p&gt;You should definitely make doing the actual repair a lot easier with the packaged version.  Currently trying to string together the right set of sudo, su, some random mongo binary and its parameters is too hard.&lt;/p&gt;

&lt;p&gt;My use case is a development environment where the user couldn&apos;t care less about Mongo, losing data doesn&apos;t matter and each of these steps is an annoying hurdle:  Finding out that mongo is not running, finding out why, fixing whatever it is, and starting it up again.  You should try explaining any of that over the phone!&lt;/p&gt;</comment>
                            <comment id="15606" author="eliot" created="Sat, 10 Jul 2010 00:08:57 +0000"  >&lt;p&gt;not sure this makes sense since a repair could theoretically remove data...&lt;/p&gt;

&lt;p&gt;have to think about it&lt;/p&gt;</comment>
                            <comment id="15590" author="rogerbinns" created="Fri, 9 Jul 2010 16:06:08 +0000"  >&lt;p&gt;To  make life easier can you also add a repair option to the init file?  That way I can &apos;sudo service mongodb repair&apos; rather than having to work out the various parameters, user, config file etc.&lt;/p&gt;

&lt;p&gt;If I do &apos;service mongodb start&apos; and it won&apos;t start because of the repair issue then I really should be told about it.  For example I killed the running monogod with kill -9.&lt;/p&gt;

&lt;p&gt;$ sudo service mongodb start&lt;br/&gt;
mongodb start/running, process 5640&lt;br/&gt;
$ ps -ef | grep mongo&lt;br/&gt;
rogerb    5645  5060  0 13:02 pts/1    00:00:00 grep mongo&lt;/p&gt;

&lt;p&gt;In this case only doing the grep tells me that mongo failed to start and I have to grovel in the log file to find out the repair message.&lt;/p&gt;</comment>
                            <comment id="15588" author="auto" created="Fri, 9 Jul 2010 15:57:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kreuter&apos;, &apos;name&apos;: &apos;Richard Kreuter&apos;, &apos;email&apos;: &apos;richard@10gen.com&apos;}
&lt;p&gt;Message: Don&apos;t mutilate lock file until lock acquired.  Part of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1386&quot; title=&quot;Auto-repair for packaged build&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1386&quot;&gt;&lt;del&gt;SERVER-1386&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/031ef119144ab065b4d3300beed79554e00f2b5a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/031ef119144ab065b4d3300beed79554e00f2b5a&lt;/a&gt;&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>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 9 Jul 2010 15:57:19 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 51 weeks, 2 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>olo</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>dbackeus</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>rogerbinns</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpjvj:</customfieldvalue>

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

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

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