<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:30:48 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-9959] hsm: cannot schedule two different requests on the same fid</title>
                <link>https://jira.whamcloud.com/browse/LU-9959</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;&lt;tt&gt;mdt_hsm_add_actions()&lt;/tt&gt; makes the assumption that &lt;tt&gt;hsm_find_compatible()&lt;/tt&gt; will set the &lt;tt&gt;hai_cookie&lt;/tt&gt; field of incoming requests to something other than 0 only if :&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;the incoming request is a CANCEL request, and there is a request to cancel;&lt;/li&gt;
	&lt;li&gt;the incoming request is a NONE request, and there is a request scheduled for the given fid;&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;the incoming request is an ARCHIVE or a RESTORE or a REMOVE, and the same request is already scheduled.&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The third assumption is used to detect duplicate requests, but &lt;tt&gt;hsm_find_compatible()&lt;/tt&gt; does not exactly work like this. If the incoming request is an ARCHIVE/RESTORE/REMOVE, &lt;tt&gt;hsm_find_compatible()&lt;/tt&gt; will set the &lt;tt&gt;hai_cookie&lt;/tt&gt; field if it finds &lt;b&gt;any&lt;/b&gt; request that applies to the same fid.&lt;br/&gt;
 This means that an ARCHIVE/RESTORE/REMOVE request on a given fid cannot be scheduled on the coordinator while any other request is still scheduled for that same fid.&lt;/p&gt;

&lt;p&gt;This makes sense in some cases:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;one cannot run both an ARCHIVE and a RESTORE on the same file (either the archive is not needed, or the file is not released)&lt;/li&gt;
	&lt;li&gt;one cannot run both a RESTORE and a REMOVE on the same file (either the file is not released, or its archive in the backend cannot be purged)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;But not in others:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;one can want to ARCHIVE the new version of a file while the previous version is being REMOVEd from the hsm backend.&lt;/li&gt;
	&lt;li&gt;one can want to re-run an {ARCHIVE,RESTORE,REMOVE}&lt;br/&gt;
request while another is being canceled.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="48231">LU-9959</key>
            <summary>hsm: cannot schedule two different requests on the same fid</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="bougetq">Quentin Bouget</assignee>
                                    <reporter username="cealustre">CEA</reporter>
                        <labels>
                            <label>HSM</label>
                    </labels>
                <created>Fri, 8 Sep 2017 12:11:02 +0000</created>
                <updated>Wed, 5 Aug 2020 13:50:22 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="207881" author="pjones" created="Fri, 8 Sep 2017 13:54:14 +0000"  >&lt;p&gt;Quentin&lt;/p&gt;

&lt;p&gt;Is this issue something that you are planning to work on or something you are documenting in the hope that someone else will work on it?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="207887" author="bougetq" created="Fri, 8 Sep 2017 14:06:47 +0000"  >&lt;p&gt;Hi Peter,&lt;/p&gt;

&lt;p&gt;A little of both. Ben Evans is working on the &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7988&quot; title=&quot;HSM: high lock contention for cdt_llog_lock&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7988&quot;&gt;&lt;del&gt;LU-7988&lt;/del&gt;&lt;/a&gt; patch series and the last patch of the series is about calling &lt;tt&gt;hsm_find_compatible()&lt;/tt&gt; less often. I am hoping we can fix both issues at once. If not, I will eventually submit a patch, but probably not until October or November.&lt;/p&gt;

&lt;p&gt;Quentin&lt;/p&gt;</comment>
                            <comment id="207889" author="pjones" created="Fri, 8 Sep 2017 14:14:06 +0000"  >&lt;p&gt;In that case I think that it makes sense for you to own this ticket for the time being. I also added a link to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7988&quot; title=&quot;HSM: high lock contention for cdt_llog_lock&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7988&quot;&gt;&lt;del&gt;LU-7988&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="35819">LU-7988</issuekey>
        </issuelink>
                            </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|hzzjtr:</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>