<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:15:07 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-7632] jstests/drop2.js and jstests/killop.js failing (auth issue)</title>
                <link>https://jira.mongodb.org/browse/SERVER-7632</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;jstests/drop2.js fails consistently on my local machine when built with the now-default v8.  My machine is Ubuntu Linux, doing a 64 bit debug build.  Weirdly, this test doesn&apos;t seem to be failing on buildbot, though it fails for me every time.  If I compile mongod with --usesm, the test passes.&lt;/p&gt;

&lt;p&gt;I have attached the output of running the test twice, once with mongod compiled using default flags, and once with mongod compiled using --usesm. &lt;/p&gt;</description>
                <environment></environment>
        <key id="56078">SERVER-7632</key>
            <summary>jstests/drop2.js and jstests/killop.js failing (auth issue)</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="9">Done</resolution>
                                        <assignee username="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="spencer@mongodb.com">Spencer Brody</reporter>
                        <labels>
                            <label>buildbot</label>
                    </labels>
                <created>Mon, 12 Nov 2012 20:11:19 +0000</created>
                <updated>Mon, 11 Jul 2016 17:59:36 +0000</updated>
                            <resolved>Fri, 16 Nov 2012 22:56:35 +0000</resolved>
                                                    <fixVersion>2.3.1</fixVersion>
                                    <component>JavaScript</component>
                    <component>Testing Infrastructure</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="191800" author="auto" created="Fri, 16 Nov 2012 22:54:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-11-16T22:54:23Z&apos;, u&apos;email&apos;: u&apos;spencer@10gen.com&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;}
&lt;p&gt;Message: Don&apos;t query admin.system.users when initializing AuthorizationManager if we aren&apos;t running with auth &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7632&quot; title=&quot;jstests/drop2.js and jstests/killop.js failing (auth issue)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7632&quot;&gt;&lt;del&gt;SERVER-7632&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5bbf1c926dc40db801572871e0a9d8f167f2e859&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5bbf1c926dc40db801572871e0a9d8f167f2e859&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="191628" author="milkie" created="Fri, 16 Nov 2012 20:05:31 +0000"  >&lt;p&gt;Thanks for that investigation.  Spencer&apos;s going to fix the new auth code to respect the --noauth command line parameter.&lt;/p&gt;</comment>
                            <comment id="191614" author="aaron" created="Fri, 16 Nov 2012 19:51:26 +0000"  >&lt;p&gt;I think this is why the drop2.js test is failing, sequence of events:&lt;/p&gt;

&lt;p&gt;1) The test issues a count, which acquires a read lock and does a loop forever inside javascript.  The read lock is not released.&lt;br/&gt;
2) The dur thread attempts to acquire a write lock and is not able to do so because count has a read lock.&lt;br/&gt;
3) The client issues a drop.  Before the drop command is run, the authorization manager is initialized, which checks if there is a privileged document using AuthorizationManager::hasPrivilegedDocument()&lt;br/&gt;
4) The implementation of AuthorizationManager::hasPrivilegedDocument() does a find using dbdirectclient.  The dbdirectclient (temporarily) replaces the curop information for the drop command with its own curop information.&lt;br/&gt;
5) The dbdirectclient find cannot acquire a read lock because there is a pending write lock (from the dur thread).&lt;br/&gt;
6) The test looks for the drop command in curop, but it cannot be found because AuthorizationManager::hasPrivilegedDocument()&apos;s use of a dbdirectclient find replaced the curop information and the find cannot proceed because it cannot acquire a read lock.&lt;br/&gt;
7) The test eventually times out.&lt;/p&gt;

&lt;p&gt;Not really sure who should work to fix this.  Reassigning back to you for now.&lt;/p&gt;</comment>
                            <comment id="191512" author="milkie" created="Fri, 16 Nov 2012 18:13:27 +0000"  >&lt;p&gt;Hey Aaron.&lt;br/&gt;
jstests/killop.js is failing due to the same problem.&lt;br/&gt;
I can force the test to fail every time if I put a sleep in between the two startParalellShell queries.  They are both using the same count({$where}) function that drop2.js is using.&lt;/p&gt;
</comment>
                            <comment id="191423" author="milkie" created="Fri, 16 Nov 2012 16:29:14 +0000"  >&lt;p&gt;Hi Aaron, I&apos;m bumping this to you.&lt;br/&gt;
I can get drop2.js to fail consistently if I just insert a sleep(1000) at line 33.&lt;br/&gt;
This test fails even with --usesm (SpiderMonkey).  I believe the problem might be that count() is now holding a different series of locks, which prevents the drop() from beginning?  Could it be that the changes to count() have affected this?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="56157">SERVER-7637</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="56532">SERVER-7682</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="14306">SERVER-2407</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="21574" name="testOutput.txt" size="6147" author="spencer@mongodb.com" created="Mon, 12 Nov 2012 20:11:19 +0000"/>
                            <attachment id="21573" name="testOutput_sm.txt" size="23390" author="spencer@mongodb.com" created="Mon, 12 Nov 2012 20:11:19 +0000"/>
                    </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_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>Fri, 16 Nov 2012 16:29:14 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 13 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_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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 13 weeks, 5 days ago
                        </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>aaron</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrni1b:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>33440</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_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10153"><![CDATA[Unneeded]]></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|hrku4f:</customfieldvalue>

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