<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:03:53 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>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[INTPAK-199] Karaf log file rotation not using desired file rotation scheme</title>
                <link>https://jira.opendaylight.org/browse/INTPAK-199</link>
                <project id="10190" key="INTPAK">integration-packaging</project>
                    <description>&lt;p&gt;I used karaf to generate some test logs, via:&lt;/p&gt;

&lt;p&gt;opendaylight-user@root&amp;gt;log:load-test --messaged 500000 --threads 10&lt;/p&gt;

&lt;p&gt;I monitored the karaf log rotation, as follows:&lt;/p&gt;

&lt;p&gt;()&lt;span class=&quot;error&quot;&gt;&amp;#91;odl@overcloud-controller-2 /var/log/opendaylight&amp;#93;&lt;/span&gt;$ while true; do ls -lhrt karaf.lo*; echo; sleep 1; done;&lt;/p&gt;

&lt;p&gt;To make it a bit easier to see what was going on, I truncated the karaf.log.1 file to 10 bytes, and karaf.log.2 to 20 bytes.&lt;/p&gt;

&lt;p&gt;The expectation is that karaf.log would be rotated to karaf.log1, karaf.log1 would be rotated to karaf.log2, which is referred to as &quot;fixed window strategy&quot;&lt;/p&gt;

&lt;p&gt;Reference:&lt;br/&gt;
&lt;a href=&quot;http://logging.apache.org/log4j/2.x/manual/appenders.html#RollingFileAppender&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://logging.apache.org/log4j/2.x/manual/appenders.html#RollingFileAppender&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Take a look at the &quot;Rollover stategies section&quot;&lt;/p&gt;

&lt;p&gt;Instead, we see that karaf.log is rotated to karaf.log.2&lt;/p&gt;


&lt;p&gt;&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;-. 1 odl odl   10 Aug 24 17:52 karaf.log.1&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;-. 1 odl odl   20 Aug 24 17:52 karaf.log.2&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;-. 1 odl odl 997M Aug 24 17:52 karaf.log&lt;/p&gt;

&lt;p&gt;&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;-. 1 odl odl    10 Aug 24 17:52 karaf.log.1&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;-. 1 odl odl    20 Aug 24 17:52 karaf.log.2&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;-. 1 odl odl 1008M Aug 24 17:52 karaf.log&lt;/p&gt;

&lt;p&gt;&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;-. 1 odl odl    10 Aug 24 17:52 karaf.log.1&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;-. 1 odl odl    20 Aug 24 17:52 karaf.log.2&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;-. 1 odl odl 1020M Aug 24 17:52 karaf.log&lt;/p&gt;

&lt;p&gt;&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;-. 1 odl odl   20 Aug 24 17:52 karaf.log.1&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;-. 1 odl odl 1.1G Aug 24 17:53 karaf.log.2&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;-. 1 odl odl 7.7M Aug 24 17:53 karaf.log&lt;/p&gt;


&lt;p&gt;The problem is that fileIndex defaults to &quot;max&quot;. For the desired behavior, fileIndex should be set to &quot;min&quot;.&lt;/p&gt;

&lt;p&gt;I have tested a fix, will push a patch shortly.&lt;/p&gt;</description>
                <environment></environment>
        <key id="30636">INTPAK-199</key>
            <summary>Karaf log file rotation not using desired file rotation scheme</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="vpickard">Victor Pickard</assignee>
                                    <reporter username="vpickard">Victor Pickard</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Aug 2018 19:29:36 +0000</created>
                <updated>Tue, 25 Sep 2018 14:55:09 +0000</updated>
                            <resolved>Tue, 25 Sep 2018 14:55:09 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="64766" author="vpickard" created="Fri, 24 Aug 2018 19:33:18 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/75480/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/75480/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03i4f:</customfieldvalue>

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