<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:09:29 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-7507] the data version doesn&apos;t always change after a layout swap</title>
                <link>https://jira.whamcloud.com/browse/LU-7507</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;After a successful layout swap, the data version of a file is sometimes not changed.&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;llapi_get_data_version(fd1, &amp;amp;dv1, LL_DV_RD_FLUSH);  -&amp;gt; get data version
llapi_fswap_layouts(fd1, fd2, ....) -&amp;gt; success
lapi_get_data_version(fd1, llapi_get_data_version(fd1, &amp;amp;dv1, LL_DV_RD_FLUSH);  -&amp;gt; get same data version
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Sometimes the dataversion is different, and sometimes it is not. So some caching might be involved.&lt;/p&gt;

&lt;p&gt;I added some calls to sync() and fsync() on both file descriptors just after the call to layout swap, but that didn&apos;t fix the problem.&lt;/p&gt;

&lt;p&gt;I pushed a reproducer in &lt;a href=&quot;http://review.whamcloud.com/#/c/13441/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/13441/&lt;/a&gt;. Change &quot;#if 0&quot; to &quot;#if 1&quot; in swap_layout_test.c:test42(). The calls to tests 30 and 31 should be commented out too since they are not related and take too long to execute.&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;	if (0) PERFORM(test30);
	if (0) PERFORM(test31);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="33403">LU-7507</key>
            <summary>the data version doesn&apos;t always change after a layout swap</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="hdoreau">Henri Doreau</assignee>
                                    <reporter username="fzago">Frank Zago</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Dec 2015 18:35:54 +0000</created>
                <updated>Tue, 18 Apr 2017 12:50:40 +0000</updated>
                            <resolved>Tue, 18 Apr 2017 12:50:40 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="134901" author="fzago" created="Tue, 1 Dec 2015 18:38:26 +0000"  >&lt;p&gt;A failed test:&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;Starting test test42 at 1448994477
DV = 100000c33 and 100000c33
swap_lock_test: swap_lock_test.c:886: test42: assertion &apos;dv1 != new_dv1&apos; failed: got identical dataversion for fd1: 100000c33
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;A successful test:&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;Starting test test42 at 1448994475
DV = 100000b26 and 100000b24
new DV = 100000b24 and 100000b26
DV= 100000b24 and 100000b26
Finishing test test42 at 1448994475
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="152967" author="gerrit" created="Fri, 20 May 2016 10:48:47 +0000"  >&lt;p&gt;Henri Doreau (henri.doreau@cea.fr) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/20346&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20346&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7507&quot; title=&quot;the data version doesn&amp;#39;t always change after a layout swap&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7507&quot;&gt;&lt;del&gt;LU-7507&lt;/del&gt;&lt;/a&gt; tests: fix dataversion regression test&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 7d2512158cfb0cb1e5798b28f66a01a804d8a1e5&lt;/p&gt;</comment>
                            <comment id="152968" author="hdoreau" created="Fri, 20 May 2016 10:50:44 +0000"  >&lt;p&gt;Isn&apos;t it just that we get two identical dataversion values for the two objects, and are therefore unable to distinguish between changed/not-changed? See my patch above (which sometimes gets stuck on &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7073&quot; title=&quot;racer with OST object migration hangs on cleanup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7073&quot;&gt;&lt;del&gt;LU-7073&lt;/del&gt;&lt;/a&gt;, but that is another issue).&lt;/p&gt;</comment>
                            <comment id="192477" author="pjones" created="Tue, 18 Apr 2017 12:50:40 +0000"  >&lt;p&gt;AFAICT this was tracked under &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8157&quot; title=&quot;Functionnal testing for layout swaps&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8157&quot;&gt;&lt;del&gt;LU-8157&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10120">
                    <name>Blocker</name>
                                            <outwardlinks description="is blocking">
                                        <issuelink>
            <issuekey id="28048">LU-6081</issuekey>
        </issuelink>
                            </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|hzxunb:</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>