<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:53:13 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-61748] dbCheck should not hold a strong database lock during batches</title>
                <link>https://jira.mongodb.org/browse/SERVER-61748</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;While processing a batch on a collection, dbCheck &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r5.1.0/src/mongo/db/commands/dbcheck.cpp#L391&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;holds the database lock in strong shared mode&lt;/a&gt;, which unnecessarily interferes with writes to other collections.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1933966">SERVER-61748</key>
            <summary>dbCheck should not hold a strong database lock during batches</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="josef.ahmad@mongodb.com">Josef Ahmad</assignee>
                                    <reporter username="josef.ahmad@mongodb.com">Josef Ahmad</reporter>
                        <labels>
                    </labels>
                <created>Fri, 26 Nov 2021 10:47:48 +0000</created>
                <updated>Sun, 29 Oct 2023 21:45:36 +0000</updated>
                            <resolved>Wed, 8 Dec 2021 16:18:27 +0000</resolved>
                                                    <fixVersion>5.2.0</fixVersion>
                    <fixVersion>5.0.6</fixVersion>
                    <fixVersion>4.4.11</fixVersion>
                                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="4256582" author="xgen-internal-githook" created="Fri, 17 Dec 2021 14:52:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Josef Ahmad&apos;, &apos;email&apos;: &apos;josef.ahmad@mongodb.com&apos;, &apos;username&apos;: &apos;josefahmad&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-61748&quot; title=&quot;dbCheck should not hold a strong database lock during batches&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-61748&quot;&gt;&lt;del&gt;SERVER-61748&lt;/del&gt;&lt;/a&gt; dbCheck: improve database-level locking and handling of special collections&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Acquire database lock in MODE_IS between batches&lt;/li&gt;
	&lt;li&gt;Acquire database lock in MODE_IS when listing collections&lt;/li&gt;
	&lt;li&gt;Remove MODE_IX lock acquisition of the local db&lt;/li&gt;
	&lt;li&gt;Downgrade severity to warning for collections that are not consistent by design&lt;/li&gt;
	&lt;li&gt;Downgrade severity to info for collections that are dropped partway through&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;(cherry picked from commit ad3ba4b6ae53962de7b943bac4c4c50bd5d85002)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/dac8910e21e7e8835087167a6135e10257a7645b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/dac8910e21e7e8835087167a6135e10257a7645b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4251163" author="xgen-internal-githook" created="Wed, 15 Dec 2021 17:39:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Josef Ahmad&apos;, &apos;email&apos;: &apos;josef.ahmad@mongodb.com&apos;, &apos;username&apos;: &apos;josefahmad&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-61748&quot; title=&quot;dbCheck should not hold a strong database lock during batches&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-61748&quot;&gt;&lt;del&gt;SERVER-61748&lt;/del&gt;&lt;/a&gt; dbCheck: improve database-level locking and handling of special collections&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Acquire database lock in MODE_IS between batches&lt;/li&gt;
	&lt;li&gt;Acquire database lock in MODE_IS when listing collections&lt;/li&gt;
	&lt;li&gt;Remove MODE_IX lock acquisition of the local db&lt;/li&gt;
	&lt;li&gt;Downgrade severity to warning for collections that are not consistent by design&lt;/li&gt;
	&lt;li&gt;Downgrade severity to info for collections that are dropped partway through&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;(cherry picked from commit ad3ba4b6ae53962de7b943bac4c4c50bd5d85002)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6f544fdc28219537626cbe5c3a078aa5e389a1b9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6f544fdc28219537626cbe5c3a078aa5e389a1b9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4236862" author="xgen-internal-githook" created="Wed, 8 Dec 2021 15:48:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Josef Ahmad&apos;, &apos;email&apos;: &apos;josef.ahmad@mongodb.com&apos;, &apos;username&apos;: &apos;josefahmad&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-61748&quot; title=&quot;dbCheck should not hold a strong database lock during batches&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-61748&quot;&gt;&lt;del&gt;SERVER-61748&lt;/del&gt;&lt;/a&gt; dbCheck: improve database-level locking and handling of special collections&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Acquire database lock in MODE_IS between batches&lt;/li&gt;
	&lt;li&gt;Acquire database lock in MODE_IS when listing collections&lt;/li&gt;
	&lt;li&gt;Remove MODE_IX lock acquisition of the local db&lt;/li&gt;
	&lt;li&gt;Downgrade severity to warning for collections that are not consistent by design&lt;/li&gt;
	&lt;li&gt;Downgrade severity to info for collections that are dropped partway through&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ad3ba4b6ae53962de7b943bac4c4c50bd5d85002&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ad3ba4b6ae53962de7b943bac4c4c50bd5d85002&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="4213950" author="josef.ahmad" created="Mon, 29 Nov 2021 08:22:17 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=daniel.gottlieb&quot; class=&quot;user-hover&quot; rel=&quot;daniel.gottlieb&quot;&gt;daniel.gottlieb&lt;/a&gt; we&apos;re in agreement, we were already discussing internally (cc &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=geert.bosch&quot; class=&quot;user-hover&quot; rel=&quot;geert.bosch&quot;&gt;geert.bosch&lt;/a&gt;) how to avoid the collection S lock during batches by reading from a timestamp. I&apos;ve filed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-61754&quot; title=&quot;dbCheck should not hold a strong collection lock during batches&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-61754&quot;&gt;&lt;del&gt;SERVER-61754&lt;/del&gt;&lt;/a&gt; to track this follow-up.&lt;/p&gt;</comment>
                            <comment id="4213417" author="daniel.gottlieb@10gen.com" created="Sat, 27 Nov 2021 19:04:22 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=josef.ahmad&quot; class=&quot;user-hover&quot; rel=&quot;josef.ahmad&quot;&gt;josef.ahmad&lt;/a&gt;, do you intend to still take a collection X lock? Given a single dbcheck on a collection will turn into a bunch of smaller reads/oplog entries, it&apos;s probably worth avoiding that acquisition as well. I think to do that correctly, we&apos;d have to rely on reading at a timestamp, but it&apos;s still a bit of a dance to make that work. It may help to allow ourselves to let secondaries &quot;fail&quot;  if they don&apos;t have history (unlikely).&lt;/p&gt;

&lt;p&gt;But if we&apos;re trying to expedite this work, I think the ticket as you have it is fine and we can file a different ticket to remove any user-visible side-effects.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="935552">SERVER-43445</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1934779">SERVER-61765</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="423068">SERVER-30932</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1941995">SERVER-61877</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1934452">SERVER-61754</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>5.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="22495"><![CDATA[v5.1]]></customfieldvalue>
    <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    <customfieldvalue key="18953"><![CDATA[v4.4]]></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>Sat, 27 Nov 2021 19:04:22 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 7 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-855</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>
                            2 years, 7 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>daniel.gottlieb@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>josef.ahmad@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0bqy7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzv3sf:</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="5422">Execution Team 2021-11-29</customfieldvalue>
    <customfieldvalue id="5423">Execution Team 2021-12-13</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|i0bd3j:</customfieldvalue>

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