<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:22:56 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-9063] hsm: race on the coordinator&apos;s state</title>
                <link>https://jira.whamcloud.com/browse/LU-9063</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;There is nothing to prevent a coordinator from restarting after it was shut down. This is a problem at cleanup time for example when unmounting an mdt.&lt;/p&gt;

&lt;p&gt;The race is a bit difficult to trigger. The simplest way to do it is to add a delay in mdt_hsm_cdt_stop() right after the coordinator&apos;s state is set to CDT_STOPPED.&lt;/p&gt;

&lt;p&gt;After applying the patch (cf. attachment), concurrently run:&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;while [ $(lctl get_param -n mdt.lustre-MDT0000.hsm_control) != &quot;stopped&quot; ]; do
    sleep 1
done
lctl set_param mdt.lustre-MDT0000.hsm_control enabled

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and&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/tests/llmountcleanup.sh

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This should trigger the following:&lt;br/&gt;
 kernel:LustreError: 20570:0:(mdt_coordinator.c:391:hsm_cdt_procfs_fini()) ASSERTION( cdt-&amp;gt;cdt_state == CDT_STOPPED ) failed:&lt;br/&gt;
 kernel:LustreError: 20570:0:(mdt_coordinator.c:391:hsm_cdt_procfs_fini()) LBUG&lt;/p&gt;</description>
                <environment></environment>
        <key id="43411">LU-9063</key>
            <summary>hsm: race on the coordinator&apos;s state</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="hongchao.zhang">Hongchao Zhang</assignee>
                                    <reporter username="cealustre">CEA</reporter>
                        <labels>
                            <label>HSM</label>
                            <label>patch</label>
                    </labels>
                <created>Mon, 30 Jan 2017 14:31:51 +0000</created>
                <updated>Sat, 16 Dec 2023 22:34:02 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="182602" author="pjones" created="Mon, 30 Jan 2017 18:08:01 +0000"  >&lt;p&gt;Hongchao&lt;/p&gt;

&lt;p&gt;Could you please advise on this one?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="182726" author="gerrit" created="Tue, 31 Jan 2017 05:53:35 +0000"  >&lt;p&gt;Vinayak (vinayakswami.hariharmath@seagate.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/25170&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/25170&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9063&quot; title=&quot;hsm: race on the coordinator&amp;#39;s state&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9063&quot;&gt;LU-9063&lt;/a&gt; hsm: protect cdt_state with mutex lock&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 52e08b6ec58240ce6f88f4ddbcdb3dd4216797bf&lt;/p&gt;</comment>
                            <comment id="183544" author="gerrit" created="Mon, 6 Feb 2017 13:47:30 +0000"  >&lt;p&gt;Vinayak (vinayakswami.hariharmath@seagate.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/25269&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/25269&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9063&quot; title=&quot;hsm: race on the coordinator&amp;#39;s state&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9063&quot;&gt;LU-9063&lt;/a&gt; tests: patch to create the race&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 3f97bdee4ae56a2e89c6a6eff13ba2aff52bc36b&lt;/p&gt;</comment>
                            <comment id="190807" author="bougetq" created="Wed, 5 Apr 2017 06:52:12 +0000"  >&lt;p&gt;I think this patch would be a fix: &lt;a href=&quot;https://review.whamcloud.com/#/c/22667&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/22667&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="397134" author="spitzcor" created="Sat, 16 Dec 2023 22:33:06 +0000"  >&lt;p&gt;Seems that this is an old issue that can be resolved.  Quentin B. was probably right.&lt;/p&gt;</comment>
                            <comment id="397135" author="spitzcor" created="Sat, 16 Dec 2023 22:34:02 +0000"  >&lt;p&gt;And I&apos;m guessing that &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/25170&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/25170&lt;/a&gt; can be abandoned.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="25105" name="0001-LU-0000-hsm-add-a-delay-to-easily-trigger-a-race-at-.patch" size="1096" author="bougetq" created="Mon, 30 Jan 2017 14:19:52 +0000"/>
                    </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|hzz21b:</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>