<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:33:46 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-17236] clearing non-existent job from job_stats returns EINVAL</title>
                <link>https://jira.whamcloud.com/browse/LU-17236</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Writing a job name to the &lt;tt&gt;job_stats&lt;/tt&gt; file is intended to clear the stats for that job:&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;# lctl get_param mdt.*.job_stats | grep -v &quot; 0, unit:&quot; | less
mdt.myth-MDT0000.job_stats=
job_stats:
- job_id: PT277.500
  snapshot_time:   1698471105
  getattr: { samples: 522743, unit: usecs, min:  2, max: 91662, sum: 2790673, sumsq: 23649961511 }
  statfs:  { samples: 173907, unit: usecs, min:  2, max:    81, sum:  884179, sumsq:     5283201 }
- job_id: mythfrontend.500
  snapshot_time:   1698470505
  getattr: { samples:    1259, unit: usecs, min:  2, max:   466, sum:    9037, sumsq:     1241873 }
- job_id: Expire.500
  snapshot_time:   1698470998
  getattr: { samples:      3, unit: usecs, min:  5, max:     6, sum:      16, sumsq:          86 }
  statfs:  { samples:      1, unit: usecs, min: 11, max:    11, sum:      11, sumsq:         121 }
# lctl set_param *.*.job_stats=Expire.500
mdt.myth-MDT0000.job_stats=Expire.500
error: set_param: setting /proc/fs/lustre/obdfilter/myth-OST0000/job_stats=Expire.500: Invalid argument
error: set_param: setting /proc/fs/lustre/obdfilter/myth-OST0001/job_stats=Expire.500: Invalid argument
error: set_param: setting /proc/fs/lustre/obdfilter/myth-OST0002/job_stats=Expire.500: Invalid argument
error: set_param: setting /proc/fs/lustre/obdfilter/myth-OST0003/job_stats=Expire.500: Invalid argument
error: set_param: setting /proc/fs/lustre/obdfilter/myth-OST0004/job_stats=Expire.500: Invalid argument
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This clearing works for the &lt;tt&gt;job_stats&lt;/tt&gt; files that have the specified JobID, but returns &lt;tt&gt;&amp;#45;EINVAL&lt;/tt&gt; for the targets that do not have this JobID.  I think the &quot;&lt;tt&gt;Invalid argument&lt;/tt&gt;&quot; error is not very helpful.  Returning &quot;&lt;tt&gt;&amp;#45;ESRCH&lt;/tt&gt;&quot; (&quot;&lt;tt&gt;No such process&lt;/tt&gt;&quot;) in this case would be an improvement, since there are already several other &quot;&lt;tt&gt;&amp;#45;EINVAL&lt;/tt&gt;&quot; return cases in &lt;tt&gt;lprocfs_jobstats_seq_write()&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;However, if you are trying to delete some stats, and they are already gone, then it shouldn&apos;t report an error at all, since it is otherwise difficult to see that one parameter was successfully set (in the above example &quot;&lt;tt&gt;myth-MDT0000&lt;/tt&gt;&quot;) and only the failed parameters were printing anything, especially if there are a large number of devices.  &lt;/p&gt;</description>
                <environment></environment>
        <key id="78644">LU-17236</key>
            <summary>clearing non-existent job from job_stats returns EINVAL</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Sat, 28 Oct 2023 05:51:53 +0000</created>
                <updated>Sat, 28 Oct 2023 05:51:53 +0000</updated>
                                            <version>Lustre 2.14.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                    <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|i03zvr:</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>