<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:51:18 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-5416] (ofd_objects.c:256:ofd_precreate_objects()) ASSERTION( nr &gt; 0 ) failed</title>
                <link>https://jira.whamcloud.com/browse/LU-5416</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In ofd_precreate_objects() if dt_declare_create() fails in the first loop iteration then the assertion that nr &amp;gt; 0 will fail.&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;        &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; (i = 0; i &amp;lt; nr; i++) {
                fo = batch[i];
                LASSERT(fo);

                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (unlikely(ofd_object_exists(fo))) {
                        &lt;span class=&quot;code-comment&quot;&gt;/* object may exist being re-created by write replay */&lt;/span&gt;
                        CDEBUG(D_INODE, &lt;span class=&quot;code-quote&quot;&gt;&quot;object &quot;&lt;/span&gt;LPX64&lt;span class=&quot;code-quote&quot;&gt;&quot;/&quot;&lt;/span&gt;LPX64&lt;span class=&quot;code-quote&quot;&gt;&quot; exists: &quot;&lt;/span&gt;
                               DFID&lt;span class=&quot;code-quote&quot;&gt;&quot;\n&quot;&lt;/span&gt;, ostid_seq(&amp;amp;oseq-&amp;gt;os_oi), id,
                               PFID(lu_object_fid(&amp;amp;fo-&amp;gt;ofo_obj.do_lu)));
                        &lt;span class=&quot;code-keyword&quot;&gt;continue&lt;/span&gt;;
                }

                next = ofd_object_child(fo);
                LASSERT(next != NULL);

                rc = dt_declare_create(env, next, &amp;amp;info-&amp;gt;fti_attr, NULL,
                                       &amp;amp;info-&amp;gt;fti_dof, th);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc) {
                        nr = i;
                        &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
                }
        }

        rc = dt_trans_start_local(env, ofd-&amp;gt;ofd_osd, th);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc)
                GOTO(trans_stop, rc);

        CDEBUG(D_OTHER, &lt;span class=&quot;code-quote&quot;&gt;&quot;%s: create &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; object &quot;&lt;/span&gt;DFID&lt;span class=&quot;code-quote&quot;&gt;&quot; nr %d\n&quot;&lt;/span&gt;,
               ofd_name(ofd), PFID(fid), nr);

        LASSERT(nr &amp;gt; 0);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;[62687.401108] LustreError: 28373:0:(ofd_objects.c:256:ofd_precreate_objects()) ASSERTION\
( nr &amp;gt; 0 ) failed:
[62687.404317] LustreError: 28373:0:(ofd_objects.c:256:ofd_precreate_objects()) LBUG
[62687.406798] Pid: 28373, comm: ll_ost01_007
[62687.407690]
[62687.407691] Call Trace:
[62687.408622]  [&amp;lt;ffffffffa0f068c5&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
[62687.410080]  [&amp;lt;ffffffffa0f06ec7&amp;gt;] lbug_with_loc+0x47/0xb0 [libcfs]
[62687.411414]  [&amp;lt;ffffffffa0c9322b&amp;gt;] ofd_precreate_objects+0x13fb/0x19c0 [ofd]
[62687.412881]  [&amp;lt;ffffffffa0c8d80e&amp;gt;] ? ofd_precreate_batch+0x2e/0x60 [ofd]
[62687.414264]  [&amp;lt;ffffffffa0c82024&amp;gt;] ofd_create_hdl+0x524/0x2400 [ofd]
[62687.415682]  [&amp;lt;ffffffffa0591952&amp;gt;] ? lustre_pack_reply_v2+0x232/0x2a0 [ptlrpc]
[62687.417219]  [&amp;lt;ffffffffa05f2445&amp;gt;] tgt_request_handle+0x245/0xad0 [ptlrpc]
[62687.418708]  [&amp;lt;ffffffffa05a2e01&amp;gt;] ptlrpc_main+0xce1/0x1960 [ptlrpc]
[62687.420057]  [&amp;lt;ffffffffa05a2120&amp;gt;] ? ptlrpc_main+0x0/0x1960 [ptlrpc]
[62687.421406]  [&amp;lt;ffffffff8109eab6&amp;gt;] kthread+0x96/0xa0
[62687.422451]  [&amp;lt;ffffffff8100c30a&amp;gt;] child_rip+0xa/0x20
[62687.423494]  [&amp;lt;ffffffff81554710&amp;gt;] ? _spin_unlock_irq+0x30/0x40
[62687.424698]  [&amp;lt;ffffffff8100bb10&amp;gt;] ? restore_args+0x0/0x30
[62687.425844]  [&amp;lt;ffffffff8109ea20&amp;gt;] ? kthread+0x0/0xa0
[62687.426921]  [&amp;lt;ffffffff8100c300&amp;gt;] ? child_rip+0x0/0x20
[62687.427987]
[62687.428673] Kernel panic - not syncing: LBUG
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This issue was found through DT API fault injection.&lt;/p&gt;</description>
                <environment></environment>
        <key id="25752">LU-5416</key>
            <summary>(ofd_objects.c:256:ofd_precreate_objects()) ASSERTION( nr &gt; 0 ) failed</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>fault</label>
                            <label>ofd</label>
                    </labels>
                <created>Fri, 25 Jul 2014 16:28:27 +0000</created>
                <updated>Thu, 14 Jun 2018 21:41:38 +0000</updated>
                            <resolved>Mon, 27 Apr 2015 20:40:11 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.7.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="90362" author="jhammond" created="Tue, 29 Jul 2014 19:20:16 +0000"  >&lt;p&gt;The second for loop in ofd_precreate_objects() has the same type of issue. If dt_create() fails in the first iteration then we get&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;Message from syslogd@q at Jul 29 14:11:34 ...
 kernel:[  835.526433] LustreError: 6084:0:(ofd_objects.c:406:ofd_precreate_objects()) ASSERTION( (!(objects == 0) || (rc &amp;lt; 0)) ) failed: 

Message from syslogd@q at Jul 29 14:11:34 ...
 kernel:[  835.529381] LustreError: 6084:0:(ofd_objects.c:406:ofd_precreate_objects()) LBUG
Write failed: Broken pipe
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="91089" author="jhammond" created="Thu, 7 Aug 2014 19:41:50 +0000"  >&lt;p&gt;Please see &lt;a href=&quot;http://review.whamcloud.com/11370&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11370&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="94820" author="jhammond" created="Wed, 24 Sep 2014 13:21:26 +0000"  >&lt;p&gt;Patch landed to master.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </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|hzwsbz:</customfieldvalue>

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