<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:56:21 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-12867] DNE3: new DNE2 hash function to handle rsync temporary filename</title>
                <link>https://jira.whamcloud.com/browse/LU-12867</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When copying or resyncing a file with &lt;tt&gt;rsync&lt;/tt&gt; it will create a temporary pathname for the target file, copy the data into the temporary pathname, and then rename the file over the original in order to avoid damaging the original file if the rsync is interrupted.&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;$ rsync twoshoes.dilger.ca:/myth/tv/2103_20150920012700.mpg .
^Z
ls -l .2*
 3328 -rw-------  1 adilger 2883584 Oct 16 09:10 .2103_20150920012700.mpg.gyCFCs
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It is creating a temporary file with a leading &quot;.&quot; and a trailing &quot;&lt;tt&gt;.XXXXXX&lt;/tt&gt;&quot; using &lt;tt&gt;mktemp(3)&lt;/tt&gt; or similar.  When the temporary filename is renamed to the target filename in a striped directory, it would likely move to a new MDT and become a remote entry.  That causes overhead due to invoking remote rename operations, and leaves a lasting performance impact due to the remote directory entry.&lt;/p&gt;

&lt;p&gt;It would be useful to add a new hash function (e.g. &lt;tt&gt;FNV_1a_TEMP&lt;/tt&gt;) that will handle the case of filenames with a leading &quot;&lt;tt&gt;.&lt;/tt&gt;&quot; and trailing &quot;&lt;tt&gt;.xxxxxx&lt;/tt&gt;&quot; 6-8 chars after the &quot;&lt;tt&gt;.&lt;/tt&gt;&quot;  by dropping those parts of the filename and using the remaining characters for the hash, on the assumption that the final filename would be the just the remaining characters.  That will keep the rename to be local to a single MDT in most cases, and not be worse than the current case. &lt;/p&gt;</description>
                <environment></environment>
        <key id="57165">LU-12867</key>
            <summary>DNE3: new DNE2 hash function to handle rsync temporary filename</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="1">Fixed</resolution>
                                        <assignee username="laisiyao">Lai Siyao</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Oct 2019 01:53:16 +0000</created>
                <updated>Thu, 31 Mar 2022 23:45:17 +0000</updated>
                            <resolved>Fri, 3 Apr 2020 17:48:49 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="256451" author="adilger" created="Wed, 16 Oct 2019 01:59:03 +0000"  >&lt;p&gt;I believe that MPIFileUtils &lt;tt&gt;dcp&lt;/tt&gt; is also creating temporary filenames for the target, so it would be good to handle this case as well, possibly modifying the MPIFileUtils code to make this filename pattern more easily detected. &lt;/p&gt;</comment>
                            <comment id="258506" author="gerrit" created="Tue, 19 Nov 2019 16:16:28 +0000"  >&lt;p&gt;&lt;del&gt;Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch:&lt;/del&gt; &lt;a href=&quot;https://review.whamcloud.com/36799&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36799&lt;/a&gt;&lt;br/&gt;
&lt;del&gt;Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12867&quot; title=&quot;DNE3: new DNE2 hash function to handle rsync temporary filename&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12867&quot;&gt;&lt;del&gt;LU-12867&lt;/del&gt;&lt;/a&gt; dne: place temp file on MDT where target is&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Project: fs/lustre-release&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Branch: master&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Current Patch Set: 1&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Commit: 92d3050f760f00f22e85abdc456fe8ccb2d6e7f4&lt;/del&gt;&lt;/p&gt;</comment>
                            <comment id="266798" author="adilger" created="Fri, 3 Apr 2020 17:48:50 +0000"  >&lt;p&gt;This functionality was included into the patch &lt;a href=&quot;https://review.whamcloud.com/36775&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36775&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11025&quot; title=&quot;DNE3: directory restripe&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11025&quot;&gt;&lt;del&gt;LU-11025&lt;/del&gt;&lt;/a&gt; dne: introduce new directory hash type: &apos;crush&apos;&lt;/tt&gt;&quot; which landed for 2.14.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="58881">LU-13481</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="52253">LU-11025</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|i00o3r:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>