<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:32:06 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-3231] fld_cache_lookup() copies fld_cache_entry onto lu_seq_range</title>
                <link>https://jira.whamcloud.com/browse/LU-3231</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;fld_cache_lookup() keeps a prev pointer to a struct fld_cache_entry. But when it uses this pointer to return the prev range, it copies the entry onto the range argument and not the entry&apos;s fce_range member.&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;int fld_cache_lookup(struct fld_cache *cache,
                     const seqno_t seq, struct lu_seq_range *range)
{
        struct fld_cache_entry *flde;
        struct fld_cache_entry *prev = NULL;
        cfs_list_t *head;
        ENTRY;

        ...
        cfs_list_for_each_entry(flde, head, fce_list) {
                if (flde-&amp;gt;fce_range.lsr_start &amp;gt; seq) {
                        if (prev != NULL)
                                memcpy(range, prev, sizeof(*range));
                        break;
                }
        ...
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="18548">LU-3231</key>
            <summary>fld_cache_lookup() copies fld_cache_entry onto lu_seq_range</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="jhammond">John Hammond</reporter>
                        <labels>
                            <label>LB</label>
                            <label>fid</label>
                    </labels>
                <created>Thu, 25 Apr 2013 18:26:10 +0000</created>
                <updated>Wed, 26 Mar 2014 14:00:02 +0000</updated>
                            <resolved>Mon, 29 Apr 2013 16:38:01 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="57071" author="jhammond" created="Thu, 25 Apr 2013 18:43:19 +0000"  >&lt;p&gt;Please see &lt;a href=&quot;http://review.whamcloud.com/6171&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/6171&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="57145" author="adilger" created="Fri, 26 Apr 2013 17:44:05 +0000"  >&lt;p&gt;Di, John, how serious is this bug?  Is this crashing, data corrupting, etc?  Affecting normal usage, or only DNE? Please describe severity of problem, and mark it a blocker if so.&lt;/p&gt;</comment>
                            <comment id="57147" author="jhammond" created="Fri, 26 Apr 2013 17:54:06 +0000"  >&lt;p&gt;Sorry, I spent too much time trying to understand what was going on.&lt;/p&gt;

&lt;p&gt;DNE blocker. I cannot see any evidence that it affects non-DNE setups.&lt;/p&gt;

&lt;p&gt;On the current master (2.3.64-43-g507dc87) I&apos;m using MDSCOUNT=2 MOUNT_2=y llmount.sh to setup. About every 1 in 5 times this results in a unusable client mount:&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;# DURATION=10 sh ./lustre/tests/racer.sh 
Logging to shared log directory: /tmp/test_logs/1366998603
racer: /root/lustre-release/lustre/tests/racer/racer.sh with 2 MDTs
excepting tests: 
m: Checking config lustre mounted on /mnt/lustre2
Checking servers environments
Checking clients m environments
m: Checking config lustre mounted on /mnt/lustre
Checking servers environments
Checking clients m environments
Using TIMEOUT=20
disable quota as required
RACERDIRS=/mnt/lustre /mnt/lustre2

== racer test 1: racer on clients: m DURATION=10 == 12:50:04 (1366998604)
racers pids: 18395 18396 18397 18398
./dir_remote.sh: line 13: /mnt/lustre/racer/5/3: Input/output error
./dir_remote.sh: line 13: /mnt/lustre/racer/0/2: Input/output error
./dir_remote.sh: line 13: /mnt/lustre/racer/5/18: Input/output error
./dir_remote.sh: line 13: /mnt/lustre2/racer/16/5: Input/output error
./dir_remote.sh: line 13: /mnt/lustre2/racer1/7/3: No such file or directory
./dir_remote.sh: line 13: /mnt/lustre2/racer/15/19: Input/output error
./dir_remote.sh: line 13: /mnt/lustre2/racer/14/3: Input/output error
./dir_remote.sh: line 13: /mnt/lustre2/racer1/2/9: No such file or directory
./dir_remote.sh: line 13: /mnt/lustre/racer1/4/7: No such file or directory
./dir_remote.sh: line 13: /mnt/lustre/racer/12/9: Input/output error
./dir_remote.sh: line 13: /mnt/lustre2/racer/10/9: Input/output error
./dir_remote.sh: line 13: /mnt/lustre2/racer/3/16: Input/output error
./dir_remote.sh: line 13: /mnt/lustre2/racer1/3/8: Not a directory
./dir_remote.sh: line 13: /mnt/lustre2/racer/3/16: Input/output error
./dir_remote.sh: line 13: /mnt/lustre2/racer1/3/19: Not a directory
./dir_remote.sh: line 13: /mnt/lustre/racer1/2/5: Not a directory
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Note the requested flag &quot;ffff8801&quot; below is really part of a list_head from the entry:&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;Lustre: DEBUG MARKER: == racer test 1: racer on clients: m DURATION=10 == 12:50:04 (1366998604)
Lustre: ctl-lustre-MDT0000: super-sequence allocation rc = 0 [0x0000000280000400-0x00000002c0000400):0:mdt
Lustre: cli-ctl-lustre-MDT0000-osp-MDT0001: Allocated super-sequence [0x00000002c0000400-0x0000000300000400):1:mdt]
LustreError: 15736:0:(fld_handler.c:158:fld_server_lookup()) srv-lustre-MDT0000: FLD cache range [0x0000000280000400-0x00000002c0000400):0:mdt does not matchrequested flag ffff8801: rc = -5
LustreError: 18811:0:(lmv_fld.c:78:lmv_fld_lookup()) Error while looking for mds number. Seq 0x280000400, err = -5
LustreError: 15736:0:(fld_handler.c:158:fld_server_lookup()) srv-lustre-MDT0000: FLD cache range [0x0000000280000400-0x00000002c0000400):0:mdt does not matchrequested flag ffff8801: rc = -5
LustreError: 18788:0:(lmv_fld.c:78:lmv_fld_lookup()) Error while looking for mds number. Seq 0x280000400, err = -5
LustreError: 15715:0:(mdt_reint.c:332:mdt_md_create()) lustre-MDT0001: remote dir is only permitted on MDT0 or set_param mdt.*.enable_remote_dir=1
LustreError: 15714:0:(mdt_reint.c:332:mdt_md_create()) lustre-MDT0001: remote dir is only permitted on MDT0 or set_param mdt.*.enable_remote_dir=1
LustreError: 19275:0:(lmv_fld.c:78:lmv_fld_lookup()) Error while looking for mds number. Seq 0x280000400, err = -5
LustreError: 19275:0:(lmv_fld.c:78:lmv_fld_lookup()) Skipped 284 previous similar messages
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="57154" author="di.wang" created="Fri, 26 Apr 2013 18:50:37 +0000"  >&lt;p&gt;I think it will affect non-DNE setup too, when it uses up current meta-sequence(128k seqs), then tries to get new seq. This bug should be hit during the sequence range merging in FLD, IMHO. Thanks again, John.&lt;/p&gt;</comment>
                            <comment id="57240" author="pjones" created="Mon, 29 Apr 2013 16:38:01 +0000"  >&lt;p&gt;Landed for 2.4&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="18586">LU-3233</issuekey>
        </issuelink>
                            </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|hzvp3b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7896</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>