<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:43:31 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-4528] osd_trans_exec_op()) ASSERTION( oti-&gt;oti_declare_ops_rb[rb] &gt; 0 ) failed: rb = 0</title>
                <link>https://jira.whamcloud.com/browse/LU-4528</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When running sanity on the latest master build, hit following LBUG on client:&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: == sanity test 60a: llog sanity tests run from kernel module ============ 15:06:20 (1390431980)
Lustre: DEBUG MARKER: test_60 run 3219 - from kernel mode
Lustre: 9324:0:(llog_test.c:1018:llog_test_setup()) Setup llog-test device over MGS device
Lustre: 9324:0:(llog_test.c:110:llog_test_1()) 1a: create a log with name: aee6dfbf
Lustre: 9324:0:(llog_test.c:127:llog_test_1()) 1b: close newly-created log
Lustre: 9324:0:(llog_test.c:151:llog_test_2()) 2a: re-open a log with name: aee6dfbf
Lustre: 9324:0:(llog_test.c:232:llog_test_3()) 3a: write one create_rec
Lustre: 9324:0:(llog_test.c:244:llog_test_3()) 3b: write 10 cfg log records with 8 bytes bufs
Lustre: 9324:0:(llog_test.c:265:llog_test_3()) 3c: write 1000 more log records
Lustre: 9324:0:(llog_test.c:280:llog_test_3()) 3d: write log more than BITMAP_SIZE, return -ENOSPC
Lustre: 9324:0:(llog_test.c:311:llog_test_3()) 3d: wrote 64364 more records before end of llog is reached
Lustre: 9324:0:(llog_test.c:340:llog_test_4()) 4a: create a catalog log with name: aee6dfc0
Lustre: 9324:0:(llog_test.c:355:llog_test_4()) 4b: write 1 record into the catalog
Lustre: 9324:0:(llog_test.c:370:llog_test_4()) 4c: cancel 1 log record
Lustre: 9324:0:(llog_test.c:382:llog_test_4()) 4d: write 65536 more log records
Lustre: 9324:0:(llog_test.c:398:llog_test_4()) 4e: add 5 large records, one record per block
Lustre: 9324:0:(llog_test.c:418:llog_test_4()) 4f: put newly-created catalog
Lustre: 9324:0:(llog_test.c:516:llog_test_5()) 5a: re-open catalog by id
Lustre: 9324:0:(llog_test.c:529:llog_test_5()) 5b: print the catalog entries.. we expect 2
Lustre: 9325:0:(llog_test.c:447:cat_print_cb()) seeing record at index 1 - [0x1:0xc:0x0] in log [0xa:0xb:0x0]
Lustre: 9325:0:(llog_test.c:447:cat_print_cb()) seeing record at index 2 - [0x1:0xd:0x0] in log [0xa:0xb:0x0]
Lustre: 9324:0:(llog_test.c:541:llog_test_5()) 5c: Cancel 65536 records, see one log zapped
Lustre: 9324:0:(llog_test.c:549:llog_test_5()) 5c: print the catalog entries.. we expect 1
Lustre: 9324:0:(llog_test.c:561:llog_test_5()) 5d: add 1 record to the log with many canceled empty pages
Lustre: 9324:0:(llog_test.c:569:llog_test_5()) 5e: print plain log entries.. expect 6
Lustre: 9324:0:(llog_test.c:581:llog_test_5()) 5f: print plain log entries reversely.. expect 6
Lustre: 9324:0:(llog_test.c:595:llog_test_5()) 5g: close re-opened catalog
Lustre: 9324:0:(llog_test.c:625:llog_test_6()) 6a: re-open log aee6dfbf using client API
Lustre: MGS: non-config logname received: aee6dfbf
Lustre: 9324:0:(llog_test.c:657:llog_test_6()) 6b: process log aee6dfbf using client API
Lustre: 9324:0:(llog_test.c:661:llog_test_6()) 6b: processed 64364 records
Lustre: 9324:0:(llog_test.c:668:llog_test_6()) 6c: process log aee6dfbf reversely using client API
Lustre: 9324:0:(llog_test.c:672:llog_test_6()) 6c: processed 64364 records
Lustre: 9324:0:(llog_test.c:820:llog_test_7()) 7a: test llog_logid_rec
LustreError: 9324:0:(osd_io.c:1396:osd_ldiskfs_write_record()) loop0: error reading offset 1794048 (block 438): rc = -28
LustreError: 9324:0:(llog_osd.c:156:llog_osd_write_blob()) lustre-MDT0000-osd: error writing log record: rc = -28
LustreError: 9324:0:(osd_internal.h:970:osd_trans_exec_op()) ASSERTION( oti-&amp;gt;oti_declare_ops_rb[rb] &amp;gt; 0 ) failed: rb = 0
LustreError: 9324:0:(osd_internal.h:970:osd_trans_exec_op()) LBUG
Pid: 9324, comm: lctl

Message from
Call Trace:
 [&amp;lt;ffffffffa0369895&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
 [&amp;lt;ffffffffa0369e97&amp;gt;] lbug_with_loc+0x47/0xb0 [libcfs]
 [&amp;lt;ffffffffa0ccdb3b&amp;gt;] osd_trans_exec_op+0x2ab/0x2e0 [osd_ldiskfs]
 [&amp;lt;ffffffffa0ce0583&amp;gt;] osd_attr_set+0xe3/0x540 [osd_ldiskfs]
 [&amp;lt;ffffffffa0ced713&amp;gt;] ? osd_punch+0x1d3/0x620 [osd_ldiskfs]
 [&amp;lt;ffffffffa04b5081&amp;gt;] llog_osd_write_blob+0x211/0x850 [obdclass]
 [&amp;lt;ffffffffa04b906d&amp;gt;] llog_osd_write_rec+0xacd/0x1390 [obdclass]
 syslogd@client- [&amp;lt;ffffffffa04a74f8&amp;gt;] llog_write_rec+0xc8/0x290 [obdclass]
 [&amp;lt;ffffffffa04a8c6d&amp;gt;] llog_write+0x2ad/0x420 [obdclass]
 [&amp;lt;ffffffffa04594fd&amp;gt;] llog_test_7_sub+0x16d/0xaf0 [llog_test]
3 at Jan 22 15:0 [&amp;lt;ffffffffa0459fbf&amp;gt;] llog_test_7+0x13f/0xa10 [llog_test]
 [&amp;lt;ffffffffa045bd4a&amp;gt;] llog_run_tests+0x14ba/0x1e50 [llog_test]
 [&amp;lt;ffffffffa04b179e&amp;gt;] ? llog_setup+0x3be/0x910 [obdclass]
 [&amp;lt;ffffffffa045ce59&amp;gt;] llog_test_setup+0x779/0x8c0 [llog_test]
 [&amp;lt;ffffffffa04e2ebb&amp;gt;] obd_setup+0x19b/0x290 [obdclass]
 [&amp;lt;ffffffff81168043&amp;gt;] ? kmem_cache_alloc_trace+0x1a3/0x1b0
6:22 ...
 kern [&amp;lt;ffffffffa04c601b&amp;gt;] ? class_new_export+0x72b/0x960 [obdclass]
 [&amp;lt;ffffffffa04e31b8&amp;gt;] class_setup+0x208/0x870 [obdclass]
 [&amp;lt;ffffffffa04eb72c&amp;gt;] class_process_config+0xc6c/0x1ad0 [obdclass]
 [&amp;lt;ffffffff811685ac&amp;gt;] ? __kmalloc+0x20c/0x220
 [&amp;lt;ffffffffa04a4d6d&amp;gt;] ? obd_ioctl_getdata+0x12d/0x1120 [obdclass]
 [&amp;lt;ffffffffa04bd3fb&amp;gt;] class_handle_ioctl+0x3bb/0x1ef0 [obdclass]
 [&amp;lt;ffffffffa04a42ab&amp;gt;] obd_class_ioctl+0x4b/0x190 [obdclass]
 [&amp;lt;ffffffff81195382&amp;gt;] vfs_ioctl+0x22/0xa0
 [&amp;lt;ffffffff81195524&amp;gt;] do_vfs_ioctl+0x84/0x580
 [&amp;lt;ffffffff81182bf1&amp;gt;] ? __fput+0x1a1/0x210
 [&amp;lt;ffffffff81195aa1&amp;gt;] sys_ioctl+0x81/0xa0
 [&amp;lt;ffffffff8100b072&amp;gt;] system_call_fastpath+0x16/0x1b
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="22851">LU-4528</key>
            <summary>osd_trans_exec_op()) ASSERTION( oti-&gt;oti_declare_ops_rb[rb] &gt; 0 ) failed: rb = 0</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="tappro">Mikhail Pershin</assignee>
                                    <reporter username="sarah">Sarah Liu</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Jan 2014 23:17:31 +0000</created>
                <updated>Thu, 16 May 2019 14:16:38 +0000</updated>
                            <resolved>Fri, 9 May 2014 15:02:18 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                    <version>Lustre 2.4.2</version>
                    <version>Lustre 2.5.1</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="75521" author="jlevi" created="Thu, 23 Jan 2014 18:50:04 +0000"  >&lt;p&gt;Mike,&lt;br/&gt;
Could you have a look and comment on this one?&lt;br/&gt;
Thank you!&lt;/p&gt;</comment>
                            <comment id="81465" author="tappro" created="Fri, 11 Apr 2014 22:10:35 +0000"  >&lt;p&gt;yes&lt;/p&gt;</comment>
                            <comment id="81494" author="tappro" created="Sun, 13 Apr 2014 13:17:51 +0000"  >&lt;p&gt;per Alex comment this issue may happen when transaction is trying to do undo in case of some errors during processing. It was -28 (ENOSPC) error during llog testing and current transaction starts to undo. There can be other cases but with the same scenario.&lt;/p&gt;

&lt;p&gt;I have no idea how to fix that because we cannot just include all credits for undo in the current transaction because that will increase number of credits dramatically. This is somehow expected and turned off in production code, so it is not critical failure. I wonder why to have this assertion and break test runs if we know about that issue and can&apos;t make it works properly in all cases. Maybe Alex and/or Andreas have some ideas about how to handle this gracefully.&lt;/p&gt;</comment>
                            <comment id="81495" author="tappro" created="Sun, 13 Apr 2014 13:54:17 +0000"  >&lt;p&gt;Meanwhile, this particular case can be fixed by declaring attr_set operation in llog_osd_declare_write_rec(), that is missing and that is why it fails in case of error.&lt;/p&gt;</comment>
                            <comment id="81496" author="tappro" created="Sun, 13 Apr 2014 14:07:43 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4901&quot; title=&quot;Remove triple buffer update from llog_osd_write_blob()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4901&quot;&gt;&lt;del&gt;LU-4901&lt;/del&gt;&lt;/a&gt; may solve this issue naturally in other way&lt;/p&gt;</comment>
                            <comment id="81860" author="adilger" created="Thu, 17 Apr 2014 18:07:02 +0000"  >&lt;p&gt;Mike, I thought that the declare for each update also allowed the &quot;undo&quot; update in case of error handling?  Is that not the case for these llog updates because they are potentially split across multiple transaction handles?&lt;/p&gt;

&lt;p&gt;I&apos;d definitely prefer to fix this via &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4901&quot; title=&quot;Remove triple buffer update from llog_osd_write_blob()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4901&quot;&gt;&lt;del&gt;LU-4901&lt;/del&gt;&lt;/a&gt; instead of adding more workarounds in the transaction credit accounting to handle this case.  In that case, consider &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4901&quot; title=&quot;Remove triple buffer update from llog_osd_write_blob()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4901&quot;&gt;&lt;del&gt;LU-4901&lt;/del&gt;&lt;/a&gt; a 2.6.0 blocker in order to fix this bug.&lt;/p&gt;</comment>
                            <comment id="82073" author="adilger" created="Mon, 21 Apr 2014 17:44:11 +0000"  >&lt;p&gt;Closing &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4901&quot; title=&quot;Remove triple buffer update from llog_osd_write_blob()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4901&quot;&gt;&lt;del&gt;LU-4901&lt;/del&gt;&lt;/a&gt; so there is only a single blocker bug for this problem.  This bug will be kept open as a 2.6 blocker. &lt;/p&gt;</comment>
                            <comment id="82235" author="tappro" created="Wed, 23 Apr 2014 03:22:05 +0000"  >&lt;p&gt;I agree that &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4901&quot; title=&quot;Remove triple buffer update from llog_osd_write_blob()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4901&quot;&gt;&lt;del&gt;LU-4901&lt;/del&gt;&lt;/a&gt; is preferable but I didn&apos;t estimate how complex patch may be. At the same time the fix is simple and straightforward - there is just setattr declaration is missing. Therefore I will start with &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4901&quot; title=&quot;Remove triple buffer update from llog_osd_write_blob()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4901&quot;&gt;&lt;del&gt;LU-4901&lt;/del&gt;&lt;/a&gt; patch but switch to the simple fix just to get rid of this issue if there will be any unexpected complexity.&lt;/p&gt;</comment>
                            <comment id="82565" author="tappro" created="Sat, 26 Apr 2014 11:02:39 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/10108/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10108/&lt;/a&gt; - patch removes 3-steps write for llog records, eliminating the extra credits need for error case.&lt;/p&gt;</comment>
                            <comment id="82776" author="jay" created="Tue, 29 Apr 2014 18:36:56 +0000"  >&lt;p&gt;Is it possible to provide a workaround patch? I&apos;m hitting this issue all the time by running racer.&lt;/p&gt;</comment>
                            <comment id="82825" author="tappro" created="Wed, 30 Apr 2014 03:15:16 +0000"  >&lt;p&gt;the link above is the patch, try it. If you need something simpler then add dt_declare_attr_set() in llog_osd_declare_write_rec() right after punch declaration.&lt;/p&gt;</comment>
                            <comment id="83632" author="jlevi" created="Fri, 9 May 2014 15:02:18 +0000"  >&lt;p&gt;Patch landed to Master. Please reopen ticket if more work is needed.&lt;/p&gt;</comment>
                            <comment id="83816" author="pichong" created="Mon, 12 May 2014 09:41:44 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;It seems we hit the same issue in lustre 2.4.2.&lt;br/&gt;
Would it be possible to have the patch backported in b2_4 ?&lt;/p&gt;

&lt;p&gt;thanks,&lt;br/&gt;
Gr&#233;goire.&lt;/p&gt;</comment>
                            <comment id="93184" author="pjones" created="Thu, 4 Sep 2014 11:41:19 +0000"  >&lt;p&gt;b2_5 path &lt;a href=&quot;http://review.whamcloud.com/11751&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11751&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="96981" author="bzzz" created="Wed, 22 Oct 2014 05:40:41 +0000"  >&lt;p&gt;Peter, this can be improved with &lt;a href=&quot;http://review.whamcloud.com/#/c/12169/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/12169/&lt;/a&gt; IMO&lt;/p&gt;</comment>
                            <comment id="96996" author="pjones" created="Wed, 22 Oct 2014 11:08:59 +0000"  >&lt;p&gt;Alex&lt;/p&gt;

&lt;p&gt;Then could you please open a new ticket to track that work and link it to this one?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="97108" author="bzzz" created="Thu, 23 Oct 2014 09:35:09 +0000"  >&lt;p&gt;Peter, I&apos;m not sure how to link, but that&apos;s it - &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5794&quot; title=&quot;improve credit checks in osd-ldiskfs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5794&quot;&gt;&lt;del&gt;LU-5794&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;thanks, Alex&lt;/p&gt;</comment>
                            <comment id="97310" author="pjones" created="Thu, 23 Oct 2014 19:11:22 +0000"  >&lt;p&gt;Thanks Alex. For future reference you find Link under the More tab &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="98017" author="adilger" created="Fri, 31 Oct 2014 00:40:29 +0000"  >&lt;p&gt;You can also add links between patches by clicking the &quot;+&quot; on the right side of the &lt;tt&gt;Issue Links&lt;/tt&gt; header.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="24196">LU-4899</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="27187">LU-5794</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="24198">LU-4901</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="29826">LU-6556</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="25470">LU-5303</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="21715">LU-4183</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|hzwdg7:</customfieldvalue>

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