<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:37 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-3639] --repair fails if mongodb.lock file exists (and has data) if journaling on (but there are no journal files)</title>
                <link>https://jira.mongodb.org/browse/SERVER-3639</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Since journaling is now enabled by default (1.9.2+) then a repair will fail if the lock file has data from a previous run without journaling on. A repair should run even if there are no journal files when journaling is on (now default).&lt;/p&gt;

&lt;p&gt;FAILS:&lt;br/&gt;
$mongod --port 7777 --dbpath /tmp/repairme/ --repair&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=17963 port=7777 dbpath=/tmp/repairme/ 64-bit host=lamest.local&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ** NOTE: This is a development version (1.9.2) of MongoDB.&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; **       Not recommended for production.&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v1.9.2, pdfile version 4.5&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version: be8931b7eee5f6efa111cd0ad8f45ccfcffca6ca&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; build info: Darwin erh2.10gen.cc 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_40&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; options: &lt;/p&gt;
{ dbpath: &quot;/tmp/repairme/&quot;, port: 7777, repair: true }
&lt;p&gt;**************&lt;br/&gt;
old lock file: /tmp/repairme/mongod.lock.  probably means unclean shutdown,&lt;br/&gt;
but there are no journal files to recover.&lt;br/&gt;
this is likely human error or filesystem corruption.&lt;br/&gt;
found 1 dbs.&lt;br/&gt;
see: &lt;a href=&quot;http://dochub.mongodb.org/core/repair&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://dochub.mongodb.org/core/repair&lt;/a&gt; for more information&lt;br/&gt;
*************&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; exception in initAndListen: 12596 old lock file, terminating&lt;br/&gt;
Wed Aug 17 16:14:08 dbexit:&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to flush diaglog...&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: lock for final commit...&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: final commit...&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Wed Aug 17 16:14:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; closeAllFiles() finished&lt;br/&gt;
Wed Aug 17 16:14:08 dbexit: really exiting now&lt;/p&gt;

&lt;p&gt;SUCCEEDS:&lt;br/&gt;
$mongod --port 7777 --dbpath /tmp/repairme/ --repair --nojournal&lt;br/&gt;
....&lt;/p&gt;</description>
                <environment></environment>
        <key id="21131">SERVER-3639</key>
            <summary>--repair fails if mongodb.lock file exists (and has data) if journaling on (but there are no journal files)</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                            <label>journal</label>
                            <label>repair</label>
                    </labels>
                <created>Wed, 17 Aug 2011 20:21:00 +0000</created>
                <updated>Wed, 15 Aug 2012 14:16:18 +0000</updated>
                            <resolved>Fri, 1 Jun 2012 23:40:13 +0000</resolved>
                                    <version>1.9.2</version>
                                    <fixVersion>2.1.2</fixVersion>
                                    <component>Storage</component>
                                        <votes>1</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="135367" author="auto" created="Thu, 21 Jun 2012 16:14:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-06-21T09:02:28-07:00&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;}
&lt;p&gt;Message: minor: corrections in response to feedback on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3639&quot; title=&quot;--repair fails if mongodb.lock file exists (and has data) if journaling on (but there are no journal files)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3639&quot;&gt;&lt;del&gt;SERVER-3639&lt;/del&gt;&lt;/a&gt; changes.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/96586d7f5de59a0abea30d6c6bd3cc5fab0eaeaa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/96586d7f5de59a0abea30d6c6bd3cc5fab0eaeaa&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="128149" author="auto" created="Thu, 7 Jun 2012 19:31:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;tychoish&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3639&quot; title=&quot;--repair fails if mongodb.lock file exists (and has data) if journaling on (but there are no journal files)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3639&quot;&gt;&lt;del&gt;SERVER-3639&lt;/del&gt;&lt;/a&gt; correnting interactions between --repair and journaling&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/d035c024b3736531e87a14e0f0c4d2a1fbbc7f48&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/d035c024b3736531e87a14e0f0c4d2a1fbbc7f48&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="125308" author="redbeard0531" created="Fri, 1 Jun 2012 23:40:39 +0000"  >&lt;p&gt;See commit Message for docs changes needed.&lt;/p&gt;</comment>
                            <comment id="125300" author="auto" created="Fri, 1 Jun 2012 23:36:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: --repair should disable journaling &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3639&quot; title=&quot;--repair fails if mongodb.lock file exists (and has data) if journaling on (but there are no journal files)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3639&quot;&gt;&lt;del&gt;SERVER-3639&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/aee30f4ebad8e4a3fd9447ee6f49773947a06a8d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/aee30f4ebad8e4a3fd9447ee6f49773947a06a8d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="49141" author="redbeard0531" created="Wed, 17 Aug 2011 21:10:27 +0000"  >&lt;p&gt;I think current behavior is correct (although the message might need some work). There are two cases that could cause this:&lt;/p&gt;

&lt;p&gt;1) Crashed with --nojournal (or 1.8) and tried to repair with journaling enabled&lt;/p&gt;

&lt;p&gt;2) journal dir is on a different device that isn&apos;t mounted.&lt;/p&gt;

&lt;p&gt;Both are user errors. 2 could cause massive uncorrectable corruption. With 1, there is no good reason to use journalling for the repair and it would just slow it down.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 17 Aug 2011 21:10:27 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 34 weeks, 6 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, 34 weeks, 6 days ago
                        </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>auto</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrotaf:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9347</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_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10153"><![CDATA[Unneeded]]></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|hsnmj3:</customfieldvalue>

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