<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:17: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-8411] Fix Lustre filesystem corruption when updating journal superblock fails</title>
                <link>https://jira.whamcloud.com/browse/LU-8411</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;During validation of issue we encountered another data corruption. It looks like the corruption occurred because the external journal went offline but the filesystem processed the transaction as if successful.&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;Jun  9 08:33:41 cslcodev912 kernel: JBD2: I/O error detected when updating journal superblock &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; md129.
Buffer I/O error on device md0, logical block 0
&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;commit 6f6a6fda294506dfe0e3e0a253bb2d2923f28f0a
Author: Joseph Qi &amp;lt;joseph.qi@huawei.com&amp;gt;
Date:   Mon Jun 15 14:36:01 2015 -0400

jbd2: fix ocfs2 corrupt when updating journal superblock fails
    
If updating journal superblock fails after journal data has been
flushed, the error is omitted and &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; will mislead the caller as a
normal &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt;.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This directly addressed reported issue.&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;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;6f6a6fda294506dfe0e3e0a253bb2d2923f28f0a&lt;br/&gt;
Author: Joseph Qi &amp;lt;joseph.qi@huawei.com&amp;gt;&lt;br/&gt;
Date:   Mon Jun 15 14:36:01 2015 -0400&lt;/p&gt;

&lt;p&gt;jbd2: fix ocfs2 corrupt when updating journal superblock fails&lt;/p&gt;

&lt;p&gt;If updating journal superblock fails after journal data has been&lt;br/&gt;
flushed, the error is omitted and this will mislead the caller as a&lt;br/&gt;
normal case.  In ocfs2, the checkpoint will be treated successfully&lt;br/&gt;
and the other node can get the lock to update. Since the sb_start is&lt;br/&gt;
still pointing to the old log block, it will rewrite the journal data&lt;br/&gt;
during journal recovery by the other node. Thus the new updates will&lt;br/&gt;
be overwritten and ocfs2 corrupts.  So in above case we have to return&lt;br/&gt;
the error, and ocfs2_commit_cache will take care of the error and&lt;br/&gt;
prevent the other node to do update first.  And only after recovering&lt;br/&gt;
journal it can do the new updates.&lt;/p&gt;

&lt;p&gt;The issue discussion mail can be found at:&lt;br/&gt;
&lt;a href=&quot;https://oss.oracle.com/pipermail/ocfs2-devel/2015-June/010856.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://oss.oracle.com/pipermail/ocfs2-devel/2015-June/010856.html&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://comments.gmane.org/gmane.comp.file-systems.ext4/48841&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://comments.gmane.org/gmane.comp.file-systems.ext4/48841&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[Fixed bug in patch which allowed a non-negative error return from&lt;br/&gt;
jbd2_cleanup_journal_tail() to leak out of jbd2_fjournal_flush(); this&lt;br/&gt;
was causing xfstests ext4/306 to fail. &amp;#8211; Ted ]&lt;/p&gt;</description>
                <environment></environment>
        <key id="38235">LU-8411</key>
            <summary>Fix Lustre filesystem corruption when updating journal superblock fails</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="wc-triage">WC Triage</assignee>
                                    <reporter username="artem_blagodarenko">Artem Blagodarenko</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Mon, 18 Jul 2016 11:15:43 +0000</created>
                <updated>Mon, 26 Aug 2019 22:05:31 +0000</updated>
                            <resolved>Tue, 31 Jan 2017 04:50:02 +0000</resolved>
                                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="159083" author="gerrit" created="Mon, 18 Jul 2016 14:33:52 +0000"  >&lt;p&gt;Artem Blagodarenko (artem.blagodarenko@seagate.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/21398&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/21398&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8411&quot; title=&quot;Fix Lustre filesystem corruption when updating journal superblock fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8411&quot;&gt;&lt;del&gt;LU-8411&lt;/del&gt;&lt;/a&gt; ofd: handle last_rcvd file can&apos;t update properly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: aec39022f7c0d39c7c633b9ce52a59d6e3012c82&lt;/p&gt;</comment>
                            <comment id="182692" author="gerrit" created="Tue, 31 Jan 2017 04:07:15 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/21398/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/21398/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8411&quot; title=&quot;Fix Lustre filesystem corruption when updating journal superblock fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8411&quot;&gt;&lt;del&gt;LU-8411&lt;/del&gt;&lt;/a&gt; ofd: handle last_rcvd file can&apos;t update properly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 6a81ffa1e9e44231d812e331c73cfa9df67746ed&lt;/p&gt;</comment>
                            <comment id="182711" author="pjones" created="Tue, 31 Jan 2017 04:50:02 +0000"  >&lt;p&gt;Landed for 2.10&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="56763">LU-12700</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="43915">LU-9135</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|hzyhpz:</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>