<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:47:03 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-4926] sanity-scrub: Failed to copy files to mds2, Bad file descriptor</title>
                <link>https://jira.whamcloud.com/browse/LU-4926</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for nasf &amp;lt;fan.yong@intel.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run: &lt;a href=&quot;http://maloo.whamcloud.com/test_sets/cb28be52-c631-11e3-874b-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://maloo.whamcloud.com/test_sets/cb28be52-c631-11e3-874b-52540035b04c&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The sub-test test_5 failed with the following error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Failed to copy files to mds2&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Info required for matching: sanity-scrub 5&lt;/p&gt;

&lt;p&gt;Under a new formatted DNE environment, when copy file from local system to MDS2, it hit the failure of &quot;Bad file descriptor&quot;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="24281">LU-4926</key>
            <summary>sanity-scrub: Failed to copy files to mds2, Bad file descriptor</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="3">Duplicate</resolution>
                                        <assignee username="yong.fan">nasf</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Apr 2014 23:45:23 +0000</created>
                <updated>Wed, 4 Jun 2014 23:15:40 +0000</updated>
                            <resolved>Tue, 22 Apr 2014 07:10:45 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="81907" author="yong.fan" created="Fri, 18 Apr 2014 02:25:48 +0000"  >&lt;p&gt;The attachment is the log for another failure instance. Seems related with CLIO.&lt;/p&gt;

&lt;p&gt;Jinshan, can you please give some check? Thanks.&lt;/p&gt;</comment>
                            <comment id="82065" author="adilger" created="Mon, 21 Apr 2014 17:24:19 +0000"  >&lt;p&gt;Nasf, are you able to reproduce this with manual testing? What steps do you take?  It seems serious that a file cannot be copied to a new filesystem. Is there something that the test scripts are doing that might be hiding this bug from us?&lt;/p&gt;</comment>
                            <comment id="82107" author="yong.fan" created="Mon, 21 Apr 2014 22:59:35 +0000"  >&lt;p&gt;I can reproduce it by run sanity-scrub.sh with DNE enabled, but cannot reproduced it manually yet. I will investigate it more.&lt;/p&gt;</comment>
                            <comment id="82124" author="yong.fan" created="Tue, 22 Apr 2014 07:09:56 +0000"  >&lt;p&gt;The reason for the copy failure is that the mdc_intent_lock() does not fetch the LOV EA for the new created file, then its caller will call ll_prep_inode() to prepare the local object with empty stripe, and then the subsequent write operations with empty LOV EA will be regarded as invalid.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;00000004:00000001:0.0:1395927909.641540:0:27857:0:(mdt_handler.c:750:mdt_getattr_internal()) &lt;span class=&quot;code-object&quot;&gt;Process&lt;/span&gt; entered
00000004:00000040:0.0:1395927909.641540:0:27857:0:(mdt_handler.c:780:mdt_getattr_internal()) lustre-MDT0001: RPC from acaf5fbc-81d0-3a35-8cbb-3c2d460ad809: does not need LOVEA.
...
00000080:00000001:1.0:1395927909.641917:0:27983:0:(dcache.c:317:ll_revalidate_it_finish()) &lt;span class=&quot;code-object&quot;&gt;Process&lt;/span&gt; entered
00000080:00000001:1.0:1395927909.641918:0:27983:0:(llite_lib.c:2411:ll_prep_inode()) &lt;span class=&quot;code-object&quot;&gt;Process&lt;/span&gt; entered
...
00020000:00000002:1.0:1395927909.641948:0:27983:0:(lov_object.c:722:lov_layout_change()) [0x2c0002340:0x4f:0x0] from RAID0 to EMPTY
...
00000080:00000001:1.0:1395927909.642709:0:27983:0:(file.c:1355:ll_file_write()) &lt;span class=&quot;code-object&quot;&gt;Process&lt;/span&gt; entered
00020000:00000001:1.0:1395927909.642730:0:27983:0:(lov_io.c:909:lov_io_init_empty()) &lt;span class=&quot;code-object&quot;&gt;Process&lt;/span&gt; entered
00020000:00000001:1.0:1395927909.642730:0:27983:0:(lov_io.c:938:lov_io_init_empty()) &lt;span class=&quot;code-object&quot;&gt;Process&lt;/span&gt; leaving (rc=1 : 1 : 1)
00000020:00000001:1.0:1395927909.642731:0:27983:0:(cl_io.c:179:cl_io_init0()) &lt;span class=&quot;code-object&quot;&gt;Process&lt;/span&gt; leaving (rc=1 : 1 : 1)
00000020:00000001:1.0:1395927909.642731:0:27983:0:(cl_io.c:240:cl_io_rw_init()) &lt;span class=&quot;code-object&quot;&gt;Process&lt;/span&gt; leaving (rc=1 : 1 : 1)
00000080:00000001:1.0:1395927909.642732:0:27983:0:(file.c:1189:ll_file_io_generic()) &lt;span class=&quot;code-object&quot;&gt;Process&lt;/span&gt; leaving via out (rc=18446744073709551607 : -9 : 0xfffffffffffffff7)
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; lov_io_init_empty(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env, struct cl_object *obj,
                      struct cl_io *io)
{
        struct lov_object *lov = cl2lov(obj);
        struct lov_io *lio = lov_env_io(env);
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; result;
        ENTRY;

        lio-&amp;gt;lis_object = lov;
        &lt;span class=&quot;code-keyword&quot;&gt;switch&lt;/span&gt; (io-&amp;gt;ci_type) {
        &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;:
                LBUG();
        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; CIT_MISC:
        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; CIT_READ:
                result = 0;
                &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; CIT_FSYNC:
        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; CIT_SETATTR:
                result = +1;
                &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; CIT_WRITE:
                result = -EBADF;
                &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; CIT_FAULT:
                result = -EFAULT;
                CERROR(&lt;span class=&quot;code-quote&quot;&gt;&quot;Page fault on a file without stripes: &quot;&lt;/span&gt;DFID&lt;span class=&quot;code-quote&quot;&gt;&quot;\n&quot;&lt;/span&gt;,
                       PFID(lu_object_fid(&amp;amp;obj-&amp;gt;co_lu)));
                &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
        }
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (result == 0) {
                cl_io_slice_add(io, &amp;amp;lio-&amp;gt;lis_cl, obj, &amp;amp;lov_empty_io_ops);
                cfs_atomic_inc(&amp;amp;lov-&amp;gt;lo_active_ios);
        }

        io-&amp;gt;ci_result = result &amp;lt; 0 ? result : 0;
        RETURN(result != 0);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In fact, such issue has been resolved by the patch &lt;a href=&quot;http://review.whamcloud.com/#/c/9862/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/9862/&lt;/a&gt;. I have repeatedly run sanity-scrub with such patch applied, and cannot reproduce the issue any longer.&lt;/p&gt;</comment>
                            <comment id="82125" author="yong.fan" created="Tue, 22 Apr 2014 07:10:45 +0000"  >&lt;p&gt;It is another failure instance of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4847&quot; title=&quot;cl_default_mds_easize might be 0 in mdc_intent_getattr_pack&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4847&quot;&gt;&lt;del&gt;LU-4847&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="14733" name="sanity-scrub_1b.log" size="3185667" author="yong.fan" created="Fri, 18 Apr 2014 02:24:28 +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|hzwki7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>13616</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>