<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:13:38 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-7986] HSM: Duplicated cookies in &quot;actions&quot;</title>
                <link>https://jira.whamcloud.com/browse/LU-7986</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Some entries can end up being duplicated in &quot;actions&quot;. For instance:&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;lrh=[type=10680000 len=136 idx=1/14] fid=[0x200000401:0x10:0x0] dfid=[0x200000401:0x10:0x0] compound/cookie=0x5703ea60/0x5703ea6c action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=WAITING data=[]
lrh=[type=10680000 len=136 idx=1/51633] fid=[0x200000401:0x10:0x0] dfid=[0x200000401:0x10:0x0] compound/cookie=0x5703ea60/0x5703ea6c action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=STARTED data=[]
a
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As cdt_llog_lock is taken in mdt_hsm_actions_proc_show(), I think that could be a race between the coordinator/client and the proc_show() function.&lt;/p&gt;</description>
                <environment></environment>
        <key id="35817">LU-7986</key>
            <summary>HSM: Duplicated cookies in &quot;actions&quot;</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="1">Fixed</resolution>
                                        <assignee username="jhammond">John Hammond</assignee>
                                    <reporter username="fzago">Frank Zago</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Apr 2016 17:05:08 +0000</created>
                <updated>Mon, 10 Apr 2017 18:03:30 +0000</updated>
                            <resolved>Thu, 21 Apr 2016 20:45:21 +0000</resolved>
                                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="147856" author="fzago" created="Tue, 5 Apr 2016 17:10:04 +0000"  >&lt;p&gt;For my test setup, I create a new fs (llmount.sh), and then create 30000 files and hsm_archive them, without a copytool.&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;#!/bin/sh

mkdir /mnt/lustre/foo

echo Start $(date &quot;+%s&quot;)

for x in {1..3000}; do
	echo loop $x $(date &quot;+%s&quot;)

	mkdir /mnt/lustre/foo/d$x

	touch /mnt/lustre/foo/d$x/file{1..10}

	lfs hsm_archive /mnt/lustre/foo/d$x/file*
done

echo Done $(date &quot;+%s&quot;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I then start the following command to watch &quot;actions&quot;:&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;while [ 1 ]; do date &quot;+%s&quot; ; cat actions &amp;gt; /root/copytool_test/actions.$(date &quot;+%s&quot;) ; time wc -l actions ; sleep 1 ; done
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then I start the copytool that will eventually succeed without any error or warnings.&lt;br/&gt;
But I get puzzling output such as:&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;30000 actions

real	0m0.199s
user	0m0.002s
sys	0m0.197s
1459874583
30000 actions

real	0m0.221s
user	0m0.003s
sys	0m0.218s
1459874584
30190 actions

real	0m0.957s
user	0m0.002s
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;30190 actions? But only 30000 were posted.&lt;/p&gt;

&lt;p&gt;The worst I&apos;ve seen is 34267 actions instead of 30000 max.&lt;/p&gt;</comment>
                            <comment id="147859" author="fzago" created="Tue, 5 Apr 2016 17:13:21 +0000"  >&lt;p&gt;Some FIDs/cookie even appear 3 times:&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;lrh=[type=10680000 len=136 idx=1/1415] fid=[0x200000401:0x605:0x0] dfid=[0x200000401:0x605:0x0] compound/cookie=0x5703eaea/0x5703efce action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=WAITING data=[]
lrh=[type=10680000 len=136 idx=1/48820] fid=[0x200000401:0x605:0x0] dfid=[0x200000401:0x605:0x0] compound/cookie=0x5703eaea/0x5703efce action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=STARTED data=[]
lrh=[type=10680000 len=136 idx=1/51221] fid=[0x200000401:0x605:0x0] dfid=[0x200000401:0x605:0x0] compound/cookie=0x5703eaea/0x5703efce action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=SUCCEED data=[]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="147860" author="fzago" created="Tue, 5 Apr 2016 17:17:21 +0000"  >&lt;p&gt;actions.1459874574 is &quot;actions&quot; before starting the copytool&lt;br/&gt;
actions.1459874610 is &quot;actions&quot; while the copytool is running&lt;/p&gt;

&lt;p&gt;The list of duplicated FIDs can be seen with the following command:&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;sed -e &quot;s/.*fid=\[\(.*\)\] dfid=.*/\1/&quot; actions.1459874610 | sort | uniq -c | sort -r | less
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="147978" author="jcl" created="Wed, 6 Apr 2016 14:36:35 +0000"  >&lt;p&gt;This comes from the way the llog record is updated. We could not update in place so we add a new one and remove the old one. This is done in  mdt_agent_record_update_cb(): add a new record and ask the callback caller to invalid the old one.&lt;br/&gt;
So if llog cleanning is not fast enough we can have multiple records for the same request.&lt;br/&gt;
At HSM dev time, I did not find a way to update in place.&lt;/p&gt;</comment>
                            <comment id="148048" author="fzago" created="Wed, 6 Apr 2016 22:08:48 +0000"  >&lt;p&gt;May be that could explain why we&apos;re sometimes seeing replay of cookies. From our copytool traces, just after the hsm_recv:&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;Apr  5 19:20:23 [lustre] new request (cookie=57ac3d15, FID=0x2000d0ebb:0x4cd:0x0, DFID=0x2000d0ebb:0x4cd:0x0, len=72, action=20, extent=-1/0, gid=0, item=0)
Apr  5 20:34:33 [lustre] new request (cookie=57ac3d15, FID=0x2000d0ebb:0x4cd:0x0, DFID=0x2000d0ebb:0x4cd:0x0, len=72, action=20, extent=-1/0, gid=0, item=0)
Apr  5 20:37:31 [lustre] new request (cookie=57ac3d15, FID=0x2000d0ebb:0x4cd:0x0, DFID=0x2000d0ebb:0x4cd:0x0, len=72, action=20, extent=-1/0, gid=0, item=0)
Apr  5 20:37:31 [lustre] new request (cookie=57ac3d15, FID=0x2000d0ebb:0x4cd:0x0, DFID=0x2000d0ebb:0x4cd:0x0, len=72, action=20, extent=-1/0, gid=0, item=0)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
</comment>
                            <comment id="148145" author="jhammond" created="Thu, 7 Apr 2016 16:42:51 +0000"  >&lt;p&gt;Hi Frank,&lt;/p&gt;

&lt;p&gt;I&apos;ll push a patch that should address this. I&apos;ll push it after returning from LUG.&lt;/p&gt;</comment>
                            <comment id="148146" author="fzago" created="Thu, 7 Apr 2016 16:44:12 +0000"  >&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="148412" author="gerrit" created="Mon, 11 Apr 2016 15:59:47 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/19447&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19447&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7986&quot; title=&quot;HSM: Duplicated cookies in &amp;quot;actions&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7986&quot;&gt;&lt;del&gt;LU-7986&lt;/del&gt;&lt;/a&gt; hsm: update actions llog in place&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 54a07389e965a0cba7d246f8a6179591fb4b8798&lt;/p&gt;</comment>
                            <comment id="148989" author="gerrit" created="Thu, 14 Apr 2016 19:45:09 +0000"  >&lt;p&gt;Frank Zago (fzago@cray.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/19577&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19577&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7986&quot; title=&quot;HSM: Duplicated cookies in &amp;quot;actions&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7986&quot;&gt;&lt;del&gt;LU-7986&lt;/del&gt;&lt;/a&gt; hsm: update actions llog in place&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e4d96fb6b56a0d40aa721a67351bea6a62db97b9&lt;/p&gt;</comment>
                            <comment id="149632" author="gerrit" created="Thu, 21 Apr 2016 02:28:31 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/19447/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19447/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7986&quot; title=&quot;HSM: Duplicated cookies in &amp;quot;actions&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7986&quot;&gt;&lt;del&gt;LU-7986&lt;/del&gt;&lt;/a&gt; hsm: update actions llog in place&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 91144acb3dc1120c00797269afa621c94cb64e1e&lt;/p&gt;</comment>
                            <comment id="149755" author="jgmitter" created="Thu, 21 Apr 2016 20:45:21 +0000"  >&lt;p&gt;Landed to master for 2.9.0&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="45388">LU-9312</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="20998" name="actions.tar.xz" size="182204" author="fzago" created="Tue, 5 Apr 2016 17:17:21 +0000"/>
                    </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|hzy6tr:</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>