<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:35:42 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-3646] handle failed FID allocation during HSM release</title>
                <link>https://jira.whamcloud.com/browse/LU-3646</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;After LU-1333 &lt;a href=&quot;http://review.whamcloud.com/#/c/7028&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7028&lt;/a&gt; we need to fix seq_client_alloc_fid() to stop returning 1, and propagate an error when a second FID cannot be allocated for HSM release.&lt;/p&gt;

&lt;p&gt;John L. Hammond		Jul 24 12:02 PM&lt;/p&gt;

&lt;p&gt;(defect) Should be rc &amp;lt; 0, since seq_client_alloc_fid() may return 1 with a valid FID, (especially after eviction).&lt;/p&gt;

&lt;p&gt;More generally, if the FID allocation fails then shouldn&apos;t we downgrade to a normal close so that the mfd is closed and the lease count drops.&lt;/p&gt;

&lt;p&gt;Jinshan Xiong	   Jul 24 12:20 PM&lt;/p&gt;

&lt;p&gt;Yes, this is a bug. We need to fix the corresponding part at MDT side.&lt;/p&gt;


&lt;p&gt;Alex Zhuravlev		Jul 24 12:59 PM&lt;/p&gt;

&lt;p&gt;I don&apos;t think that rc=1 is used anywhere, we probably should fix seq_client_alloc_fid() instead..&lt;/p&gt;

&lt;p&gt;Jinshan Xiong 	   Jul 24 1:20 PM&lt;/p&gt;

&lt;p&gt;I missed your comment, let&apos;s fix this later.&lt;/p&gt;

&lt;p&gt;Alex Zhuravlev		Jul 25 5:31 AM&lt;/p&gt;

&lt;p&gt;shouldn&apos;t reset req_fmt back to RQF_MDS_CLOSE ? also, it&apos;s not clear whether we should return success in such a case as this can confuse HSM tools?&lt;/p&gt;

&lt;p&gt;Aurelien Degremont	     Jul 25 10:47 AM&lt;/p&gt;

&lt;p&gt;Agreed that this should finished with a non-zero value return to caller.&lt;/p&gt;

&lt;p&gt;Jinshan Xiong	 	Jul 25 11:04 AM&lt;/p&gt;

&lt;p&gt;We will still use this format to release the lease, including lease lock and adjust lease count on the MDT.&lt;/p&gt;

&lt;p&gt;With regard to return code, it will be rewritten by close. So the only way to detect if a file is released successfully is to check if OBD_MD_FLRELEASED is set. Probably it also makes sense to remember the errcode here and if close runs okay we return this code to upper layer.&lt;/p&gt;


&lt;p&gt;Andreas Dilger		Jul 25 6:09 PM&lt;/p&gt;

&lt;p&gt;JInshan - you previously described saving the error code here and returning it, but I don&apos;t see that anywhere in the patch? There is an earlier comment that &quot;we should probably fix seq_client_alloc_fid() instead&quot;.&lt;/p&gt;

&lt;p&gt;If there is &quot;work to be done later&quot; this HAS to be recorded in a Jira ticket, otherwise the truth is that this cleanup just never gets done and it will be forgotten until it is a bug at the customer that needs to be fixed.&lt;/p&gt;

&lt;p&gt;Jinshan Xiong		Jul 25 6:39 PM&lt;/p&gt;

&lt;p&gt;Sure, I will file a ticket to remember this work. Just didn&apos;t want to perform a last-minute change which usually makes things fail.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="20019">LU-3646</key>
            <summary>handle failed FID allocation during HSM release</summary>
                <type id="7" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/task_agile.png">Technical task</type>
                            <parent id="20020">LU-3647</parent>
                                    <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="jay">Jinshan Xiong</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>HSM</label>
                    </labels>
                <created>Fri, 26 Jul 2013 14:32:13 +0000</created>
                <updated>Mon, 21 Oct 2013 20:27:56 +0000</updated>
                            <resolved>Mon, 29 Jul 2013 18:09:08 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                                    <fixVersion>Lustre 2.5.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="63177" author="jay" created="Mon, 29 Jul 2013 18:09:01 +0000"  >&lt;p&gt;the fix is already in patch 7028.&lt;/p&gt;</comment>
                            <comment id="69447" author="adilger" created="Mon, 21 Oct 2013 20:27:56 +0000"  >&lt;p&gt;Problem was fixed in the final version of the LU-1333 (HSM-4) patch 7028 that was landed.&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|hzvwa7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9383</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>