<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:00:13 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-13314] sanity test_56ob: lfs find /mnt/lustre/d56ob.sanity -mtime 1y&apos; wrong: found 0, expected 1</title>
                <link>https://jira.whamcloud.com/browse/LU-13314</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for Andreas Dilger  &amp;lt;adilger@whamcloud.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run: &lt;a href=&quot;https://testing.whamcloud.com/test_sets/0e2fc3d7-0b4f-469a-8b96-7b6fa53e6261&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/0e2fc3d7-0b4f-469a-8b96-7b6fa53e6261&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;test_56ob failed with the following error:&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;&apos;/usr/bin/lfs find /mnt/lustre/d56ob.sanity -mtime 1y&apos; wrong: found 0, expected 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is failing 100% since last night after the most recent master-next landing. &lt;/p&gt;





&lt;p&gt;VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV&lt;br/&gt;
sanity test_56ob - &apos;/usr/bin/lfs find /mnt/lustre/d56ob.sanity -mtime 1y&apos; wrong: found 0, expected 1&lt;/p&gt;</description>
                <environment></environment>
        <key id="58228">LU-13314</key>
            <summary>sanity test_56ob: lfs find /mnt/lustre/d56ob.sanity -mtime 1y&apos; wrong: found 0, expected 1</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="adilger">Andreas Dilger</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                    </labels>
                <created>Sun, 1 Mar 2020 20:54:37 +0000</created>
                <updated>Thu, 18 Feb 2021 00:37:44 +0000</updated>
                            <resolved>Tue, 1 Sep 2020 04:58:32 +0000</resolved>
                                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="264372" author="adilger" created="Mon, 2 Mar 2020 02:44:01 +0000"  >&lt;p&gt;Wang Shilong wrote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I guess this is becuase:&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;set_time

 switch (*endptr) {
 case &apos;y&apos;: 
 unit *= 52; /* 52 weeks + 1 day below */
 case &apos;w&apos;: /* fallthrough */
 unit *= 7; 
 case &apos;\0&apos;: /* days are default unit if none used */
 case &apos;d&apos;: /* fallthrough */
 unit = (unit + (*endptr == &apos;y&apos;)) * 24; 
 case &apos;h&apos;: /* fallthrough */
 unit *= 60;
 case &apos;m&apos;: /* fallthrough */
 unit *= 60;
 case &apos;s&apos;: /* fallthrough */
 break;
 /* don&apos;t need to multiply by 1 for seconds */
 default:
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This is not always exact for one year calculations? i guess codes might be fine, but need allow tests to be ware of such case?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This seems to be correct. It looks like the bug was introduced in patch &lt;a href=&quot;https://review.whamcloud.com/34367&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34367&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12027&quot; title=&quot;Allow &amp;quot;lfs find&amp;quot; atime/mtime/ctime with fine-grained values&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12027&quot;&gt;&lt;del&gt;LU-12027&lt;/del&gt;&lt;/a&gt; utils: add units to &apos;lfs find -amctime&apos;&lt;/tt&gt;&quot;, or possibly patch &lt;a href=&quot;https://review.whamcloud.com/34658&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34658&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12027&quot; title=&quot;Allow &amp;quot;lfs find&amp;quot; atime/mtime/ctime with fine-grained values&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12027&quot;&gt;&lt;del&gt;LU-12027&lt;/del&gt;&lt;/a&gt; utils: fix &apos;lfs find -amctime&apos; comparison&lt;/tt&gt;&quot;.&lt;/p&gt;</comment>
                            <comment id="264373" author="adilger" created="Mon, 2 Mar 2020 03:03:21 +0000"  >&lt;p&gt;It looks like &lt;tt&gt;time_margin&lt;/tt&gt; is exactly 24h, so the leap day plus a few seconds for running the test moves the &quot;&lt;tt&gt;touch&lt;/tt&gt;&quot; file out of range. &lt;/p&gt;

&lt;p&gt;I think it makes sense to have more than a 1-day margin for files 1 year old. I&apos;m not sure what a sensible default would be, but maybe 1d + 1d/year?  That would be enough to fix the leap-day issue, and for files 7 years old that would give a margin of 8d, which I think would be totally acceptable margin of error?&lt;/p&gt;</comment>
                            <comment id="264374" author="gerrit" created="Mon, 2 Mar 2020 04:29:42 +0000"  >&lt;p&gt;Wang Shilong (wshilong@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/37767&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37767&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13314&quot; title=&quot;sanity test_56ob: lfs find /mnt/lustre/d56ob.sanity -mtime 1y&amp;#39; wrong: found 0, expected 1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13314&quot;&gt;&lt;del&gt;LU-13314&lt;/del&gt;&lt;/a&gt; test: add 56ob to ALWAYS_EXCEPT for now&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2d82cb1ae482e9d9ceae8d8d95540bcfdcc4d19f&lt;/p&gt;</comment>
                            <comment id="264375" author="gerrit" created="Mon, 2 Mar 2020 05:01:05 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/37767/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37767/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13314&quot; title=&quot;sanity test_56ob: lfs find /mnt/lustre/d56ob.sanity -mtime 1y&amp;#39; wrong: found 0, expected 1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13314&quot;&gt;&lt;del&gt;LU-13314&lt;/del&gt;&lt;/a&gt; test: add 56ob to ALWAYS_EXCEPT for now&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: bfaa8a0686f95802fda79fbc8cf9001fcf1b5192&lt;/p&gt;</comment>
                            <comment id="264415" author="tappro" created="Mon, 2 Mar 2020 19:03:31 +0000"  >&lt;p&gt;this is &lt;tt&gt;lfs&lt;/tt&gt; calc error in &lt;tt&gt;set_time()&lt;/tt&gt;. It uses 365 days in year always, so to work correctly is should takes leap day into account while doing maths for +/- year/week&lt;/p&gt;</comment>
                            <comment id="275617" author="gerrit" created="Fri, 17 Jul 2020 08:47:10 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39433&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39433&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13314&quot; title=&quot;sanity test_56ob: lfs find /mnt/lustre/d56ob.sanity -mtime 1y&amp;#39; wrong: found 0, expected 1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13314&quot;&gt;&lt;del&gt;LU-13314&lt;/del&gt;&lt;/a&gt; utils: fix lfs find time calculation margin&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a673bda1ba892d302f6638d112ea75b07b24f7c1&lt;/p&gt;</comment>
                            <comment id="275662" author="adilger" created="Fri, 17 Jul 2020 20:07:57 +0000"  >&lt;p&gt;I fixed this by increasing the margin of error by a day per year.  I have a follow-on patch that will allow searching between precise intervals (e.g. &quot;&lt;tt&gt;-atime +30 -atime -60&lt;/tt&gt;&quot; that needs to be finished, but at least this first patch/test is functional again.&lt;/p&gt;</comment>
                            <comment id="277276" author="gerrit" created="Wed, 12 Aug 2020 05:23:52 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39657&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39657&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13314&quot; title=&quot;sanity test_56ob: lfs find /mnt/lustre/d56ob.sanity -mtime 1y&amp;#39; wrong: found 0, expected 1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13314&quot;&gt;&lt;del&gt;LU-13314&lt;/del&gt;&lt;/a&gt; utils: allow lfs find time within a range&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 3d3cc0092a2b86907252541ea0b8759bb987a315&lt;/p&gt;</comment>
                            <comment id="278452" author="gerrit" created="Tue, 1 Sep 2020 03:44:32 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/39433/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39433/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13314&quot; title=&quot;sanity test_56ob: lfs find /mnt/lustre/d56ob.sanity -mtime 1y&amp;#39; wrong: found 0, expected 1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13314&quot;&gt;&lt;del&gt;LU-13314&lt;/del&gt;&lt;/a&gt; utils: fix lfs find time calculation margin&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 7e0208da21f9358d96feebce5124f8587778c318&lt;/p&gt;</comment>
                            <comment id="278469" author="pjones" created="Tue, 1 Sep 2020 04:58:32 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="55010">LU-12027</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </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|i00ulr:</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>