<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:21:52 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-8940] tests: df is not responsive enough</title>
                <link>https://jira.whamcloud.com/browse/LU-8940</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In sanity-hsm df is used to check if there is enough space on the file system before creating a rather large file (with make_custom_file_for_progress()). If there is not enough space, a call to cleanup_large_files() is issued and then df is used once again to check that there is now enough space.&lt;/p&gt;

&lt;p&gt;The thing is, df takes time to see the update in free space, more than du for example (even with the option --sync).&lt;br/&gt;
 To reproduce:&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;dd if=/dev/zero of=/mnt/lustre/file count=100 bs=1M
df -h
find /mnt/lustre -size +10M -delete &amp;amp;&amp;amp; df -h [--sync ] &amp;amp;&amp;amp; du -s /mnt/lustre
# Wait around 3 to 5 seconds
df -h
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;You can check the output of the first two df commands, the &quot;Used&quot; column should be the same. But du immediatly reflects the actual size.&lt;/p&gt;</description>
                <environment></environment>
        <key id="42439">LU-8940</key>
            <summary>tests: df is not responsive enough</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="jhammond">John Hammond</assignee>
                                    <reporter username="cealustre">CEA</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Dec 2016 14:10:10 +0000</created>
                <updated>Tue, 29 Mar 2022 20:10:46 +0000</updated>
                            <resolved>Tue, 29 Mar 2022 20:10:45 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="177841" author="bougetq" created="Thu, 15 Dec 2016 14:16:10 +0000"  >&lt;p&gt;Would it be satisfying enough to use &quot;du&quot; instead ?&lt;/p&gt;</comment>
                            <comment id="177891" author="jhammond" created="Thu, 15 Dec 2016 18:21:29 +0000"  >&lt;p&gt;Quentin, could you clarify is the problem that the test should be calling cleanup_large_files() but it isn&apos;t? Or something else? Is it causing a spurious test failure? If so the could you post the logs?&lt;/p&gt;</comment>
                            <comment id="178018" author="bougetq" created="Fri, 16 Dec 2016 08:04:51 +0000"  >&lt;p&gt;cleanup_large_files() is called, at the right times, but we check how much space it frees too quickly after and end up thinking there is not enough space when there is. The consequence is that some tests are skipped with the message &quot;not enough space&quot; when they should not.&lt;/p&gt;

&lt;p&gt;Overall this is not too problematic, but it would still be nice to fix.&lt;/p&gt;</comment>
                            <comment id="178100" author="jhammond" created="Fri, 16 Dec 2016 18:09:04 +0000"  >&lt;p&gt;Quentin, could you try add a call to wait_destroy_complete after find and see if works?&lt;/p&gt;</comment>
                            <comment id="179060" author="bougetq" created="Tue, 27 Dec 2016 11:00:01 +0000"  >&lt;p&gt;The timeout of wait_complete_destroy is 5 seconds. When I run my test it sometimes is enough, sometimes it is not. I think it would be better to use a non-sleeping and more deterministic method.&lt;/p&gt;</comment>
                            <comment id="185547" author="bougetq" created="Mon, 20 Feb 2017 12:42:38 +0000"  >&lt;p&gt;A workaround in sanity-hsm.sh is not to use make_custom_file_for_progress() and use empty file as much as possible (or very small files).&lt;/p&gt;</comment>
                            <comment id="185923" author="jhammond" created="Thu, 23 Feb 2017 04:11:29 +0000"  >&lt;p&gt;In general we should not use empty files in sanity-hsm. Since this will silently reduce the code coverage in many places. (BTW we should also avoid using copies of /etc/&lt;/p&gt;
{hosts,passwd,...}
&lt;p&gt; as a small file, since these may be empty on some distros. It&apos;s better to use dd if=/dev/urandom ... to create the small files.)&lt;/p&gt;</comment>
                            <comment id="185952" author="bougetq" created="Thu, 23 Feb 2017 09:08:03 +0000"  >&lt;p&gt;I am not sure I agree with that. Using not empty files pretty much only tests how the copytool behaves and very little tests are &quot;copytool oriented&quot;.&lt;/p&gt;

&lt;p&gt;The main problem related to using big files is that the copytool&apos;s bandwidth is artificially capped at 1MB/s. This unnecessarily slows down many tests in sanity-hsm. Overall I am not asking for complete removal of big files, I am just asking for each use to be documented and rationalized (which is what motivates lu-8950).&lt;/p&gt;

&lt;p&gt;Anyway, using small or empty files is just a workaround. We still have to find a solution. I personnaly think that it is ok for df to report outdated information as long as the&#160;&quot;--sync&quot; option forces an update.&lt;/p&gt;</comment>
                            <comment id="196738" author="bougetq" created="Tue, 23 May 2017 13:58:58 +0000"  >&lt;p&gt;We were actually pretty close to finding a general fix to this, we tried &lt;tt&gt;wait_destroy_complete()&lt;/tt&gt; and it would seem &lt;tt&gt;wait_delete_complete()&lt;/tt&gt; was what we needed (credit to Andreas Dilger).&lt;/p&gt;</comment>
                            <comment id="330549" author="jhammond" created="Tue, 29 Mar 2022 20:10:34 +0000"  >&lt;p&gt;Fixed by &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8950&quot; title=&quot;tests: sanity-hsm: use make_custom_file_for_progress() as little as possible&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8950&quot;&gt;&lt;del&gt;LU-8950&lt;/del&gt;&lt;/a&gt; tests: standardize file creation in sanity-hsm.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="42478">LU-8950</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|hzyyhr:</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>