<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:41:21 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-35890] Make Authorization user cache a general purpose lifetime manager</title>
                <link>https://jira.mongodb.org/browse/SERVER-35890</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The AuthorizationManager maintains a pool of User* objects. Callers which need to access to a particular User* will fetch it from the pool and bump a ref-count. Periodically, the AuthorizationManager may discover that an update has occurred which pertains to a particular User*. When this occurs, it will mark the User* as invalid by settingan Atomic variable on the object, and remove it from the pool. Future callers will no longer be able to acquire the invalid User* from the pool, and will have to create a new instance from disk. Past callers will eventually check and discover that their User* is invalid, discard it, and fetch a new instance from the pool. Once the User*&apos;s refcount reaches 0, it will be freed.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;This pool allows concurrent, eventually consistent, access to point in time copies of read-only data. Once a User* is checked out, no locks are required to access it. Once a User* is invalidated, its consumers will eventually figure out they should stop using it. The pool maintains a generation counter, which can be advertised by config servers. A mongos operating off a different generation count than its config server will know that its cache is inconsistent and should be purged.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;This pattern would be useful to manage the lifetimes of other types of objects in a cluster. We should extract the pool from the AuthorizationManager, and templatize it to operate off generic types.&lt;/p&gt;

&lt;p&gt;Additionally, the pool should not track and hand out bare pointers. Instead it should expose managed RAII pointers. Callers should not be required to perform manual ref-count manipulation.&lt;/p&gt;</description>
                <environment></environment>
        <key id="565303">SERVER-35890</key>
            <summary>Make Authorization user cache a general purpose lifetime manager</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="jonathan.reams@mongodb.com">Jonathan Reams</assignee>
                                    <reporter username="spencer.jackson@mongodb.com">Spencer Jackson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Jun 2018 18:32:11 +0000</created>
                <updated>Sun, 29 Oct 2023 22:30:16 +0000</updated>
                            <resolved>Wed, 1 Aug 2018 16:59:28 +0000</resolved>
                                                    <fixVersion>4.1.2</fixVersion>
                                    <component>Internal Code</component>
                    <component>Security</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1963118" author="xgen-internal-githook" created="Wed, 1 Aug 2018 17:16:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jbreams&apos;, &apos;name&apos;: &apos;Jonathan Reams&apos;, &apos;email&apos;: &apos;jbreams@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35890&quot; title=&quot;Make Authorization user cache a general purpose lifetime manager&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35890&quot;&gt;&lt;del&gt;SERVER-35890&lt;/del&gt;&lt;/a&gt; Fix fassert codes&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0713f5f35754a5c443450cef960f5d4c5845a725&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0713f5f35754a5c443450cef960f5d4c5845a725&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1963079" author="xgen-internal-githook" created="Wed, 1 Aug 2018 16:57:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jonathan Reams&apos;, &apos;email&apos;: &apos;jbreams@mongodb.com&apos;, &apos;username&apos;: &apos;jbreams&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35890&quot; title=&quot;Make Authorization user cache a general purpose lifetime manager&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35890&quot;&gt;&lt;del&gt;SERVER-35890&lt;/del&gt;&lt;/a&gt; refactor User cache into InvalidatingLRUCache and UserHandle&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2c504892ae516f56dc127dee1146baf894a5fc59&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2c504892ae516f56dc127dee1146baf894a5fc59&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1962236" author="ben.caimano" created="Tue, 31 Jul 2018 22:35:28 +0000"  >&lt;p&gt;Reverted over BF-10099&lt;/p&gt;</comment>
                            <comment id="1962235" author="xgen-internal-githook" created="Tue, 31 Jul 2018 22:34:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ben Caimano&apos;, &apos;email&apos;: &apos;ben.caimano@10gen.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35890&quot; title=&quot;Make Authorization user cache a general purpose lifetime manager&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35890&quot;&gt;&lt;del&gt;SERVER-35890&lt;/del&gt;&lt;/a&gt; refactor User cache into InvalidatingLRUCache and UserHandle&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 78dec3622268ad27bb855eda4c6a4ed345412fd9.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6711ab3bbc02ca98da1af2fe115f07e37bb076e4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6711ab3bbc02ca98da1af2fe115f07e37bb076e4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1962072" author="xgen-internal-githook" created="Tue, 31 Jul 2018 20:41:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jonathan Reams&apos;, &apos;email&apos;: &apos;jbreams@mongodb.com&apos;, &apos;username&apos;: &apos;jbreams&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35890&quot; title=&quot;Make Authorization user cache a general purpose lifetime manager&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35890&quot;&gt;&lt;del&gt;SERVER-35890&lt;/del&gt;&lt;/a&gt; refactor User cache into InvalidatingLRUCache and UserHandle&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/78dec3622268ad27bb855eda4c6a4ed345412fd9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/78dec3622268ad27bb855eda4c6a4ed345412fd9&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="444992">SERVER-31552</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>4.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>Tue, 10 Jul 2018 16:54:53 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 28 weeks 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-1062</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>
                            5 years, 28 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>18.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ben.caimano@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jonathan.reams@mongodb.com</customfieldvalue>
            <customfieldvalue>spencer.jackson@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu1mcf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htusmv:</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="2369">Platforms 2018-07-02</customfieldvalue>
    <customfieldvalue id="2370">Platforms 2018-07-16</customfieldvalue>
    <customfieldvalue id="2371">Platforms 2018-07-30</customfieldvalue>
    <customfieldvalue id="2449">Platforms 2018-08-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|hu18lr:</customfieldvalue>

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