<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:12:36 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-14765] sanity-flr test_44c: mirror split does not reduce block#</title>
                <link>https://jira.whamcloud.com/browse/LU-14765</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for S Buisson &amp;lt;sbuisson@ddn.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run: &lt;a href=&quot;https://testing.whamcloud.com/test_sets/8d692dc1-910c-4ee7-baf0-21734795ed81&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/8d692dc1-910c-4ee7-baf0-21734795ed81&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;test_44c failed with the following error:&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;mirror split does not reduce block# 10485760 != 4194304
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;sanity-flr test_44c seems buggy. It starts by writing 10MB, but it reports a file size of 4MB:&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;** before mirror ops, file blocks=4096 KiB
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;






&lt;p&gt;VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV&lt;br/&gt;
sanity-flr test_44c - mirror split does not reduce block# 10485760 != 4194304&lt;/p&gt;</description>
                <environment></environment>
        <key id="64670">LU-14765</key>
            <summary>sanity-flr test_44c: mirror split does not reduce block#</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                            <label>always_except</label>
                    </labels>
                <created>Wed, 16 Jun 2021 06:07:21 +0000</created>
                <updated>Fri, 14 Apr 2023 23:57:44 +0000</updated>
                                            <version>Lustre 2.15.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>10</watches>
                                                                            <comments>
                            <comment id="305412" author="adilger" created="Thu, 24 Jun 2021 15:01:16 +0000"  >&lt;p&gt;Test was added by patch &lt;a href=&quot;https://review.whamcloud.com/43168&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43168&lt;/a&gt;&#160;&quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14526&quot; title=&quot;SoM xattr not updated after mirror split&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14526&quot;&gt;&lt;del&gt;LU-14526&lt;/del&gt;&lt;/a&gt; flr: mirror split downgrade SOM&lt;/tt&gt;&quot;. &#160;&lt;/p&gt;



&lt;p&gt;maybe a short sleep is needed before fetching the first attributes?&lt;/p&gt;</comment>
                            <comment id="305414" author="adilger" created="Thu, 24 Jun 2021 15:01:52 +0000"  >&lt;p&gt;Bobijam, can you please take a look.&#160;&lt;/p&gt;</comment>
                            <comment id="305494" author="gerrit" created="Fri, 25 Jun 2021 06:09:30 +0000"  >&lt;p&gt;Bobi Jam (bobijam@hotmail.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/44074&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44074&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14765&quot; title=&quot;sanity-flr test_44c: mirror split does not reduce block#&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14765&quot;&gt;LU-14765&lt;/a&gt; test: sanity-flr/44c sleep before collect block size&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 93808f4e4c682db5727f392ff477aff82ca6d7e3&lt;/p&gt;</comment>
                            <comment id="320857" author="vsaveliev" created="Tue, 14 Dec 2021 15:20:50 +0000"  >&lt;p&gt;+1 on master&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/94e73271-fa7a-495a-9352-5fab56b49dd0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/94e73271-fa7a-495a-9352-5fab56b49dd0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="322000" author="adilger" created="Thu, 6 Jan 2022 23:33:23 +0000"  >&lt;p&gt;+2 on master:&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/3f1b28ed-a2fe-4493-a883-b3c6130b1031&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/3f1b28ed-a2fe-4493-a883-b3c6130b1031&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/8be2ef78-5e26-49d7-8a4a-22a5c4b1fa02&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/8be2ef78-5e26-49d7-8a4a-22a5c4b1fa02&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="323924" author="qian_wc" created="Wed, 26 Jan 2022 02:03:45 +0000"  >&lt;p&gt;+1&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sessions/7669955f-7036-4df9-8551-5fd23a70d5c6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sessions/7669955f-7036-4df9-8551-5fd23a70d5c6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="327954" author="bobijam" created="Thu, 3 Mar 2022 07:50:28 +0000"  >&lt;p&gt;The block number of a mirrored file cannot be accurate IMO, since getattr of the file only retrieve info from the OST objects of one mirror, not including those of another mirrors.&#160;&lt;/p&gt;

&lt;p&gt;And mirror extend can only add block numbers of one mirror upon the already inaccurate block numbers of the file; and if multiple mirror extension is executed by &quot;-N &amp;lt;# of mirrors&amp;gt;&quot; option, the situation is exacerbated.&lt;/p&gt;

&lt;p&gt;So I&apos;m wondering whether we need to keep the semantic meaning of block # in a mirrored file.&lt;/p&gt;</comment>
                            <comment id="328006" author="adilger" created="Thu, 3 Mar 2022 18:15:19 +0000"  >&lt;p&gt;Shouldn&apos;t &quot;stat&quot; be using the blocks in the SOM xattr, and that should be kept correct?  I would rather ensure this kept updated for the few times that the SOM is put in &quot;strict&quot; mode, so that incremental mirror addition is also correct.&lt;/p&gt;

&lt;p&gt;For this test, it might make sense to have it &lt;b&gt;only&lt;/b&gt; use &quot;&lt;tt&gt;lfs getsom -b&lt;/tt&gt;&quot; to verify the SOM data directly.  In order for that to work, I also think that the &lt;tt&gt;trusted.som&lt;/tt&gt; xattr never be cached on the client.&lt;/p&gt;</comment>
                            <comment id="328385" author="bobijam" created="Tue, 8 Mar 2022 09:53:18 +0000"  >&lt;p&gt;I don&apos;t see that the inode&apos;s block number (the number reported by &quot;stat&quot;) corresponds to the SOM block number after several mirror extend calls, even SOM is in &quot;strict&quot; mode.  Updated SOM is not always passed back and translated to inode&apos;s block number. &lt;/p&gt;</comment>
                            <comment id="328433" author="adilger" created="Tue, 8 Mar 2022 18:23:22 +0000"  >&lt;p&gt;i would think that when SOM sets the STRICT flag that all client writes are complete and committed, so the blocks could &lt;em&gt;should&lt;/em&gt; be correct at this time?  Alternately, should we allow the SOM blocks count to be increased from later client RPCs, like LSOM does, so that the &lt;em&gt;size&lt;/em&gt; is correct/strict and the blocks at least get &quot;more correct&quot; over time?&lt;/p&gt;</comment>
                            <comment id="328535" author="bobijam" created="Wed, 9 Mar 2022 10:17:17 +0000"  >&lt;p&gt;yes, write do account correct block number changes, but a file with multiple mirrors will mess the block number base (so I&apos;m thinking even mirror extend need to invalidate the block number in SOM).&#160;&lt;/p&gt;

&lt;p&gt;And its block number cannot be correct until it is split to remain only one mirror.&lt;/p&gt;</comment>
                            <comment id="328707" author="adilger" created="Thu, 10 Mar 2022 05:49:22 +0000"  >&lt;p&gt;Bobijam, is there something unusual with how the SOM blocks count is updated?  I&apos;d think that it is just using the sum of the blocks counts for all mirror objects at the time the file is closed.  If some of the mirrors are stale, then blocks count may not be totally accurate, but after &quot;&lt;tt&gt;lfs mirror resync&lt;/tt&gt;&quot; the client doing the resync should be totally uptodate and can send this to the MDS.&lt;/p&gt;</comment>
                            <comment id="329114" author="artem_blagodarenko" created="Mon, 14 Mar 2022 11:35:53 +0000"  >&lt;p&gt;+1 on master&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/950a96fc-10c7-41a8-b7d2-a8b14834b02b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/950a96fc-10c7-41a8-b7d2-a8b14834b02b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="329567" author="bobijam" created="Fri, 18 Mar 2022 07:38:38 +0000"  >&lt;blockquote&gt;&lt;p&gt;Bobijam, is there something unusual with how the SOM blocks count is updated? I&apos;d think that it is just using the sum of the blocks counts for all mirror objects at the time the file is closed. If some of the mirrors are stale, then blocks count may not be totally accurate, but after &quot;lfs mirror resync&quot; the client doing the resync should be totally uptodate and can send this to the MDS.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The initial issues raised is that &apos;stat&apos; does not show file blocks number increase after it has extra mirror merged.&lt;/p&gt;

&lt;p&gt;If one mirror is added, supposed that SOM is strict and it reflects all blocks of the file, then we can account the blocks number accurately after the merge; if the SOM is not strict, then after the merge the SOM is still not accurate, then &apos;stat&apos; need to rely on glimpse size to collect the file&apos;s blocks number, but glimpse would only choose one mirror to calculate blocks number for one mirror, and the result blocks number would not be bigger than that of the pre-mirror-extended file.&lt;/p&gt;

&lt;p&gt;The similar scenarios also happens on mirror split, if SOM is not accurate on the file&apos;s blocks number before the mirror operation, the blocks number would not be showed to be decreased after the mirror split as well.&lt;/p&gt;</comment>
                            <comment id="332933" author="emoly.liu" created="Tue, 26 Apr 2022 01:51:03 +0000"  >&lt;p&gt;+1 on master:&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/3d97f947-b99d-4316-9b42-6f2502a96613&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/3d97f947-b99d-4316-9b42-6f2502a96613&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="334863" author="nangelinas" created="Fri, 13 May 2022 22:25:03 +0000"  >&lt;p&gt;+1 on master: &lt;a href=&quot;https://testing.whamcloud.com/test_sets/d5df04c7-cfe9-4a8e-99a9-e7b2beb3f55b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/d5df04c7-cfe9-4a8e-99a9-e7b2beb3f55b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="335437" author="gerrit" created="Wed, 18 May 2022 20:31:17 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/44074/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44074/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14765&quot; title=&quot;sanity-flr test_44c: mirror split does not reduce block#&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14765&quot;&gt;LU-14765&lt;/a&gt; test: disable sanity-flr/44c&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a45fe93cd8d1e941d58e0f11e21649e1956ba2c7&lt;/p&gt;</comment>
                            <comment id="365403" author="adilger" created="Thu, 9 Mar 2023 18:04:51 +0000"  >&lt;p&gt;This is causing user-visible issues in the field, since &quot;du&quot; with STRICT SOM reports block numbers that are too large after the mirror has been split from the file. There was some work in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14526&quot; title=&quot;SoM xattr not updated after mirror split&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14526&quot;&gt;&lt;del&gt;LU-14526&lt;/del&gt;&lt;/a&gt; to reset the blocks count for SOM files on split, but for STRICT SOM the values should actually be correct, since they are returned to userspace as authoritative values. &lt;/p&gt;

&lt;p&gt;Rather than have the client do an extra &quot;stat&quot; of all mirrors on each close (which is expensive and mostly useless), I think the right answer is that this extra stat is only needed when doing the mirror split operation.  That will ensure the right values are stored in the STRICT SOM, without adding overhead to the very common close operation. &lt;/p&gt;</comment>
                            <comment id="366080" author="gerrit" created="Thu, 16 Mar 2023 04:16:31 +0000"  >&lt;p&gt;&quot;Zhenyu Xu &amp;lt;bobijam@hotmail.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50310&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50310&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14765&quot; title=&quot;sanity-flr test_44c: mirror split does not reduce block#&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14765&quot;&gt;LU-14765&lt;/a&gt; test: enable sanity-flr/44c&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c945ba741e73eb42c0d013d2a1ab44bda416986b&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="63363">LU-14526</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="70399">LU-15876</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="73957">LU-16465</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|i01x13:</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>