<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:56:28 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-62938] Log rotate for auditing does not work on startup</title>
                <link>https://jira.mongodb.org/browse/SERVER-62938</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Looking through &lt;a href=&quot;https://evergreen.mongodb.com/task/mongodb_mongo_v5.2_enterprise_rhel_80_64_bit_dynamic_classic_engine_audit_b62f89db8088a592feff150f8116ac675bff7456_22_01_24_10_21_19&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;logs for audit tasks&lt;/a&gt; on master and v5.2, specifically the test for log_rotate_startup.js, there are lots of messages saying &quot;Log rotation initiated&quot; immediately followed by &quot;Unknown log type for rotate&quot;. We should make sure that the logs are rotating correctly on startup and fix the test log_rotate_startup to catch this and to ensure that future changes don&apos;t break this behavior. &lt;/p&gt;</description>
                <environment></environment>
        <key id="1969837">SERVER-62938</key>
            <summary>Log rotate for auditing does not work on startup</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="3">Duplicate</resolution>
                                        <assignee username="erwin.pe@mongodb.com">Erwin Pe</assignee>
                                    <reporter username="shreyas.kalyan@mongodb.com">Shreyas Kalyan</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Jan 2022 20:48:03 +0000</created>
                <updated>Mon, 7 Feb 2022 22:28:41 +0000</updated>
                            <resolved>Mon, 7 Feb 2022 22:28:40 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4340833" author="JIRAUSER1261316" created="Mon, 7 Feb 2022 22:25:39 +0000"  >&lt;p&gt;From the test logs, the &quot;Unknown log type for rotate&quot; error is only logged by the config server instances, which do not start with the &lt;tt&gt;--auditDestination=file&lt;/tt&gt; option. Before &lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/blob/83007ce90279ac3a5bd494d8f154d74f01b39484/src/audit/audit_manager.cpp#L293-L295&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this check&lt;/a&gt; was added by &lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/83007ce90279ac3a5bd494d8f154d74f01b39484&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this commit&lt;/a&gt; for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-61699&quot; title=&quot;Failure to rotate audit log on startup does not cause node startup to fail&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-61699&quot;&gt;&lt;del&gt;SERVER-61699&lt;/del&gt;&lt;/a&gt; , the &lt;tt&gt;logv2::rotateLogs()&lt;/tt&gt; function gets called with log type &lt;tt&gt;kAuditLogTag&lt;/tt&gt; regardless of whether audit logging is enabled. Also, the log rotator callback with this log type only gets registered if audit logging is enabled and is destined to a file (see &lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/blob/83007ce90279ac3a5bd494d8f154d74f01b39484/src/audit/audit_log.cpp#L330-L334&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;). Since the config server has not enabled audit logging, the audit log rotator callback was never registered, and so the &lt;tt&gt;logv2::rotateLogs()&lt;/tt&gt; function emits this error message when given the log type &lt;tt&gt;kAuditLogTag&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;TL;DR: this issue has been fixed in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-61699&quot; title=&quot;Failure to rotate audit log on startup does not cause node startup to fail&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-61699&quot;&gt;&lt;del&gt;SERVER-61699&lt;/del&gt;&lt;/a&gt;. Before that fix, errors from the very first audit log rotation (i.e. &lt;tt&gt;rotateAuditLog()&lt;/tt&gt;), such as this one, were simply ignored.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="1931254">SERVER-61699</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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 7 Feb 2022 22:25:39 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 2 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>erwin.pe@mongodb.com</customfieldvalue>
            <customfieldvalue>shreyas.kalyan@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0hvdj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5701">Security 2022-02-21</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|i0hhiv:</customfieldvalue>

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