<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:31:34 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>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-16977] Ofd_access_log_reader use fraction option wrongly</title>
                <link>https://jira.whamcloud.com/browse/LU-16977</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When ofd_access_log_reader has batch-fraction=100 (default), the calculation of the batch fraction is wrong.&lt;/p&gt;

&lt;p&gt;Details:&lt;/p&gt;

&lt;p&gt;In the below fragment the array sa is accessed beyond the upper boundary when&lt;/p&gt;

&lt;p&gt;aa-&amp;gt;fraction=100&lt;/p&gt;

&lt;p&gt;lustre\utils\ofd_access_batch.c&lt;/p&gt;

&lt;p&gt;void *alr_sort_and_print_thread(void *arg)&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;&#160; &#160; sa = calloc(nr, sizeof(*sa));&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;&#160; &#160; i = nr * aa-&amp;gt;fraction / 100;&lt;br/&gt;
&#160; &#160; cut = sa&lt;span class=&quot;error&quot;&gt;&amp;#91;i&amp;#93;&lt;/span&gt;;&lt;/p&gt;

&lt;p&gt;It is unlikely will cause a segfault, but the threshold of IO ops counter for the the printed ALR&apos;s might be chosen wrongly. As a result aaccess_log_reader may send not complete set of ALR&apos;s when the fraction is 100%&lt;/p&gt;</description>
                <environment></environment>
        <key id="77128">LU-16977</key>
            <summary>Ofd_access_log_reader use fraction option wrongly</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/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="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="aioffe">Alexandre Ioffe</assignee>
                                    <reporter username="aioffe">Alexandre Ioffe</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Jul 2023 21:25:26 +0000</created>
                <updated>Wed, 6 Sep 2023 13:14:23 +0000</updated>
                            <resolved>Wed, 6 Sep 2023 13:14:23 +0000</resolved>
                                    <version>Lustre 2.14.0</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="379940" author="gerrit" created="Tue, 25 Jul 2023 02:11:43 +0000"  >&lt;p&gt;&quot;Alexandre Ioffe &amp;lt;aioffe@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51754&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51754&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16977&quot; title=&quot;Ofd_access_log_reader use fraction option wrongly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16977&quot;&gt;&lt;del&gt;LU-16977&lt;/del&gt;&lt;/a&gt; utils: access_log_reader accesses beyond batch array&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 449e90c813e1c925797c09e09937022f6df12626&lt;/p&gt;</comment>
                            <comment id="379953" author="JIRAUSER16924" created="Tue, 25 Jul 2023 07:13:24 +0000"  >&lt;p&gt;As &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=bzzz&quot; class=&quot;user-hover&quot; rel=&quot;bzzz&quot;&gt;bzzz&lt;/a&gt; suggested if fraction is 100%, we do not need filtering at all. This includes sort function. Therefore the bug fix is turned into an improvement: we eliminate high CPU sort function.&lt;br/&gt;
Thanks a lot &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=bzzz&quot; class=&quot;user-hover&quot; rel=&quot;bzzz&quot;&gt;bzzz&lt;/a&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="384898" author="gerrit" created="Wed, 6 Sep 2023 06:20:59 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51754/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51754/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16977&quot; title=&quot;Ofd_access_log_reader use fraction option wrongly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16977&quot;&gt;&lt;del&gt;LU-16977&lt;/del&gt;&lt;/a&gt; utils: access_log_reader accesses beyond batch array&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: bf5e5a89f9f4680c42f768b8474a3ea0bc014b54&lt;/p&gt;</comment>
                            <comment id="384972" author="pjones" created="Wed, 6 Sep 2023 13:14:23 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i03rb3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

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