<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:06:10 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-4499] without --logappend, rotate old log</title>
                <link>https://jira.mongodb.org/browse/SERVER-4499</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Given how useful the log file is, the server probably shouldn&apos;t default to erasing it.  (This comes up in trainings a lot, that trivial operator errors can erase arbitrarily much useful historical information.)  Could the server either default to logappend or try to rotate an existing log file on startup?&lt;/p&gt;</description>
                <environment></environment>
        <key id="26683">SERVER-4499</key>
            <summary>without --logappend, rotate old log</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="brandon">Brandon Diamond</assignee>
                                    <reporter username="richard.kreuter">Richard Kreuter</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Dec 2011 16:45:24 +0000</created>
                <updated>Mon, 11 Jul 2016 18:33:28 +0000</updated>
                            <resolved>Tue, 3 Apr 2012 18:57:37 +0000</resolved>
                                                    <fixVersion>2.1.1</fixVersion>
                                    <component>Logging</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="106493" author="auto" created="Wed, 4 Apr 2012 14:50:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4499&quot; title=&quot;without --logappend, rotate old log&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4499&quot;&gt;&lt;del&gt;SERVER-4499&lt;/del&gt;&lt;/a&gt;: skip logpath test&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/159f33561fbb1076098338fa746f4d1cf63f59cc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/159f33561fbb1076098338fa746f4d1cf63f59cc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="106163" author="auto" created="Tue, 3 Apr 2012 18:53:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4499&quot; title=&quot;without --logappend, rotate old log&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4499&quot;&gt;&lt;del&gt;SERVER-4499&lt;/del&gt;&lt;/a&gt;: Cross-platform test for log rotation&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3c046f865fb248785c55c7128dfaf3c731f0aa2f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3c046f865fb248785c55c7128dfaf3c731f0aa2f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="106162" author="auto" created="Tue, 3 Apr 2012 18:53:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4499&quot; title=&quot;without --logappend, rotate old log&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4499&quot;&gt;&lt;del&gt;SERVER-4499&lt;/del&gt;&lt;/a&gt;: fixed log rotation + added test&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1dacd20021e5797915da62e97867aa62ac3ae34e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1dacd20021e5797915da62e97867aa62ac3ae34e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="87424" author="richard@10gen.com" created="Fri, 10 Feb 2012 21:09:57 +0000"  >&lt;p&gt;I&apos;m in favor of logappend-by-default.  It&apos;s a minor incompatible change, we can clearly explain in the release notes, e.g., &quot;--logappend is now the default.  If you want to truncate the logfile at server startup, you should do so in your init script.&quot;&lt;/p&gt;</comment>
                            <comment id="87410" author="brandon" created="Fri, 10 Feb 2012 20:46:43 +0000"  >&lt;p&gt;After pow-wowing with Richard and Dan C, it seems as though the existing behavior is getting a bit too grizzly (especially in the presence of forking, wherein we must perform a second set of validations up front so as to ensure we can write to the log after the fork).&lt;/p&gt;

&lt;p&gt;We think the best way forward is to always append instead of the rotate logic currently in place (which causes an existing file to be renamed and a new file started).&lt;/p&gt;

&lt;p&gt;Before committing this change, I wanted to make sure this would be okay with everyone.&lt;/p&gt;</comment>
                            <comment id="87108" author="brandon" created="Thu, 9 Feb 2012 22:59:52 +0000"  >&lt;p&gt;Revisiting and writing tests.&lt;/p&gt;</comment>
                            <comment id="87105" author="richard@10gen.com" created="Thu, 9 Feb 2012 22:46:20 +0000"  >&lt;p&gt;Please write some tests for this.  Cases you need to check for:&lt;/p&gt;

&lt;p&gt;(1) log file exists at startup&lt;br/&gt;
(2) log file doesn&apos;t exist at startup&lt;br/&gt;
(3) logpath denotes a directory&lt;br/&gt;
(4) logpath denotes something else weird&lt;/p&gt;</comment>
                            <comment id="87097" author="richard@10gen.com" created="Thu, 9 Feb 2012 22:26:40 +0000"  >&lt;p&gt;By inspection, the new behavior is doing something incorrect when there isn&apos;t an existing log file:&lt;/p&gt;

&lt;p&gt;$ ls -l /tmp/log&lt;br/&gt;
ls: /tmp/log: No such file or directory&lt;br/&gt;
$ ./mongod --logpath /tmp/log --fork&lt;br/&gt;
Thu Feb  9 17:26:30 Warning: soft rlimits too low. Number of files is 256, should be at least 1000&lt;br/&gt;
forked process: 10763&lt;br/&gt;
all output going to: /tmp/log&lt;br/&gt;
log file &lt;span class=&quot;error&quot;&gt;&amp;#91;/tmp/log&amp;#93;&lt;/span&gt; exists; copied to temporary file &lt;span class=&quot;error&quot;&gt;&amp;#91;/tmp/log.2012-02-09T22-26-30&amp;#93;&lt;/span&gt;&lt;br/&gt;
child process started successfully, parent exiting&lt;/p&gt;</comment>
                            <comment id="75690" author="auto" created="Fri, 23 Dec 2011 17:00:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4499&quot; title=&quot;without --logappend, rotate old log&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4499&quot;&gt;&lt;del&gt;SERVER-4499&lt;/del&gt;&lt;/a&gt;: avoid renaming non-reg files&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4cb6d892d3332cdbc7a5009671dbde69f5998718&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4cb6d892d3332cdbc7a5009671dbde69f5998718&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="75510" author="auto" created="Thu, 22 Dec 2011 18:34:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4499&quot; title=&quot;without --logappend, rotate old log&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4499&quot;&gt;&lt;del&gt;SERVER-4499&lt;/del&gt;&lt;/a&gt;: made log rotation more robust&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/993a4a55efffad18cd735db0adc6604be5d0e807&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/993a4a55efffad18cd735db0adc6604be5d0e807&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="75486" author="auto" created="Thu, 22 Dec 2011 17:24:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4499&quot; title=&quot;without --logappend, rotate old log&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4499&quot;&gt;&lt;del&gt;SERVER-4499&lt;/del&gt;&lt;/a&gt;: old log rotated, not clobbered&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/dc9fb4cc88aa3c4fd5cd7475901857ff29c5f438&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/dc9fb4cc88aa3c4fd5cd7475901857ff29c5f438&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="23879">SERVER-4109</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="29300">SERVER-4797</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 22 Dec 2011 17:24:34 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 46 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>auto</customfieldvalue>
            <customfieldvalue>brandon</customfieldvalue>
            <customfieldvalue>richard.kreuter</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroj3r:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8059</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="10154"><![CDATA[Complete]]></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|hs8wyn:</customfieldvalue>

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