<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:43:07 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-4482] OST grants bugs</title>
                <link>https://jira.whamcloud.com/browse/LU-4482</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Lustre: DEBUG MARKER: == sanity test 63a: Verify oig_wait interruption does not crash ========= 13:06:48 (1389690408)&lt;br/&gt;
LustreError: 14188:0:(ofd_grant.c:255:ofd_grant_space_left()) lustre-OST0010: cli 17a94b5b-8940-b62d-589f-082653aa3e82/ffff88003789e6c8 left 0 &amp;lt; tot_grant 34105472 unstable 0 pending 0&lt;br/&gt;
LustreError: 18856:0:(ofd_grant.c:255:ofd_grant_space_left()) lustre-OST0010: cli 17a94b5b-8940-b62d-589f-082653aa3e82/ffff88003789e6c8 left 0 &amp;lt; tot_grant 27814016 unstable 8388608 pending 8388608&lt;br/&gt;
LustreError: 18856:0:(ofd_grant.c:255:ofd_grant_space_left()) Skipped 26 previous similar messages&lt;br/&gt;
LustreError: 14178:0:(ofd_grant.c:255:ofd_grant_space_left()) lustre-OST0010: cli 17a94b5b-8940-b62d-589f-082653aa3e82/ffff88003789e6c8 left 0 &amp;lt; tot_grant 36505728 unstable 0 pending 0&lt;br/&gt;
LustreError: 14178:0:(ofd_grant.c:255:ofd_grant_space_left()) Skipped 33 previous similar messages&lt;br/&gt;
LustreError: 25596:0:(ofd_grant.c:255:ofd_grant_space_left()) lustre-OST0010: cli 17a94b5b-8940-b62d-589f-082653aa3e82/ffff88003789e6c8 left 3014656 &amp;lt; tot_grant 37619840 unstable 0 pending 0&lt;br/&gt;
LustreError: 25596:0:(ofd_grant.c:255:ofd_grant_space_left()) Skipped 57 previous similar messages&lt;br/&gt;
LustreError: 14192:0:(ofd_grant.c:255:ofd_grant_space_left()) lustre-OST0010: cli 17a94b5b-8940-b62d-589f-082653aa3e82/ffff88003789e6c8 left 3063808 &amp;lt; tot_grant 43010176 unstable 0 pending 0&lt;br/&gt;
LustreError: 14192:0:(ofd_grant.c:255:ofd_grant_space_left()) Skipped 65 previous similar messages&lt;/p&gt;</description>
                <environment></environment>
        <key id="22731">LU-4482</key>
            <summary>OST grants bugs</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="niu">Niu Yawei</assignee>
                                    <reporter username="shadow">Alexey Lyashkov</reporter>
                        <labels>
                            <label>MB</label>
                    </labels>
                <created>Tue, 14 Jan 2014 09:08:10 +0000</created>
                <updated>Tue, 25 Feb 2014 01:27:21 +0000</updated>
                            <resolved>Tue, 25 Feb 2014 01:27:21 +0000</resolved>
                                                    <fixVersion>Lustre 2.6.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="75014" author="green" created="Wed, 15 Jan 2014 18:43:53 +0000"  >&lt;p&gt;I just checked my logs and I frequently see this in case of OST being full. It&apos;s probably been thee for a while since I see this all the way back to when my logs started.&lt;/p&gt;

&lt;p&gt;We need to get to the root of this as this potentially can lead to unexpected data loss on the client side.&lt;/p&gt;</comment>
                            <comment id="75016" author="green" created="Wed, 15 Jan 2014 18:54:33 +0000"  >&lt;p&gt;Also it seems to started at around May 25 2013 in my test logs as I now see&lt;/p&gt;</comment>
                            <comment id="75022" author="pjones" created="Wed, 15 Jan 2014 19:12:17 +0000"  >&lt;p&gt;Niu&lt;/p&gt;

&lt;p&gt;Could you please look into this one?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="75061" author="niu" created="Thu, 16 Jan 2014 05:48:27 +0000"  >&lt;p&gt;Seems it&apos;s introduced by  &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1030&quot; title=&quot;new IO engine&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1030&quot;&gt;&lt;del&gt;LU-1030&lt;/del&gt;&lt;/a&gt; osc: new IO engine implementation&quot;, it looks to me that sync write doesn&apos;t consume grant anymore from 9fe4b52ad2ffadf125d9b5c78bb2ff9a01725707, I think we&apos;d add it back.&lt;/p&gt;

&lt;p&gt;Xiong, could you take a look at this? I think it&apos;s an unintentional change, right?&lt;/p&gt;</comment>
                            <comment id="75063" author="jay" created="Thu, 16 Jan 2014 07:14:10 +0000"  >&lt;p&gt;It&apos;s changed that way on purpose because I think it doesn&apos;t need to consume grant if the application can see the errors with a sync write.&lt;/p&gt;

&lt;p&gt;If it can cause grant issue, then grant algorithm has BUGs because pages without FROM_GRANT flag shouldn&apos;t consume reserved space.&lt;/p&gt;</comment>
                            <comment id="75067" author="niu" created="Thu, 16 Jan 2014 07:50:29 +0000"  >&lt;blockquote&gt;
&lt;p&gt;If it can cause grant issue, then grant algorithm has BUGs because pages without FROM_GRANT flag shouldn&apos;t consume reserved space.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Any kind of write (include sync write or direct io) should consume grant if the client has available grant (and the FROM_GRANT flag should be set on these pages), otherwise, OST could run of of space with client still holding lots of grant.&lt;/p&gt;</comment>
                            <comment id="75071" author="jay" created="Thu, 16 Jan 2014 08:08:59 +0000"  >&lt;p&gt;obviously the issue here is not for ENOSPC. the reserved space is less than granted bytes. Did I miss something?&lt;/p&gt;</comment>
                            <comment id="75072" author="niu" created="Thu, 16 Jan 2014 08:52:27 +0000"  >&lt;p&gt;If sync write doesn&apos;t consume grant, the grant hold by client will not decreased on sync write, however, free space on OST will be decreased, at the end, OST space will be used up by sync writes, however, client still hold grants, and further cached data will be lost.&lt;/p&gt;

&lt;p&gt;The error message shows that available space is less than total granted bytes (which means client has grant, but OST hasn&apos;t enough space for grant) it&apos;s because sync write doesn&apos;t consume grant but consumes space.&lt;/p&gt;</comment>
                            <comment id="75237" author="niu" created="Sat, 18 Jan 2014 04:36:58 +0000"  >&lt;p&gt;Well, there are two problems: &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;client should consume grant for sync write (as I mentioned above);&lt;/li&gt;
	&lt;li&gt;osd_statfs() shouldn&apos;t cache statfs data because grant mechanism relies on dt_statfs() returning fresh data.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="75238" author="niu" created="Sat, 18 Jan 2014 04:43:22 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/8911&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8911&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="77785" author="niu" created="Tue, 25 Feb 2014 01:27:21 +0000"  >&lt;p&gt;patch landed on master for 2.6&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="23274">LU-4664</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|hzwcrz:</customfieldvalue>

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