<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:24:14 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-30554] relax locking mode in applyOps when applying CRUD-only ops non-atomically</title>
                <link>https://jira.mongodb.org/browse/SERVER-30554</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;With &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29802&quot; title=&quot;Non-atomic applyOps command should not take out a global exclusive lock&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29802&quot;&gt;&lt;del&gt;SERVER-29802&lt;/del&gt;&lt;/a&gt;, we can run multiple applyOps on the same server concurrently if we use &lt;/p&gt;
{allowAtomic: false}
&lt;p&gt; and apply only CRUD. In this mode, applyOps() uses MODE_X to lock the database before calling applyOperation_inlock(). This does not take advantage of storage engines that support document level concurrency.&lt;/p&gt;

&lt;p&gt;This ticket proposes to relax the locking rules in applyOps() to use MODE_IX instead of MODE_X when applying CRUD-only workloads non-atomically.&lt;/p&gt;</description>
                <environment></environment>
        <key id="413836">SERVER-30554</key>
            <summary>relax locking mode in applyOps when applying CRUD-only ops non-atomically</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="benety.goh@mongodb.com">Benety Goh</assignee>
                                    <reporter username="benety.goh@mongodb.com">Benety Goh</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Aug 2017 14:28:56 +0000</created>
                <updated>Mon, 30 Oct 2023 23:14:32 +0000</updated>
                            <resolved>Thu, 10 Aug 2017 00:22:08 +0000</resolved>
                                                    <fixVersion>3.4.9</fixVersion>
                    <fixVersion>3.5.12</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1645328" author="xgen-internal-githook" created="Thu, 10 Aug 2017 17:04:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;benety&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;name&apos;: &apos;Benety Goh&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30554&quot; title=&quot;relax locking mode in applyOps when applying CRUD-only ops non-atomically&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30554&quot;&gt;&lt;del&gt;SERVER-30554&lt;/del&gt;&lt;/a&gt; relax locking mode in applyOps when applying CRUD-only ops non-atomically&lt;/p&gt;

&lt;p&gt;This allows concurrent applyOps commands to update the same collection on storage&lt;br/&gt;
engines that support document level concurrency.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit bca3f70566991afa2dfb38dc06494b0f6f04fffa)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b8eb96c3c9c2ad2e0c4520785ba49cb9830b1a21&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b8eb96c3c9c2ad2e0c4520785ba49cb9830b1a21&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1645272" author="xgen-internal-githook" created="Thu, 10 Aug 2017 15:56:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;benety&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;name&apos;: &apos;Benety Goh&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30554&quot; title=&quot;relax locking mode in applyOps when applying CRUD-only ops non-atomically&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30554&quot;&gt;&lt;del&gt;SERVER-30554&lt;/del&gt;&lt;/a&gt; add library for applyOps concurrent tests&lt;/p&gt;

&lt;p&gt;(cherry picked from commit b871fce9d308271f95159900c0e41d435f31e5ab)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/271cf7c28c00ffb15442fab3e5b49edef5797b9b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/271cf7c28c00ffb15442fab3e5b49edef5797b9b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1644726" author="xgen-internal-githook" created="Thu, 10 Aug 2017 00:21:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;benety&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;name&apos;: &apos;Benety Goh&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30554&quot; title=&quot;relax locking mode in applyOps when applying CRUD-only ops non-atomically&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30554&quot;&gt;&lt;del&gt;SERVER-30554&lt;/del&gt;&lt;/a&gt; relax locking mode in applyOps when applying CRUD-only ops non-atomically&lt;/p&gt;

&lt;p&gt;This allows concurrent applyOps commands to update the same collection on storage&lt;br/&gt;
engines that support document level concurrency.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bca3f70566991afa2dfb38dc06494b0f6f04fffa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bca3f70566991afa2dfb38dc06494b0f6f04fffa&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1644432" author="xgen-internal-githook" created="Wed, 9 Aug 2017 19:11:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;benety&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;name&apos;: &apos;Benety Goh&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30554&quot; title=&quot;relax locking mode in applyOps when applying CRUD-only ops non-atomically&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30554&quot;&gt;&lt;del&gt;SERVER-30554&lt;/del&gt;&lt;/a&gt; add library for applyOps concurrent tests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b871fce9d308271f95159900c0e41d435f31e5ab&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b871fce9d308271f95159900c0e41d435f31e5ab&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1644037" author="steve.briskin@10gen.com" created="Wed, 9 Aug 2017 14:04:29 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spencer&quot; class=&quot;user-hover&quot; rel=&quot;spencer&quot;&gt;spencer&lt;/a&gt;, The deployments that tend to cause us the most issues tend to have one, maybe two, very active collections and those collections tend to be in the same DB.  I&apos;m sure DB and collection-level concurrency will help some cases, but I don&apos;t think it&apos;ll help the typical case that we struggle with.&lt;/p&gt;</comment>
                            <comment id="1643619" author="spencer" created="Tue, 8 Aug 2017 22:15:56 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=steve.briskin&quot; class=&quot;user-hover&quot; rel=&quot;steve.briskin&quot;&gt;steve.briskin&lt;/a&gt;, what level of concurrency do you need out of applyOps for backup&apos;s use case?  We currently have got it down to db-level concurrency (we&apos;ll take a db-level lock for the duration of the applyOps in the non-atomic form when applying crud ops).  Is that sufficient?  Would collection-level concurrency be sufficient?  Or do you need true document-level concurrency?  I&apos;m not sure if just doing collection-level actually buys us anything over doing document-level, just want to understand the requirements.  Thanks!&lt;/p&gt;</comment>
                            <comment id="1643483" author="spencer" created="Tue, 8 Aug 2017 20:18:51 +0000"  >&lt;p&gt;Seems like it should be possible even if applying non-crud ops.  In theory I don&apos;t think the applyOps command should need to do &lt;b&gt;any&lt;/b&gt; locking in the non-atomic form since every sub-command or operation must already be doing its own locking.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="397153">SERVER-29802</issuekey>
        </issuelink>
                            </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>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="18692">3.4.8</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>Tue, 8 Aug 2017 20:18:51 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 26 weeks, 6 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>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>
                            6 years, 26 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>benety.goh@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
            <customfieldvalue>steve.briskin</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htcjj3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht4av3:</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="1769">Repl 2017-08-21</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

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

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