<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:08:47 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-25286] Remove drop2.js dependency on count scan yield behavior</title>
                <link>https://jira.mongodb.org/browse/SERVER-25286</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The drop2.js test command can fail in particular atypical timing of the parallel shells.&lt;/p&gt;

&lt;p&gt;drop2.js uses a count command with a infinite &lt;tt&gt;$where&lt;/tt&gt; clause in order to block a drop operation so that we may check whether &lt;tt&gt;killOp&lt;/tt&gt; can be used on the drop collection command.  We believe this test is attempting to confirm that we are able to issue a &lt;tt&gt;killOp&lt;/tt&gt; on a drop collection command, but that the operation is not interrupted, which prior to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1818&quot; title=&quot;make sure checkForInterrupt() exception is handled cleanly on drop collection / drop index&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1818&quot;&gt;&lt;del&gt;SERVER-1818&lt;/del&gt;&lt;/a&gt; could leave the database in an inconsistent state.&lt;/p&gt;

&lt;p&gt;On a correct execution, the count command acquires a read lock on the collection, preventing it from being dropped. However, if the count command yields, it releases the collection lock. This allowed the collection to drop before &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.3.10/jstests/core/drop2.js#L44&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;we can observe it in the &lt;tt&gt;currentOp&lt;/tt&gt; output in drop2.js&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=max.hirschhorn&quot; class=&quot;user-hover&quot; rel=&quot;max.hirschhorn&quot;&gt;max.hirschhorn&lt;/a&gt; suggests that we rewrite this test in order to:&lt;/p&gt;

&lt;p&gt;1. Issue a &lt;tt&gt;fsyncLock&lt;/tt&gt; command.&lt;br/&gt;
2. Execute a drop collection, wait until the currentOp output indicates it is waiting for locks.&lt;br/&gt;
3. Issue a killOp for the drop operation.&lt;br/&gt;
4. Issue &lt;tt&gt;fsyncUnlock&lt;/tt&gt;.&lt;br/&gt;
5. Check that the drop operation was &lt;b&gt;not&lt;/b&gt; killed, and that the collection was dropped successfully.&lt;/p&gt;

&lt;p&gt;This removes the dependency on the yielding behavior of the count command.  We have inspected the code path and confirmed that the only call to &lt;tt&gt;checkForInterrupt()&lt;/tt&gt; during the execution of a drop command is &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.3.10/src/mongo/db/commands/dbcommands.cpp#L1390&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;, before the drop command attempts to acquire locks &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.3.10/src/mongo/db/catalog/drop_collection.cpp#L63&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="304123">SERVER-25286</key>
            <summary>Remove drop2.js dependency on count scan yield behavior</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="kyle.suarez@mongodb.com">Kyle Suarez</assignee>
                                    <reporter username="david.hatch">David Hatch</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Jul 2016 15:54:12 +0000</created>
                <updated>Wed, 5 Apr 2017 11:42:51 +0000</updated>
                            <resolved>Thu, 15 Dec 2016 21:19:34 +0000</resolved>
                                                    <fixVersion>3.2.12</fixVersion>
                    <fixVersion>3.4.2</fixVersion>
                    <fixVersion>3.5.2</fixVersion>
                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1481343" author="xgen-internal-githook" created="Fri, 20 Jan 2017 16:34:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ksuarz&apos;, u&apos;name&apos;: u&apos;Kyle Suarez&apos;, u&apos;email&apos;: u&apos;kyle.suarez@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25286&quot; title=&quot;Remove drop2.js dependency on count scan yield behavior&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25286&quot;&gt;&lt;del&gt;SERVER-25286&lt;/del&gt;&lt;/a&gt; rewrite drop2.js to not depend on count scan yield behavior&lt;/p&gt;

&lt;p&gt;Tweaks killop_drop_collection.js to not use ES6 features and the new response format of fsyncUnlock.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 703678d473121b6402df10c21060241096ee2722)&lt;/p&gt;

&lt;p&gt; Conflicts:&lt;br/&gt;
	buildscripts/resmokeconfig/suites/sharded_collections_jscore_passthrough.yml&lt;br/&gt;
	buildscripts/resmokeconfig/suites/sharding_jscore_passthrough.yml&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d4e459b768349936ce72bb53ec056bc5918119f1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d4e459b768349936ce72bb53ec056bc5918119f1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1479616" author="xgen-internal-githook" created="Wed, 18 Jan 2017 19:25:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;redbeard0531@gmail.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25286&quot; title=&quot;Remove drop2.js dependency on count scan yield behavior&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25286&quot;&gt;&lt;del&gt;SERVER-25286&lt;/del&gt;&lt;/a&gt; rewrite drop2.js to not depend on count scan yield behavior&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 3c2c8f709d7043d22d1161fce807c40e4d624742.&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1b45a872f86bcb230c3e70e00bb05622d538a793&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1b45a872f86bcb230c3e70e00bb05622d538a793&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1479545" author="xgen-internal-githook" created="Wed, 18 Jan 2017 18:21:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ksuarz&apos;, u&apos;name&apos;: u&apos;Kyle Suarez&apos;, u&apos;email&apos;: u&apos;kyle.suarez@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25286&quot; title=&quot;Remove drop2.js dependency on count scan yield behavior&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25286&quot;&gt;&lt;del&gt;SERVER-25286&lt;/del&gt;&lt;/a&gt; rewrite drop2.js to not depend on count scan yield behavior&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 703678d473121b6402df10c21060241096ee2722)&lt;/p&gt;

&lt;p&gt; Conflicts:&lt;br/&gt;
	buildscripts/resmokeconfig/suites/sharded_collections_jscore_passthrough.yml&lt;br/&gt;
	buildscripts/resmokeconfig/suites/sharding_jscore_passthrough.yml&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3c2c8f709d7043d22d1161fce807c40e4d624742&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3c2c8f709d7043d22d1161fce807c40e4d624742&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1479477" author="xgen-internal-githook" created="Wed, 18 Jan 2017 17:18:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ksuarz&apos;, u&apos;name&apos;: u&apos;Kyle Suarez&apos;, u&apos;email&apos;: u&apos;kyle.suarez@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25286&quot; title=&quot;Remove drop2.js dependency on count scan yield behavior&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25286&quot;&gt;&lt;del&gt;SERVER-25286&lt;/del&gt;&lt;/a&gt; rewrite drop2.js to not depend on count scan yield behavior&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 703678d473121b6402df10c21060241096ee2722)&lt;/p&gt;

&lt;p&gt;Conflicts:&lt;br/&gt;
    buildscripts/resmokeconfig/suites/sharded_collections_jscore_passthrough.yml&lt;br/&gt;
    buildscripts/resmokeconfig/suites/sharding_jscore_passthrough.yml&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a10fb3c03e6770e94df1ffed7fc50457115aca78&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a10fb3c03e6770e94df1ffed7fc50457115aca78&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1459384" author="xgen-internal-githook" created="Thu, 15 Dec 2016 21:18:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ksuarz&apos;, u&apos;name&apos;: u&apos;Kyle Suarez&apos;, u&apos;email&apos;: u&apos;kyle.suarez@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25286&quot; title=&quot;Remove drop2.js dependency on count scan yield behavior&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25286&quot;&gt;&lt;del&gt;SERVER-25286&lt;/del&gt;&lt;/a&gt; rewrite drop2.js to not depend on count scan yield behavior&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/703678d473121b6402df10c21060241096ee2722&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/703678d473121b6402df10c21060241096ee2722&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1336205" author="david.hatch" created="Tue, 26 Jul 2016 15:57:13 +0000"  >&lt;p&gt;Attached is a patch that adds a &lt;tt&gt;repo.js&lt;/tt&gt; script, and some failpoints to the server to reproduce the failure case.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="132539" name="repo.patch" size="3435" author="david.hatch" created="Tue, 26 Jul 2016 15:57:13 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="14340"><![CDATA[v3.4]]></customfieldvalue>
    <customfieldvalue key="13440"><![CDATA[v3.2]]></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, 14 Dec 2016 22:56:45 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 3 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>
                            7 years, 3 weeks, 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_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>david.hatch</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kyle.suarez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrk1cn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsru33:</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="1438">Query 2017-01-23</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|hsajzz:</customfieldvalue>

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