<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:11 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-1832] &apos;repair&apos; option to control script in packaged build</title>
                <link>https://jira.mongodb.org/browse/SERVER-1832</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Short story - add a &apos;repair&apos; option the main control script (the one you can invoke with &apos;start&apos;, &apos;stop&apos;, &apos;restart&apos; etc options.)  To do a repair I should be able to do:&lt;/p&gt;

&lt;p&gt;   sudo service mongodb repair&lt;/p&gt;

&lt;p&gt;Justification: currently if you use the packaged build then doing a repair is a pain.&lt;/p&gt;

&lt;p&gt;First of all you don&apos;t even know it is needed.  I killed the server with -9 to demonstrate this:&lt;/p&gt;

&lt;p&gt;$ ps -ef | grep mongodb&lt;br/&gt;
rogerb   14098  2352  0 15:24 pts/0    00:00:00 grep mongodb&lt;br/&gt;
$ sudo service mongodb start&lt;br/&gt;
mongodb start/running, process 14105&lt;br/&gt;
$ ps -ef | grep mongodb&lt;br/&gt;
rogerb   14110  2352  0 15:24 pts/0    00:00:00 grep mongodb&lt;/p&gt;

&lt;p&gt;As you can see the server is not running, start claims it is, but it isn&apos;t.  On checking the logs you find the message about the lockfile.&lt;/p&gt;

&lt;p&gt;To actually do the repair requires two things.  Firstly you have to figure out where the lock file is and delete it.  For packaged builds this information is known.  See also &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1609&quot; title=&quot;repair should clear lock file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1609&quot;&gt;&lt;del&gt;SERVER-1609&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Secondly you have to run repair with the right user and data directories. config files etc.  All this is annoying to string together and the packaged build already knows all those values.&lt;/p&gt;</description>
                <environment>Ubuntu 10.04</environment>
        <key id="13154">SERVER-1832</key>
            <summary>&apos;repair&apos; option to control script in packaged build</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="richard.kreuter">Richard Kreuter</assignee>
                                    <reporter username="rogerbinns">Roger Binns</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Sep 2010 22:33:34 +0000</created>
                <updated>Mon, 19 May 2014 22:09:22 +0000</updated>
                            <resolved>Tue, 25 Jan 2011 17:06:51 +0000</resolved>
                                                                    <component>Usability</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="22690" author="rogerbinns" created="Wed, 26 Jan 2011 06:24:01 +0000"  >&lt;p&gt;Just to clarify you have conflated two separate issues.  One is running repair automatically which is a different ticket &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;/p&gt;

&lt;p&gt;This issue is purely that if I know I want to run repair on a packaged build I want to be able to do so reliably.  It is difficult to work out what the command line is manually since it requires knowledge of what userid mongodb was running under, location of the various config files, how to check if it is running etc.  Those decisions were made by the rest of the MongoDB packaging, not me.  I don&apos;t have to know or care what they are to start or stop the server.&lt;/p&gt;

&lt;p&gt;All I want is a single command that when run uses the packaged configuration to do the repair.  Having /etc/init.d/mongodb be that entry point is the nicest but a separate script is just.&lt;/p&gt;

&lt;p&gt;As a challenge right now, I am a regular user with sudo privileges and need to do a repair on a database that has not started.  Exactly which user should I switch to and what combination of sudo/su commands will do that, where is the mongod binary, is it -repair or --repair, what are the pathnames of the config files I must pass?  The packaging knows the answer to all of those!&lt;/p&gt;</comment>
                            <comment id="22652" author="richard@10gen.com" created="Tue, 25 Jan 2011 17:11:08 +0000"  >&lt;p&gt;(Additionally, we try to follow MySQL packaging to a degree, and it seems that the analogous myisamcheck does not get run in their init scripts.)&lt;/p&gt;</comment>
                            <comment id="22650" author="richard@10gen.com" created="Tue, 25 Jan 2011 17:06:51 +0000"  >&lt;p&gt;Closing this as a wontfix because:&lt;/p&gt;

&lt;p&gt;(a) the need for repair goes away in 1.8 with single-server durability,&lt;br/&gt;
(b) repair isn&apos;t totally safe, and so isn&apos;t a good idea to run automatically,&lt;br/&gt;
(c) mongod is started via upstart on sufficiently recent Ubuntu versions, and upstart won&apos;t let you add new arguments (as far as I can tell)&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 25 Jan 2011 17:06:51 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 4 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>
                            13 years, 4 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>richard.kreuter</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|hrpelz:</customfieldvalue>

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

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

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