<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:24:28 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-51091] Rearrange lock helper (AutoGetCollection*) templating and inheritance to have AutoGetCollection and AutoGetCollectionLFR bases</title>
                <link>https://jira.mongodb.org/browse/SERVER-51091</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Originally (v4.4), we had a &lt;tt&gt;AutoGetCollection&lt;/tt&gt; class that handled getting the locks and collection state; and a &lt;tt&gt;AutoGetCollectionForRead&lt;/tt&gt; that had a &lt;tt&gt;AutoGetCollection&lt;/tt&gt; and did a lot of additional logic unrelated to the catalog state. We&apos;re going to need something like this:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;AutoGetCollection&lt;/tt&gt; (as it used to be pre templating)&lt;/p&gt;

&lt;p&gt;a new &lt;tt&gt;AutoGetCollectionLFR&lt;/tt&gt; (like the original &lt;tt&gt;AutoGetCollection&lt;/tt&gt; but reduced logic because no db/coll locks, no RSTL either but should make it optional for future LFR catalog operations)&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;AutoGetCollectionForReadBase&lt;/tt&gt; (templated like &lt;tt&gt;AutoGetCollectionBase&lt;/tt&gt; today, but for to allow AutoGetCollectionForRead logic to be shared for LFR and non-LFR reads)&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;AutoGetCollectionForRead&amp;lt;AutoGetCollection&amp;gt;&lt;/tt&gt; (inheriting &lt;tt&gt;AutoGetCollectionForReadBase&lt;/tt&gt;)&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;AutoGetCollectionForReadLFR&amp;lt;AutoGetCollectionLFR&amp;gt;&lt;/tt&gt; (inheriting &lt;tt&gt;AutoGetCollectionForReadBase&lt;/tt&gt;)&lt;/p&gt;

&lt;p&gt;Then in a future world with more catalog ops being LFR, &lt;tt&gt;AutoGetCollectionLFR&lt;/tt&gt; would be used more.&lt;/p&gt;

&lt;p&gt;LFR helpers use &lt;tt&gt;shared_ptr&amp;lt;const Collection&amp;gt;&lt;/tt&gt; and the rest use &lt;tt&gt;Collection*&lt;/tt&gt;. This was my original problem, how to have a &lt;tt&gt;AutoGetCollectionForRead&lt;/tt&gt; and &lt;tt&gt;AutoGetCollectionForReadLFR&lt;/tt&gt; with one having a raw &lt;tt&gt;Collection*&lt;/tt&gt; and the other a &lt;tt&gt;shared_ptr&amp;lt;const Collection&amp;gt;&lt;/tt&gt;. Also need to tie in the soon to be lack of collection/db lock handling, and therefore removal of some checks, in the helper internals.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;AutoGetCollectionForRead&lt;/tt&gt; uses a &lt;tt&gt;AutoGetCollection&lt;/tt&gt; that does a bunch of locking stuff. An &lt;tt&gt;AutoGetCollectionForReadLFR&lt;/tt&gt; still needs the logic &lt;tt&gt;AutoGetCollectionForRead&lt;/tt&gt; implements, but doesn&apos;t want the same logic &lt;tt&gt;AutoGetCollectionBase&lt;/tt&gt; implements.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1483631">SERVER-51091</key>
            <summary>Rearrange lock helper (AutoGetCollection*) templating and inheritance to have AutoGetCollection and AutoGetCollectionLFR bases</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="dianna.hohensee@mongodb.com">Dianna Hohensee</assignee>
                                    <reporter username="dianna.hohensee@mongodb.com">Dianna Hohensee</reporter>
                        <labels>
                    </labels>
                <created>Tue, 22 Sep 2020 16:48:07 +0000</created>
                <updated>Sun, 29 Oct 2023 22:02:52 +0000</updated>
                            <resolved>Wed, 30 Sep 2020 15:32:45 +0000</resolved>
                                                    <fixVersion>4.8.0</fixVersion>
                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="3418728" author="xgen-internal-githook" created="Wed, 30 Sep 2020 15:26:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dianna Hohensee&apos;, &apos;email&apos;: &apos;dianna.hohensee@mongodb.com&apos;, &apos;username&apos;: &apos;DiannaHohensee&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-51091&quot; title=&quot;Rearrange lock helper (AutoGetCollection*) templating and inheritance to have AutoGetCollection and AutoGetCollectionLFR bases&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-51091&quot;&gt;&lt;del&gt;SERVER-51091&lt;/del&gt;&lt;/a&gt; Rearrange AutoGetCollection templating and inheritance to have separate -LFR and non-LFR (lock-free read) lock helpers.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3b8dfefeb9809a826354460b653b9d964730a18a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3b8dfefeb9809a826354460b653b9d964730a18a&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="1493489">SERVER-51187</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>1.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_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>Wed, 30 Sep 2020 15:26:29 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 19 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-51187'>SERVER-51187</a></s>]]></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-1527</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>
                            3 years, 19 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dianna.hohensee@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hy7fv3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxoz4n:</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="4214">Execution Team 2020-10-05</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|hy724f:</customfieldvalue>

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