<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:01:21 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-6570] sanityn test_40a: create is blocked</title>
                <link>https://jira.whamcloud.com/browse/LU-6570</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for Jinshan Xiong &amp;lt;jinshan.xiong@intel.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run: &lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/0859146e-f35b-11e4-9186-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/0859146e-f35b-11e4-9186-5254006e85c2&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The sub-test test_40a failed with the following error:&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;create is blocked
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Please provide additional information about the failure here.&lt;/p&gt;

&lt;p&gt;Info required for matching: sanityn 40a&lt;/p&gt;</description>
                <environment></environment>
        <key id="29876">LU-6570</key>
            <summary>sanityn test_40a: create is blocked</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="di.wang">Di Wang</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                            <label>dne2</label>
                    </labels>
                <created>Wed, 6 May 2015 06:09:29 +0000</created>
                <updated>Fri, 9 Sep 2016 20:13:30 +0000</updated>
                            <resolved>Thu, 9 Jul 2015 21:53:17 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                    <version>Lustre 2.5.5</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="114421" author="adilger" created="Wed, 6 May 2015 19:14:46 +0000"  >&lt;p&gt;It looks like this test may be racy under load:&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;# check that pid exists hence second operation wasn&apos;t blocked by first one
# if it is so then there is no conflict, return 0
# else second operation is conflicting with first one, return 1
check_pdo_conflict() {
        local pid=$1
        local conflict=0
        sleep 1 # to ensure OP1 is finished on client if OP2 is blocked by OP1
        if [[ `ps --pid $pid | wc -l` == 1 ]]; then
                conflict=1
                echo &quot;Conflict&quot;
        else
                echo &quot;No conflict&quot;
        fi
        return $conflict
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If a process is around for 1s then it would cause a failure?  In any case, this has only ever happened once, so it isn&apos;t clear if it was just a very small race condition or something else.  I looked through the other sanityn tests for the patch &lt;a href=&quot;http://review.whamcloud.com/14100&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14100&lt;/a&gt; where this was hit, but no other cases of this failure.&lt;/p&gt;</comment>
                            <comment id="118254" author="yujian" created="Thu, 11 Jun 2015 19:21:42 +0000"  >&lt;p&gt;On master branch, this is a regression failure introduced by patch &lt;a href=&quot;http://review.whamcloud.com/14495&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14495&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="119136" author="di.wang" created="Fri, 19 Jun 2015 19:29:56 +0000"  >&lt;p&gt;No, there are no protocol changes for the patch. The failures on 2.5.5 is because of mistakes they made when porting the patch &lt;a href=&quot;http://review.whamcloud.com/#/c/14495/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/14495/&lt;/a&gt; from master to b2_5.  I am not sure about the failure on master, and it is not even about DNE because all of operations in sanityn 40a are being done under non-striped directory, not sure why it is related with 14495.&lt;/p&gt;</comment>
                            <comment id="119167" author="di.wang" created="Sat, 20 Jun 2015 00:13:04 +0000"  >&lt;p&gt;Just check the debug log, the failure seems caused by the test-script itself.&lt;/p&gt;

&lt;p&gt;On the client1, it mkdir $DIR1/$tfile&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;0000080:00200000:1.0:1432173251.411997:0:5365:0:(namei.c:1153:ll_mkdir()) VFS Op:name=f40a.sanityn, dir=[0x200000007:0x1:0x0](ffff88006b8c0a98)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;p&gt;on the server side, because of OBD_FAIL_MDS_PDO_LOCK, it will be scheduled timeout for 15 seconds. Note: during timeout, it actually holds the update lock of DIR1 (root)&lt;/p&gt;

&lt;p&gt;Then on client2, which will do touch  touch $DIR2/$tfile-2, first it will try to revalidate DIR2 &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/check.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;, usually client only requires LOOKUP lock for this revalidation.&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;00000002:00010000:0.0:1432173252.415097:0:5367:0:(mdc_locks.c:1148:mdc_intent_lock()) (name: ,[0x200000007:0x1:0x0]) in obj [0x200000007:0x1:0x0], intent: lookup flags 00
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But it seems on the MDT side, UPDATE lock is added back because of&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;                      /* If the file has not been changed for some time, we
                         * return not only a LOOKUP lock, but also an UPDATE
                         * lock and this might save us RPC on later STAT. For
                         * directories, it also let negative dentry cache start
                         * working for this dir. */
                        if (ma-&amp;gt;ma_valid &amp;amp; MA_INODE &amp;amp;&amp;amp;
                            ma-&amp;gt;ma_attr.la_valid &amp;amp; LA_CTIME &amp;amp;&amp;amp;
                            info-&amp;gt;mti_mdt-&amp;gt;mdt_namespace-&amp;gt;ns_ctime_age_limit +
                                ma-&amp;gt;ma_attr.la_ctime &amp;lt; cfs_time_current_sec())
                                child_bits |= MDS_INODELOCK_UPDATE;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But unfortunately, this is FID revalidate(no name in the request) so no PDO lock. then it will be blocked by the lock above (holded by client1 request handler).  &lt;/p&gt;

&lt;p&gt;Hmm, I guess we can just add &quot;touch $DIR2&quot; before client1 &quot;mkdir $IR1/$tfile&quot;, then this ctime_age_limit will not be triggered, i.e. UPDATE lock will not be required during revalidate /, the problem should be fixed.&lt;/p&gt;</comment>
                            <comment id="119187" author="gerrit" created="Sat, 20 Jun 2015 23:18:56 +0000"  >&lt;p&gt;wangdi (di.wang@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/15366&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15366&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6570&quot; title=&quot;sanityn test_40a: create is blocked&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6570&quot;&gt;&lt;del&gt;LU-6570&lt;/del&gt;&lt;/a&gt; tests: fix 40a in sanityn.sh&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 459bb83d92ddc50aa5caa71b629ba29e53266120&lt;/p&gt;</comment>
                            <comment id="120894" author="gerrit" created="Thu, 9 Jul 2015 21:45:08 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/15366/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15366/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6570&quot; title=&quot;sanityn test_40a: create is blocked&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6570&quot;&gt;&lt;del&gt;LU-6570&lt;/del&gt;&lt;/a&gt; tests: fix 40a in sanityn.sh&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 2083f8a34b556c9e64e09a4529df7d9bdbdd7532&lt;/p&gt;</comment>
                            <comment id="120898" author="pjones" created="Thu, 9 Jul 2015 21:53:17 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="30461">LU-6672</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </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|hzxclb:</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>