<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:12:01 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-7799] mdt.*.hsm.actions skips some records</title>
                <link>https://jira.whamcloud.com/browse/LU-7799</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Note that this is surely responsible for a number of mysterious sanity-hsm test failures.&lt;/p&gt;

&lt;p&gt;Due to a bug in (or misuse of) &lt;tt&gt;llog_cat_process()&lt;/tt&gt; the HSM actions proc file will skip some records when read.&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;~# # mount and setup HSM
~# killall lhsmtool_posix
~# wc -l /proc/fs/lustre/mdt/lustre-MDT0000/hsm/actions
0 /proc/fs/lustre/mdt/lustre-MDT0000/hsm/actions
~# cd /mnt/lustre
lustre# for ((i = 0; i &amp;lt; 20; i++)); do
&amp;gt;   touch f$i
&amp;gt;   lfs hsm_archive f$i
&amp;gt; done
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Now there should be 20 records in the actions file but there are only 19:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;lustre# wc -l /proc/fs/lustre/mdt/lustre-MDT0000/hsm/actions
19 /proc/fs/lustre/mdt/lustre-MDT0000/hsm/actions
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The missing record corresponds to &lt;tt&gt;f17&lt;/tt&gt;:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;lustre# lfs path2fid f17
[0x200000401:0x12:0x0]
lustre# grep &apos;0x200000401:0x12:0x0&apos; /proc/fs/lustre/mdt/lustre-MDT0000/hsm/actions
lustre# lfs hsm_action f17
f17: ARCHIVE waiting (from 0 to EOF)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The issue is with how the &lt;tt&gt;startidx&lt;/tt&gt; parameter to &lt;tt&gt;llog_cat_process()&lt;/tt&gt; is handled (see &lt;tt&gt;mdt_hsm_actions_proc_show()&lt;/tt&gt; and &lt;tt&gt;hsm_actions_show_cb()&lt;/tt&gt;). &lt;tt&gt;startidx&lt;/tt&gt; becomes &lt;tt&gt;lpd_startidx&lt;/tt&gt; then &lt;tt&gt;lpcd_first_idx&lt;/tt&gt; which is actually skipped in &lt;tt&gt;llog_process_thread()&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="34811">LU-7799</key>
            <summary>mdt.*.hsm.actions skips some records</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="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>hsm</label>
                            <label>llog</label>
                    </labels>
                <created>Fri, 19 Feb 2016 18:42:37 +0000</created>
                <updated>Mon, 26 Sep 2016 23:06:21 +0000</updated>
                            <resolved>Mon, 14 Mar 2016 03:00:01 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                    <version>Lustre 2.7.0</version>
                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="143014" author="gerrit" created="Fri, 19 Feb 2016 19:11:41 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/18525&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18525&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7799&quot; title=&quot;mdt.*.hsm.actions skips some records&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7799&quot;&gt;&lt;del&gt;LU-7799&lt;/del&gt;&lt;/a&gt; hsm: use correct record start index for actions&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: aee680aca3e7fcd5d04055039f6e8cea891354a6&lt;/p&gt;</comment>
                            <comment id="145376" author="gerrit" created="Mon, 14 Mar 2016 02:42:44 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/18525/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18525/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7799&quot; title=&quot;mdt.*.hsm.actions skips some records&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7799&quot;&gt;&lt;del&gt;LU-7799&lt;/del&gt;&lt;/a&gt; hsm: use correct record start index for actions&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 1ce2c6f33c104cafbf42828551e338d0c5e7602a&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|hzy1xj:</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>