<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:46:38 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-4877] mdt_fix_reply()) ASSERTION( md_packed &gt; 0 ) failed</title>
                <link>https://jira.whamcloud.com/browse/LU-4877</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I see this running racer on 2.5.57-72-g69ddb2e. I used MDSCOUNT=6 and modified file_create.sh to do less IO by setting SIZE=$((RANDOM % 4)).&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;LustreError: 14686:0:(mdt_reint.c:1446:mdt_reint_migrate_internal()) lustre-MDT0003: can n
ot migrate striped dir [0x340000401:0xf:0x0]: rc = -1
LustreError: 14686:0:(mdt_lib.c:633:mdt_fix_reply()) ASSERTION( md_packed &amp;gt; 0 ) failed: 
LustreError: 14686:0:(mdt_lib.c:633:mdt_fix_reply()) LBUG
Pid: 14686, comm: mdt01_001

Call Trace:
 [&amp;lt;ffffffffa02a9895&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
 [&amp;lt;ffffffffa02a9e97&amp;gt;] lbug_with_loc+0x47/0xb0 [libcfs]
 [&amp;lt;ffffffffa0c15630&amp;gt;] mdt_fix_reply+0x5d0/0x6a0 [mdt]
 [&amp;lt;ffffffffa0bfee98&amp;gt;] mdt_reint_internal+0x548/0x7c0 [mdt]
 [&amp;lt;ffffffffa0bff69b&amp;gt;] mdt_reint+0x6b/0x120 [mdt]
 [&amp;lt;ffffffffa06e39ac&amp;gt;] tgt_request_handle+0x23c/0xac0 [ptlrpc]
 [&amp;lt;ffffffffa069298a&amp;gt;] ptlrpc_main+0xd1a/0x1980 [ptlrpc]
 [&amp;lt;ffffffffa0691c70&amp;gt;] ? ptlrpc_main+0x0/0x1980 [ptlrpc]
 [&amp;lt;ffffffff81096a36&amp;gt;] kthread+0x96/0xa0
 [&amp;lt;ffffffff8100c0ca&amp;gt;] child_rip+0xa/0x20
 [&amp;lt;ffffffff810969a0&amp;gt;] ? kthread+0x0/0xa0
 [&amp;lt;ffffffff8100c0c0&amp;gt;] ? child_rip+0x0/0x20
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="24148">LU-4877</key>
            <summary>mdt_fix_reply()) ASSERTION( md_packed &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="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="tappro">Mikhail Pershin</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>dne2</label>
                            <label>migration</label>
                    </labels>
                <created>Thu, 10 Apr 2014 13:34:41 +0000</created>
                <updated>Wed, 30 Jul 2014 17:44:38 +0000</updated>
                            <resolved>Thu, 15 May 2014 13:19:48 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.2</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="81456" author="tappro" created="Fri, 11 Apr 2014 21:17:10 +0000"  >&lt;p&gt;this new mdt_reint_migrate_internal() function calls mdt_stripe_get() which may use big buffer for xattrs. Meanwhile there is logic behind that &apos;big buffer&apos; usage which is used to determine the reply size. Each time we are using big buffer and it is not to be returned ti the client, we need to mark that by dropping mti_big_lmm_used flag. Look at the end of mdt_reint_unlink() function which handles the same case. &lt;/p&gt;

&lt;p&gt;The fix could be the same, just dropping the mti_big_lmm_used to the 0 after using big buffer. At the time such hidden logic is bad practice and we need to introduce some clear way to solve this. Probably, that assertion on md_packed in mdt_fix_reply() should be replaced with check and indicate that big buffer is not needed in reply because no buffer was packed at all.&lt;/p&gt;</comment>
                            <comment id="82652" author="adilger" created="Mon, 28 Apr 2014 17:56:51 +0000"  >&lt;p&gt;Mike, any progress on making a patch for this?&lt;/p&gt;</comment>
                            <comment id="82722" author="tappro" created="Tue, 29 Apr 2014 07:24:38 +0000"  >&lt;p&gt;patch is ready, I forgot to paste link here - &lt;a href=&quot;http://review.whamcloud.com/10116&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10116&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="84163" author="jlevi" created="Thu, 15 May 2014 13:19:48 +0000"  >&lt;p&gt;Patch landed to Master. Please reopen ticket if more work is needed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="25805">LU-5429</issuekey>
        </issuelink>
                            </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|hzwjqf:</customfieldvalue>

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