<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:40:23 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-35613] Two-phase drop can prevent subsequent transaction from acquiring locks.</title>
                <link>https://jira.mongodb.org/browse/SERVER-35613</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Version 4.1.0-353-gc741174b3. Running &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/9684fb6c0383722865b4b04e59128b45ad17fddf/src/libmongoc/tests/test-mongoc-transactions.c#L46&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;a C Driver test&lt;/a&gt; that does the following:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Drop a collection called &quot;test&quot;, ignore errors if the collection doesn&apos;t exist&lt;/li&gt;
	&lt;li&gt;Call 
{create: &quot;test&quot;}&lt;/li&gt;
	&lt;li&gt;With a new lsid and txnNumber, insert a document into &quot;test&quot;&lt;/li&gt;
	&lt;li&gt;Expected: success, the transaction is started and the document is inserted&lt;/li&gt;
	&lt;li&gt;Actual: &quot;Unable to acquire lock &apos;
{7905466228821833060: Database, 987937201180751204}
&lt;p&gt;&apos; within a max lock request timeout of &apos;5ms&apos; milliseconds.&quot;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Same in 4.0.0-rc4.  Works if I do &lt;b&gt;not&lt;/b&gt; drop the collection immediately beforehand.&lt;/p&gt;</description>
                <environment></environment>
        <key id="560037">SERVER-35613</key>
            <summary>Two-phase drop can prevent subsequent transaction from acquiring locks.</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="3">Duplicate</resolution>
                                        <assignee username="dianna.hohensee@mongodb.com">Dianna Hohensee</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Jun 2018 15:34:57 +0000</created>
                <updated>Sat, 16 Jun 2018 03:06:55 +0000</updated>
                            <resolved>Sat, 16 Jun 2018 03:06:55 +0000</resolved>
                                    <version>4.0.0-rc4</version>
                                                                        <votes>0</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="1922074" author="jesse" created="Fri, 15 Jun 2018 17:30:42 +0000"  >&lt;p&gt;Thanks Dianna - the majority writeConcern fixes my problem. You can close this duplicate, and I have no opinion about the timeout value.&lt;/p&gt;</comment>
                            <comment id="1921904" author="dianna.hohensee" created="Fri, 15 Jun 2018 16:15:14 +0000"  >&lt;p&gt;Drop is two-phase, asynchronously taking a database exclusive lock. Transactions meanwhile have lock request timeout overrides to prevent deadlocks.&lt;/p&gt;

&lt;p&gt;Adding a majority writeConcern to the drop cmd will make the drop cmd wait for the asynchronous second phase to finish before returning, making sure the subsequent transaction operation will not potentially run into it.&lt;/p&gt;</comment>
                            <comment id="1921892" author="xgen-internal-githook" created="Fri, 15 Jun 2018 16:07:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;ajdavis&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2588&quot; title=&quot;ASAN and UBSAN tests fail when built with CMake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2588&quot;&gt;&lt;del&gt;CDRIVER-2588&lt;/del&gt;&lt;/a&gt; avoid server lock timeout in test&lt;/p&gt;

&lt;p&gt;See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35613&quot; title=&quot;Two-phase drop can prevent subsequent transaction from acquiring locks.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35613&quot;&gt;&lt;del&gt;SERVER-35613&lt;/del&gt;&lt;/a&gt;, dropping and creating the collection right before&lt;br/&gt;
trying an insert in a transaction causes an error.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/ee2c423871cec96e587e758ffcbbda188fc49bdd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/ee2c423871cec96e587e758ffcbbda188fc49bdd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1921878" author="william.schultz" created="Fri, 15 Jun 2018 15:59:32 +0000"  >&lt;p&gt;This is probably the same issue described in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-34349&quot; title=&quot;Wait for drop to be majority committed in transaction tests&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-34349&quot;&gt;&lt;del&gt;SERVER-34349&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="523439">SERVER-34372</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 15 Jun 2018 15:59:32 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 34 weeks, 5 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_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>false</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 34 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>jesse@mongodb.com</customfieldvalue>
            <customfieldvalue>dianna.hohensee@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>william.schultz@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu0q5z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htrktz:</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_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|hu0cfb:</customfieldvalue>

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