<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:51:12 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>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-39154]  Create a fail point to make it so if a LockManager lock cannot be acquired immediately, then the operation fails</title>
                <link>https://jira.mongodb.org/browse/SERVER-39154</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This is necessary for prepare transaction testing so that DDL ops do not block forever.&lt;/p&gt;</description>
                <environment></environment>
        <key id="676854">SERVER-39154</key>
            <summary> Create a fail point to make it so if a LockManager lock cannot be acquired immediately, then the operation fails</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="vesselina.ratcheva@mongodb.com">Vesselina Ratcheva</assignee>
                                    <reporter username="judah.schvimer@mongodb.com">Judah Schvimer</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 Jan 2019 18:50:46 +0000</created>
                <updated>Sun, 29 Oct 2023 22:24:51 +0000</updated>
                            <resolved>Tue, 5 Mar 2019 00:16:26 +0000</resolved>
                                                    <fixVersion>4.1.9</fixVersion>
                                    <component>Concurrency</component>
                    <component>Testing Infrastructure</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2170388" author="xgen-internal-githook" created="Tue, 5 Mar 2019 00:14:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Vesselina Ratcheva&apos;, &apos;email&apos;: &apos;vesselina.ratcheva@10gen.com&apos;, &apos;username&apos;: &apos;vessy-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-39154&quot; title=&quot; Create a fail point to make it so if a LockManager lock cannot be acquired immediately, then the operation fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-39154&quot;&gt;&lt;del&gt;SERVER-39154&lt;/del&gt;&lt;/a&gt; Create a fail point to make it so if a LockManager lock cannot be acquired immediately, then the operation fails&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6f3c3df4fc0abda76fd97e970ced4a01f0c48007&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6f3c3df4fc0abda76fd97e970ced4a01f0c48007&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2128065" author="milkie" created="Fri, 25 Jan 2019 20:25:47 +0000"  >&lt;p&gt;If you limit the failpoint to apply to only MODE_S and MODE_X acquisitions for all resource types, that limits the amount of unintentional failures you might see.&#160; I say, try it and see if it works.&lt;/p&gt;</comment>
                            <comment id="2128043" author="max.hirschhorn@10gen.com" created="Fri, 25 Jan 2019 20:08:34 +0000"  >&lt;blockquote&gt;
&lt;p&gt;but if an index build hangs for 5 seconds waiting on a lock, we&apos;d want that to fail&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;To clarify one point that may be getting missed here, the index build wouldn&apos;t &quot;hang for 5 seconds&quot; in the kind of test the initial sync fuzzer would generate. It would hang forever because there&apos;s a single thread of execution on the client and it would have run&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;&lt;tt&gt;insert&lt;/tt&gt; with &lt;tt&gt;txnNumber=5&lt;/tt&gt; on the test.mycoll collection&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;prepareTransaction&lt;/tt&gt; with &lt;tt&gt;txnNumber=5&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;drop&lt;/tt&gt; on the test.mycoll2 collection&lt;/li&gt;
	&lt;li&gt;(unreachable) &lt;tt&gt;commitTransaction&lt;/tt&gt; with &lt;tt&gt;txnNumber=5&lt;/tt&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;This failpoint only needs to apply for &lt;tt&gt;MODE_S&lt;/tt&gt; and &lt;tt&gt;MODE_X&lt;/tt&gt; lock acquisitions because &lt;tt&gt;MODE_IS&lt;/tt&gt; and &lt;tt&gt;MODE_IX&lt;/tt&gt; would be compatible with the locks held by a transaction.&lt;/p&gt;</comment>
                            <comment id="2128005" author="judah.schvimer" created="Fri, 25 Jan 2019 19:39:44 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=max.hirschhorn&quot; class=&quot;user-hover&quot; rel=&quot;max.hirschhorn&quot;&gt;max.hirschhorn&lt;/a&gt; suggested this instead of using &lt;tt&gt;maxTimeMS&lt;/tt&gt;. I believe that was to allow the operation to take as long as it wants for everything but the lock acquisition. If an index build with no lock contention would take 45 seconds, we want that to succeed, but if an index build hangs for 5 seconds waiting on a lock, we&apos;d want that to fail.&lt;/p&gt;</comment>
                            <comment id="2127970" author="milkie" created="Fri, 25 Jan 2019 19:05:07 +0000"  >&lt;p&gt;Wouldn&apos;t it be easier to add a timeout to all DDL operations (either by modifying the fuzzer, or by editing the timeout on the server when a failpoint was activated)?&#160; I am concerned that you might find lots of things would break if you make all lock acquisitions fail immediately if the resource is contended.&lt;/p&gt;</comment>
                            <comment id="2127214" author="judah.schvimer" created="Fri, 25 Jan 2019 14:48:11 +0000"  >&lt;p&gt;Once a transaction is in prepare it no longer has a time limit. Since the fuzzer is single-threaded, if it does a DDL op before committing or aborting the prepared transaction, it will block on the DDL op and never try to commit or abort the transaction.&lt;/p&gt;</comment>
                            <comment id="2127105" author="milkie" created="Fri, 25 Jan 2019 13:32:49 +0000"  >&lt;p&gt;Why would DDL ops ever block forever?&#160; I thought all transactions had a time limit to eventually commit or abort.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="713520">SERVER-40038</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="727192">SERVER-40420</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="876791">SERVER-42452</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 25 Jan 2019 13:32:49 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 49 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1226</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 49 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>judah.schvimer@mongodb.com</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
            <customfieldvalue>vesselina.ratcheva@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|huk1sn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htqof3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2784">Repl 2019-02-25</customfieldvalue>
    <customfieldvalue id="2822">Repl 2019-03-11</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hujo1z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>