<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:14:01 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-8030] hsm: inserting duplicate requests</title>
                <link>https://jira.whamcloud.com/browse/LU-8030</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It is possible to insert duplicate HSM requests in the actions list:&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;# cd /mnt/lustre
# cp /bin/ls .
# cp /bin/ls ls2
# lfs hsm_archive ls2 ls2 ls2 ls2

# cat /proc/fs/lustre/mdt/lustre-MDT0000/hsm/actions
lrh=[type=10680000 len=136 idx=1/2] fid=[0x200000401:0x2:0x0] dfid=[0x200000401:0x2:0x0] compound/cookie=0x571142b4/0x571142af action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=WAITING data=[]
lrh=[type=10680000 len=136 idx=1/3] fid=[0x200000401:0x2:0x0] dfid=[0x200000401:0x2:0x0] compound/cookie=0x571142b4/0x571142b0 action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=WAITING data=[]
lrh=[type=10680000 len=136 idx=1/4] fid=[0x200000401:0x2:0x0] dfid=[0x200000401:0x2:0x0] compound/cookie=0x571142b4/0x571142b1 action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=WAITING data=[]
lrh=[type=10680000 len=136 idx=1/5] fid=[0x200000401:0x2:0x0] dfid=[0x200000401:0x2:0x0] compound/cookie=0x571142b4/0x571142b2 action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=WAITING data=[]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The copytool then successfully archives the same file 4 times.&lt;/p&gt;

&lt;p&gt;The bug likely comes from mdt_hsm_add_actions() where duplicates are searched for between the already queued actions and the new ones in the HAL, but not between the actions in the HAL itself.&lt;/p&gt;</description>
                <environment></environment>
        <key id="36185">LU-8030</key>
            <summary>hsm: inserting duplicate requests</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="wc-triage">WC Triage</assignee>
                                    <reporter username="fzago">Frank Zago</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Apr 2016 19:43:25 +0000</created>
                <updated>Wed, 1 Jun 2016 20:32:38 +0000</updated>
                            <resolved>Wed, 1 Jun 2016 20:32:38 +0000</resolved>
                                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="149132" author="fzago" created="Fri, 15 Apr 2016 20:41:25 +0000"  >&lt;p&gt;Restoring is a bit different. The first call works, and the file is restored once. A second call is locking up lustre. ls /mnt/lustre hangs too.&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;# cp /bin/ls ls2
# lfs hsm_archive ls2
# lfs hsm_release ls2
# lfs hsm_restore ls2 ls2 ls2 ls2
# lfs hsm_restore ls2 ls2 ls2 ls2
&amp;lt;hang&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;with the following stack trace in the kernel log:&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;[  482.344410] INFO: task lfs:8517 blocked for more than 120 seconds.
[  482.346511] &quot;echo 0 &amp;gt; /proc/sys/kernel/hung_task_timeout_secs&quot; disables this message.
[  482.348516] lfs             D ffff88032deb9770     0  8517   2733 0x00000080
[  482.350453]  ffff880627973bd8 0000000000000046 ffff88062b550000 ffff880627973fd8
[  482.352449]  ffff880627973fd8 ffff880627973fd8 ffff88062b550000 ffff8805d5760218
[  482.354414]  ffff8805d5760900 ffff8805d5760908 0000000000000246 ffff88062b550000
[  482.356353] Call Trace:
[  482.357761]  [&amp;lt;ffffffff81662d39&amp;gt;] schedule_preempt_disabled+0x29/0x70
[  482.358795]  [&amp;lt;ffffffff8166075b&amp;gt;] mutex_lock_nested+0x18b/0x4b0
[  482.359860]  [&amp;lt;ffffffffa115799c&amp;gt;] ? ll_layout_refresh+0x1ac/0x290 [lustre]
[  482.360898]  [&amp;lt;ffffffffa115799c&amp;gt;] ? ll_layout_refresh+0x1ac/0x290 [lustre]
[  482.361901]  [&amp;lt;ffffffffa115799c&amp;gt;] ll_layout_refresh+0x1ac/0x290 [lustre]
[  482.362915]  [&amp;lt;ffffffffa119e03f&amp;gt;] vvp_io_init+0x3df/0x4c0 [lustre]
[  482.363967]  [&amp;lt;ffffffffa07382a8&amp;gt;] cl_io_init0.isra.15+0x88/0x160 [obdclass]
[  482.364955]  [&amp;lt;ffffffffa1194915&amp;gt;] ? cl_glimpse_size0+0x125/0x2b0 [lustre]
[  482.365937]  [&amp;lt;ffffffffa0738475&amp;gt;] cl_io_init+0x55/0xd0 [obdclass]
[  482.366901]  [&amp;lt;ffffffffa11949bc&amp;gt;] cl_glimpse_size0+0x1cc/0x2b0 [lustre]
[  482.367852]  [&amp;lt;ffffffffa11556a9&amp;gt;] ll_getattr+0x539/0x7c0 [lustre]
[  482.368770]  [&amp;lt;ffffffff8101cd35&amp;gt;] ? native_sched_clock+0x35/0x80
[  482.369667]  [&amp;lt;ffffffff811ef736&amp;gt;] vfs_getattr+0x46/0x80
[  482.370531]  [&amp;lt;ffffffff811ef865&amp;gt;] vfs_fstatat+0x75/0xc0
[  482.371345]  [&amp;lt;ffffffff811efe21&amp;gt;] SYSC_newlstat+0x31/0x60
[  482.372135]  [&amp;lt;ffffffff81314fd6&amp;gt;] ? lockdep_sys_exit_thunk+0x35/0x67
[  482.372944]  [&amp;lt;ffffffff816650ea&amp;gt;] ? error_exit+0x6a/0xb0
[  482.373727]  [&amp;lt;ffffffff811f00ae&amp;gt;] SyS_newlstat+0xe/0x10
[  482.374493]  [&amp;lt;ffffffff8166d589&amp;gt;] system_call_fastpath+0x16/0x1b
[  482.375181] 2 locks held by lfs/8517:
[  482.375912]  #0:  (&amp;amp;lli-&amp;gt;lli_glimpse_sem){......}, at: [&amp;lt;ffffffffa115569f&amp;gt;] ll_getattr+0x52f/0x7c0 [lustre]
[  482.377354]  #1:  (&amp;amp;lli-&amp;gt;lli_layout_mutex){......}, at: [&amp;lt;ffffffffa115799c&amp;gt;] ll_layout_refresh+0x1ac/0x290 [lustre]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="149309" author="gerrit" created="Mon, 18 Apr 2016 18:00:17 +0000"  >&lt;p&gt;Frank Zago (fzago@cray.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/19635&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19635&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8030&quot; title=&quot;hsm: inserting duplicate requests&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8030&quot;&gt;&lt;del&gt;LU-8030&lt;/del&gt;&lt;/a&gt; hsm: prevent duplicated HSM requests&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c87677412ac3a73dc5638b759d9738f0657ca027&lt;/p&gt;</comment>
                            <comment id="154018" author="gerrit" created="Tue, 31 May 2016 04:55:52 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/19635/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19635/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8030&quot; title=&quot;hsm: inserting duplicate requests&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8030&quot;&gt;&lt;del&gt;LU-8030&lt;/del&gt;&lt;/a&gt; hsm: prevent duplicated HSM requests&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 62e93ef9a29341091c49d66a1535ea243ea950be&lt;/p&gt;</comment>
                            <comment id="154323" author="jgmitter" created="Wed, 1 Jun 2016 20:32:38 +0000"  >&lt;p&gt;Landed to master for 2.9.0&lt;/p&gt;</comment>
                    </comments>
                    <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|hzy89r:</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>