<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:28:42 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-12497] role_management_helpers and user_management_helpers deadlocked with eval</title>
                <link>https://jira.mongodb.org/browse/SERVER-12497</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;a href=&quot;http://buildlogs.mongodb.org/mci_0.9_osx_108/builds/10987/test/parallel_0/basicPlus.js&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://buildlogs.mongodb.org/mci_0.9_osx_108/builds/10987/test/parallel_0/basicPlus.js&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="99057">SERVER-12497</key>
            <summary>role_management_helpers and user_management_helpers deadlocked with eval</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="9">Done</resolution>
                                        <assignee username="schwerin@mongodb.com">Andy Schwerin</assignee>
                                    <reporter username="milkie@mongodb.com">Eric Milkie</reporter>
                        <labels>
                            <label>build-failure</label>
                    </labels>
                <created>Tue, 19 Nov 2013 19:04:47 +0000</created>
                <updated>Sat, 3 Mar 2018 05:49:29 +0000</updated>
                            <resolved>Fri, 7 Feb 2014 19:49:51 +0000</resolved>
                                                    <fixVersion>2.6.0-rc0</fixVersion>
                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="495422" author="xgen-internal-githook" created="Fri, 7 Feb 2014 19:33:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;andy10gen&apos;, u&apos;name&apos;: u&apos;Andy Schwerin&apos;, u&apos;email&apos;: u&apos;schwerin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12497&quot; title=&quot;role_management_helpers and user_management_helpers deadlocked with eval&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12497&quot;&gt;&lt;del&gt;SERVER-12497&lt;/del&gt;&lt;/a&gt; Do not call AuthorizationSession::startRequest while processing for DBDirectClient.&lt;/p&gt;

&lt;p&gt;This eliminates a deadlock cycle between the global or admin-database write lock and the&lt;br/&gt;
AuthorizationManager&apos;s fetch-mode critical section.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3a7950fcf73eaf96dacddf522a8e76531157dcdd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3a7950fcf73eaf96dacddf522a8e76531157dcdd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="494726" author="xgen-internal-githook" created="Thu, 6 Feb 2014 18:55:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;andy10gen&apos;, u&apos;name&apos;: u&apos;Andy Schwerin&apos;, u&apos;email&apos;: u&apos;schwerin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12497&quot; title=&quot;role_management_helpers and user_management_helpers deadlocked with eval&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12497&quot;&gt;&lt;del&gt;SERVER-12497&lt;/del&gt;&lt;/a&gt; Remove unused, questionable behaviors from ThreadSafeString.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/971cd7f952be5ccfddc518347e87f53e8f4ab22a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/971cd7f952be5ccfddc518347e87f53e8f4ab22a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="494725" author="xgen-internal-githook" created="Thu, 6 Feb 2014 18:54:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;andy10gen&apos;, u&apos;name&apos;: u&apos;Andy Schwerin&apos;, u&apos;email&apos;: u&apos;schwerin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12497&quot; title=&quot;role_management_helpers and user_management_helpers deadlocked with eval&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12497&quot;&gt;&lt;del&gt;SERVER-12497&lt;/del&gt;&lt;/a&gt; Eliminate unused, possibly broken Client::resetThread() method.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/dc70aa94f66a383cd5e9e791ec633d12055c62a7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/dc70aa94f66a383cd5e9e791ec633d12055c62a7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="494578" author="schwerin" created="Thu, 6 Feb 2014 16:00:12 +0000"  >&lt;p&gt;I have confirmed hypothesis (1), above.  The fix is to skip refreshing the session&apos;s user data cache when auth checks will be ignored, anyways (as in DBDirectClient).  Code review to follow.&lt;/p&gt;</comment>
                            <comment id="488366" author="andreas.nilsson@10gen.com" created="Mon, 27 Jan 2014 20:39:31 +0000"  >&lt;p&gt;&lt;a href=&quot;http://codereview.10gen.com/4602662980943872/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://codereview.10gen.com/4602662980943872/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="461289" author="schwerin" created="Mon, 25 Nov 2013 16:59:43 +0000"  >&lt;p&gt;Two hypotheses:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;The count command, executed under an &quot;eval&quot; expression, causes the DBDirectClient to run AuthorizationSession::startRequest() while the &quot;eval&quot; holds the write lock.  If the eval thread tries to get the user cache mutex while holding a database or global write lock, it can deadlock with any user management command because it is acquiring its locks out of order.&lt;/li&gt;
	&lt;li&gt;Maybe the currentOp command has some suspicious behavior, since &lt;tt&gt;evalc.js&lt;/tt&gt; runs that command &lt;em&gt;a lot&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;
</comment>
                            <comment id="461223" author="milkie" created="Mon, 25 Nov 2013 15:56:48 +0000"  >&lt;p&gt;Interestingly, evalc.js was running when each of the above tests deadlocked.&lt;/p&gt;</comment>
                            <comment id="461220" author="milkie" created="Mon, 25 Nov 2013 15:55:32 +0000"  >&lt;p&gt;Another deadlock, this time with user_management_helpers:&lt;br/&gt;
&lt;a href=&quot;http://buildlogs.mongodb.org/mci_0.9_osx_108_cxx11_debug/builds/11077/test/parallel_0/basic.js&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://buildlogs.mongodb.org/mci_0.9_osx_108_cxx11_debug/builds/11077/test/parallel_0/basic.js&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="99861">SERVER-11845</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="505171">SERVER-33648</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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 25 Nov 2013 16:59:43 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 1 week, 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_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>max.hirschhorn@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 1 week, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>andreas.nilsson</customfieldvalue>
            <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@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|hrm2vr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hruawn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>90739</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_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|hrixmn:</customfieldvalue>

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