<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:14:25 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-69794] Investigate support for excluding sharding critical section checks in AutoGet</title>
                <link>https://jira.mongodb.org/browse/SERVER-69794</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;As part of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-69530&quot; title=&quot;Skip sharding DB check during index builds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-69530&quot;&gt;&lt;del&gt;SERVER-69530&lt;/del&gt;&lt;/a&gt; we discovered that Index builds need to be excluded from the critical section check of a database during commit time.&lt;/p&gt;

&lt;p&gt;One of the alternatives discussed was the possibility of adding support to the AutoGet RAII types. These currently &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0a4a4a8239993fe2203059b3d5228dfcef57b1c3/src/mongo/db/catalog_raii.cpp#L182&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;perform a sharding check&lt;/a&gt; when acquiring the DB lock. This would better document places where it is safe to not do these checks. Currently the recommended choice is to manually acquire a &lt;tt&gt;DBLock&lt;/tt&gt; or &lt;tt&gt;CollectionLock&lt;/tt&gt; to skip them.&lt;/p&gt;

&lt;p&gt;If adding support to the AutoGet methods is the option considered, a follow-up ticket should work on removing current manual lock acquisition in favour of AutoGet.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2140438">SERVER-69794</key>
            <summary>Investigate support for excluding sharding critical section checks in AutoGet</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="jordi.olivares-provencio@mongodb.com">Jordi Olivares Provencio</assignee>
                                    <reporter username="jordi.olivares-provencio@mongodb.com">Jordi Olivares Provencio</reporter>
                        <labels>
                    </labels>
                <created>Mon, 19 Sep 2022 14:28:01 +0000</created>
                <updated>Mon, 24 Jul 2023 13:12:28 +0000</updated>
                            <resolved>Mon, 24 Jul 2023 13:12:19 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="5583287" author="JIRAUSER1265133" created="Fri, 21 Jul 2023 16:46:08 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jordi.serra-torrens%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;jordi.serra-torrens@mongodb.com&quot;&gt;jordi.serra-torrens@mongodb.com&lt;/a&gt; Yes, assuming this request might not be useful elsewhere, I think we should be able to close it after &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-79150&quot; title=&quot;Reduce ScopedSetShardRole scope to setup stage of index build&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-79150&quot;&gt;&lt;del&gt;SERVER-79150&lt;/del&gt;&lt;/a&gt; is done. Will do so after finishing &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-79150&quot; title=&quot;Reduce ScopedSetShardRole scope to setup stage of index build&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-79150&quot;&gt;&lt;del&gt;SERVER-79150&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="5582553" author="JIRAUSER1257318" created="Fri, 21 Jul 2023 12:55:51 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=yujin.kang%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;yujin.kang@mongodb.com&quot;&gt;yujin.kang@mongodb.com&lt;/a&gt; My understanding is that this request was related to index builds, and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-79150&quot; title=&quot;Reduce ScopedSetShardRole scope to setup stage of index build&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-79150&quot;&gt;&lt;del&gt;SERVER-79150&lt;/del&gt;&lt;/a&gt; is addressing the problem in such a way that &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-69794&quot; title=&quot;Investigate support for excluding sharding critical section checks in AutoGet&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-69794&quot;&gt;&lt;del&gt;SERVER-69794&lt;/del&gt;&lt;/a&gt; won&apos;t be needed. Can you confirm and close this ticket?&lt;/p&gt;</comment>
                            <comment id="4847685" author="JIRAUSER1257318" created="Thu, 22 Sep 2022 11:49:30 +0000"  >&lt;p&gt;I don&apos;t think we should skip dbVersion checks in some particular occasions. If the client declared a dbVersion, it should be always checked.&lt;br/&gt;
The problem SERVVER-69530 encountered is that the opCtx that is performing the background index build &lt;a href=&quot;https://github.com/mongodb/mongo/blob/062d4605754f889093a110260695c0ff659b23ef/src/mongo/db/index_builds_coordinator_mongod.cpp#L378&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;has a dbVersion attached&lt;/a&gt;. This makes AutoGetDB perform the dbVersion check, because the opCtx declared a placement concern. If we don&apos;t want that background thread to be doing the check, we should not be emplacing the `ScopedSetShardRole` then. I&apos;m not very familiar with the index build code, but perhaps the dbVersion check should be done before starting the index build, rather than on the background build thread. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2132158">SERVER-69530</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2396880">SERVER-79150</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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25133"><![CDATA[Sharding EMEA]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 20 Sep 2022 15:43:48 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        28 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2144</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>jordi.serra-torrens@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            28 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>jordi.olivares-provencio@mongodb.com</customfieldvalue>
            <customfieldvalue>jordi.serra-torrens@mongodb.com</customfieldvalue>
            <customfieldvalue>yujin.kang@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1avnj:</customfieldvalue>

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

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