<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:06:30 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-14060] sanity test_426 (splice-test) issues </title>
                <link>https://jira.whamcloud.com/browse/LU-14060</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;sanity test_426 has a few issues:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;trivial should not be used when adding tests.&lt;/li&gt;
	&lt;li&gt;The commit message specifies &quot;Test-Parameters: trivial envdefinitions=ONLY=425 testlist=sanity&quot; but the test added was &lt;tt&gt;test_426&lt;/tt&gt;.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;test_426()&lt;/tt&gt; itself does not check the exit status of the first the invocations of splice-read. The first and third &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/help_16.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; invocations fail:
&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;== sanity test 426: splice test on Lustre ============================================================ 04:48:51 (1601959731)
splice-test: splice: Bad address
concurrent reader with O_DIRECT
read: /mnt/lustre/f426.sanity: unexpected EOF
concurrent reader with O_DIRECT
concurrent reader without O_DIRECT
concurrent reader without O_DIRECT
splice-test: splice: Bad address
sequential reader with O_DIRECT
sequential reader without O_DIRECT
Resetting fail_loc on all nodes...CMD: trevis-57vm1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;(From &lt;a href=&quot;https://testing.whamcloud.com/sub_tests/32fb3881-204a-462a-92cf-561557edb59a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/32fb3881-204a-462a-92cf-561557edb59a&lt;/a&gt;).&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;splice-find.c mixes fork without exact, printf(), and fprintf(stderr, ...) which causes the duplicated and out of order messages.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;read_from_pipe()&lt;/tt&gt; should use &lt;tt&gt;posix_memalign()&lt;/tt&gt; to allocate its buffer for &lt;tt&gt;O_DIRECT&lt;/tt&gt;.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;read_from_pipe()&lt;/tt&gt; decrements &lt;tt&gt;size&lt;/tt&gt; by &lt;tt&gt;sz&lt;/tt&gt; instead of &lt;tt&gt;ret&lt;/tt&gt;.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;do_splice1()&lt;/tt&gt; is vulnerable to deadlock since the &lt;tt&gt;read_from_pipe()&lt;/tt&gt; is not called until after the &lt;tt&gt;splice()&lt;/tt&gt; completes.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;do_splice2()&lt;/tt&gt; does not check for errors from &lt;tt&gt;fork()&lt;/tt&gt;.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;do_splice2()&lt;/tt&gt; does not check the exit status of the child process.&lt;/li&gt;
	&lt;li&gt;Generally we should check for failure from system calls as &lt;tt&gt;rc &amp;lt; 0&lt;/tt&gt; rather than &lt;tt&gt;rc == -1&lt;/tt&gt;.&lt;/li&gt;
	&lt;li&gt;Error handling uses the non-standard BSD extension &lt;tt&gt;err()&lt;/tt&gt;.&lt;/li&gt;
	&lt;li&gt;Allocation should use the standard function &lt;tt&gt;posix_memalign()&lt;/tt&gt; rather then &lt;tt&gt;aligned_alloc()&lt;/tt&gt;.&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="61297">LU-14060</key>
            <summary>sanity test_426 (splice-test) issues </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="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="wc-triage">WC Triage</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Oct 2020 16:43:39 +0000</created>
                <updated>Thu, 22 Oct 2020 00:15:40 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="282902" author="simmonsja" created="Wed, 21 Oct 2020 19:09:25 +0000"  >&lt;p&gt;That explains some of the failure I see in another patch I did.&#160; Note this was taken from the xfstest suite so we can push these fixes back to them.&lt;/p&gt;</comment>
                            <comment id="282925" author="wshilong" created="Thu, 22 Oct 2020 00:15:40 +0000"  >&lt;p&gt;Thanks for this.&lt;/p&gt;

&lt;p&gt;Originally patch was added for test_425, but it conflicts when rebasing i forgot to update commit as well.&lt;/p&gt;

&lt;p&gt;Yup,  this is totally copied from xfstest,  original motivation is to make sure Lustre did not hang with such splice test&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="59829">LU-13745</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|i01cwv:</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>