<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:37:45 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-10738] mdd: LBUG() from changelog_store_data_by_fid</title>
                <link>https://jira.whamcloud.com/browse/LU-10738</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When running sanity-hsm test_26d on Maloo with &lt;a href=&quot;https://review.whamcloud.com/#/c/30098/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this patch&lt;/a&gt; applied, the MDS hits an LBUG(). This looks a lot like &lt;del&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10454&quot; title=&quot;mdd: NULL pointer dereference in mdd_changelog_data_store_by_fid()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10454&quot;&gt;&lt;del&gt;LU-10454&lt;/del&gt;&lt;/a&gt;&lt;/del&gt;: &lt;tt&gt;mdd_changelog_store_data_by_fid()&lt;/tt&gt; tries to access some structure that is not available anymore due to a recent client eviction.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://testing.hpdd.intel.com/test_sessions/8ca57d5a-794f-48fc-ae96-b3c124c7ea0d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Here&lt;/a&gt; is a test instance that triggers the bug (&lt;a href=&quot;https://testing.hpdd.intel.com/test_logs/dc6fdd46-1c66-11e8-bd00-52540065bddc/show_text&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mds log file&lt;/a&gt;). Here is the important part:&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;[ 2604.113084] Lustre: DEBUG MARKER: /usr/sbin/lctl set_param -n mdt.lustre-MDT0000.evict_client 16a29cf5-5198-cefe-15d1-1c432b2ce629
[ 2604.264461] Lustre: 3825:0:(genops.c:1759:obd_export_evict_by_uuid()) lustre-MDT0000: evicting 16a29cf5-5198-cefe-15d1-1c432b2ce629 at adminstrative request
[ 2604.269447] Lustre: 3825:0:(osd_internal.h:1139:osd_trans_exec_op()) lustre-MDT0000: opcode 7: credits = 0, rollback = 7
[ 2604.272240] Lustre: 3825:0:(osd_handler.c:1723:osd_trans_dump_creds())   create: 0/0/0, destroy: 0/0/0
[ 2604.274895] Lustre: 3825:0:(osd_handler.c:1730:osd_trans_dump_creds())   attr_set: 0/0/0, xattr_set: 1/89/0
[ 2604.277555] Lustre: 3825:0:(osd_handler.c:1740:osd_trans_dump_creds())   write: 0/0/0, punch: 0/0/0, quota 0/0/0
[ 2604.280293] Lustre: 3825:0:(osd_handler.c:1747:osd_trans_dump_creds())   insert: 0/0/0, delete: 0/0/0
[ 2604.282859] Lustre: 3825:0:(osd_handler.c:1754:osd_trans_dump_creds())   ref_add: 0/0/0, ref_del: 0/0/0
[ 2604.285402] LustreError: 3825:0:(osd_internal.h:1141:osd_trans_exec_op()) ASSERTION( !ldiskfs_track_declares_assert ) failed: 
[ 2604.289787] LustreError: 3825:0:(osd_internal.h:1141:osd_trans_exec_op()) LBUG
[ 2604.292129] Pid: 3825, comm: lctl
[ 2604.294136] 
[ 2604.294136] Call Trace:
[ 2604.297725]  [&amp;lt;ffffffffc068d7ae&amp;gt;] libcfs_call_trace+0x4e/0x60 [libcfs]
[ 2604.299849]  [&amp;lt;ffffffffc068d83c&amp;gt;] lbug_with_loc+0x4c/0xb0 [libcfs]
[ 2604.301974]  [&amp;lt;ffffffffc0d54df1&amp;gt;] osd_write+0x5a1/0x5b0 [osd_ldiskfs]
[ 2604.304053]  [&amp;lt;ffffffffc08c74e9&amp;gt;] dt_record_write+0x39/0x120 [obdclass]
[ 2604.306141]  [&amp;lt;ffffffffc0888697&amp;gt;] llog_osd_write_rec+0xbf7/0x1460 [obdclass]
[ 2604.308201]  [&amp;lt;ffffffffc087b3d9&amp;gt;] llog_write_rec+0xc9/0x520 [obdclass]
[ 2604.310265]  [&amp;lt;ffffffffc0880370&amp;gt;] llog_cat_add_rec+0x220/0x8b0 [obdclass]
[ 2604.312289]  [&amp;lt;ffffffffc08784fa&amp;gt;] llog_add+0x7a/0x1a0 [obdclass]
[ 2604.314286]  [&amp;lt;ffffffff810ec7ba&amp;gt;] ? __getnstimeofday64+0x3a/0xd0
[ 2604.316248]  [&amp;lt;ffffffffc1055b22&amp;gt;] mdd_changelog_store+0x1a2/0x5f0 [mdd]
[ 2604.318314]  [&amp;lt;ffffffffc1063f8e&amp;gt;] mdd_changelog_data_store_by_fid+0x1ae/0x320 [mdd]
[ 2604.320430]  [&amp;lt;ffffffffc1064564&amp;gt;] mdd_changelog_data_store_xattr+0x104/0x230 [mdd]
[ 2604.322589]  [&amp;lt;ffffffffc106c17e&amp;gt;] mdd_xattr_set+0x95e/0x17f0 [mdd]
[ 2604.324613]  [&amp;lt;ffffffffc0f12532&amp;gt;] mdt_hsm_attr_set+0xa2/0x230 [mdt]
[ 2604.326673]  [&amp;lt;ffffffffc0efc5b1&amp;gt;] mdt_add_dirty_flag+0x1d1/0x250 [mdt]
[ 2604.328694]  [&amp;lt;ffffffffc0ed0e3d&amp;gt;] mdt_ctxt_add_dirty_flag.isra.70+0xdd/0x1a0 [mdt]
[ 2604.330870]  [&amp;lt;ffffffffc0ed3618&amp;gt;] mdt_obd_disconnect+0x3c8/0x670 [mdt]
[ 2604.332913]  [&amp;lt;ffffffffc08986a9&amp;gt;] class_fail_export+0x279/0x580 [obdclass]
[ 2604.334988]  [&amp;lt;ffffffffc089b72f&amp;gt;] obd_export_evict_by_uuid+0x12f/0x220 [obdclass]
[ 2604.337030]  [&amp;lt;ffffffff8118483b&amp;gt;] ? unlock_page+0x2b/0x30
[ 2604.338946]  [&amp;lt;ffffffffc08de96f&amp;gt;] lprocfs_evict_client_seq_write+0x1cf/0x290 [obdclass]
[ 2604.340974]  [&amp;lt;ffffffffc0f0f086&amp;gt;] mdt_mds_evict_client_write+0x416/0x6a0 [mdt]
[ 2604.342948]  [&amp;lt;ffffffff8127267d&amp;gt;] proc_reg_write+0x3d/0x80
[ 2604.344734]  [&amp;lt;ffffffff81202ced&amp;gt;] vfs_write+0xbd/0x1e0
[ 2604.346467]  [&amp;lt;ffffffff81203aff&amp;gt;] SyS_write+0x7f/0xe0
[ 2604.348143]  [&amp;lt;ffffffff816b8929&amp;gt;] ? system_call_after_swapgs+0x156/0x214
[ 2604.349917]  [&amp;lt;ffffffff816b89fd&amp;gt;] system_call_fastpath+0x16/0x1b
[ 2604.351609]  [&amp;lt;ffffffff816b889d&amp;gt;] ? system_call_after_swapgs+0xca/0x214

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="51029">LU-10738</key>
            <summary>mdd: LBUG() from changelog_store_data_by_fid</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="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="sbuisson">Sebastien Buisson</assignee>
                                    <reporter username="cealustre">CEA</reporter>
                        <labels>
                    </labels>
                <created>Wed, 28 Feb 2018 12:30:48 +0000</created>
                <updated>Wed, 5 Aug 2020 13:50:23 +0000</updated>
                            <resolved>Fri, 9 Mar 2018 13:32:23 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="221908" author="pjones" created="Wed, 28 Feb 2018 13:47:28 +0000"  >&lt;p&gt;IIUC Sebastien is investigating whether this is due to one of his patches from &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9727&quot; title=&quot;Lustre Audit with Changelogs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9727&quot;&gt;&lt;del&gt;LU-9727&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="221917" author="jhammond" created="Wed, 28 Feb 2018 14:49:02 +0000"  >&lt;p&gt;We check &lt;tt&gt;recording_changelog(env, mdd)&lt;/tt&gt; in &lt;tt&gt;mdd_declare_changelog_store()&lt;/tt&gt; but not in &lt;tt&gt;mdd_changelog_data_store_xattr()&lt;/tt&gt; or any of its callees.&lt;/p&gt;</comment>
                            <comment id="221922" author="jhammond" created="Wed, 28 Feb 2018 15:03:05 +0000"  >&lt;p&gt;Should we call &lt;tt&gt;hsm_init_ucred()&lt;/tt&gt; in &lt;tt&gt;mdt_export_cleanup()&lt;/tt&gt; as well?&lt;/p&gt;</comment>
                            <comment id="221934" author="sbuisson" created="Wed, 28 Feb 2018 16:27:54 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;It looks like recording_changelog(env, mdd) should be called instead of directly checking (mdd-&amp;gt;mdd_cl.mc_flags &amp;amp; CLM_ON) in every function. I have pushed patch &lt;a href=&quot;https://review.whamcloud.com/31456&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31456&lt;/a&gt; to address this.&lt;/p&gt;

&lt;p&gt;Not sure if it helps with this bug, as I am not able to reproduce the issue on my test system so far (although I am using a setup with 2 MDTs and 3 clients).&lt;/p&gt;</comment>
                            <comment id="222066" author="jhammond" created="Thu, 1 Mar 2018 16:01:26 +0000"  >&lt;p&gt;Note that Sebastien&apos;s patch uses &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9727&quot; title=&quot;Lustre Audit with Changelogs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9727&quot;&gt;&lt;del&gt;LU-9727&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="222125" author="bougetq" created="Fri, 2 Mar 2018 10:37:00 +0000"  >&lt;p&gt;I rebased my patch on top of Sebastien&apos;s fix and test_26d now passes on Maloo (twice in a row).&lt;/p&gt;</comment>
                            <comment id="222960" author="pjones" created="Fri, 9 Mar 2018 13:32:23 +0000"  >&lt;p&gt;So if I understand correctly this ticket is essentially a duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9727&quot; title=&quot;Lustre Audit with Changelogs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9727&quot;&gt;&lt;del&gt;LU-9727&lt;/del&gt;&lt;/a&gt; (or at least it is now fixed by the completion of that work)&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="46984">LU-9727</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="51063">LU-10750</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|hzzthb:</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>