<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:50:13 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-60586] out_max_time_ms.js does not correctly enable &quot;maxTimeNeverTimeOut&quot; failpoint leading to spurious test failure</title>
                <link>https://jira.mongodb.org/browse/SERVER-60586</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The test &lt;a href=&quot;https://github.com/mongodb/mongo/blob/cb721afab428783c002fc04fee1e317ec89d5a08/jstests/noPassthrough/out_max_time_ms.js&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;out_max_time_ms.js&lt;/a&gt; runs some test logic against both a standalone node as well as a two-node replica set. The test also depends on enabling the &quot;maxTimeNeverTimeOut&quot; failpoint on the nodes involved in the test. This is done in order to prevent operations with a &lt;tt&gt;maxTimeMS&lt;/tt&gt; from timing out prematurely.&lt;/p&gt;

&lt;p&gt;In the case of testing against a replica set, however, there are scenarios in which the test can fail to enable &quot;maxTimeNeverTimeOut&quot; against all of the nodes in the replica set. In particular, &lt;a href=&quot;https://github.com/mongodb/mongo/blob/cb721afab428783c002fc04fee1e317ec89d5a08/jstests/noPassthrough/out_max_time_ms.js#L121-L122&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this assertion&lt;/a&gt; passes the same connection three times to the &lt;tt&gt;forceAggregationToHangAndCheckMaxTimeMsExpires()&lt;/tt&gt;. The helper function then &lt;a href=&quot;https://github.com/mongodb/mongo/blob/cb721afab428783c002fc04fee1e317ec89d5a08/jstests/noPassthrough/out_max_time_ms.js#L50-L53&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;enables the failpoint on the passed in connections&lt;/a&gt;. But if both of these connections are to the secondary node, for example, then the failpoint is left disabled on the primary. This can result in operations timing out prematurely, which in turn can cause the test to hang for 10 minutes and fail on an &lt;tt&gt;assert.soon()&lt;/tt&gt; &lt;a href=&quot;https://github.com/mongodb/mongo/blob/cb721afab428783c002fc04fee1e317ec89d5a08/jstests/noPassthrough/out_max_time_ms.js#L70&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We should change the test logic so that it unconditionally enables/disables the failpoint for both nodes in the replica set, making it impossible to leave any failpoint in the wrong state. &lt;/p&gt;</description>
                <environment></environment>
        <key id="1894146">SERVER-60586</key>
            <summary>out_max_time_ms.js does not correctly enable &quot;maxTimeNeverTimeOut&quot; failpoint leading to spurious test failure</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="13201">Fixed</resolution>
                                        <assignee username="david.storch@mongodb.com">David Storch</assignee>
                                    <reporter username="david.storch@mongodb.com">David Storch</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Oct 2021 21:51:03 +0000</created>
                <updated>Sun, 29 Oct 2023 21:47:34 +0000</updated>
                            <resolved>Thu, 14 Oct 2021 02:53:00 +0000</resolved>
                                                    <fixVersion>5.2.0</fixVersion>
                    <fixVersion>4.4.11</fixVersion>
                    <fixVersion>5.0.4</fixVersion>
                    <fixVersion>5.1.0-rc2</fixVersion>
                                    <component>Query Execution</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4133826" author="xgen-internal-githook" created="Tue, 19 Oct 2021 22:27:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;David Storch&apos;, &apos;email&apos;: &apos;david.storch@mongodb.com&apos;, &apos;username&apos;: &apos;dstorch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60586&quot; title=&quot;out_max_time_ms.js does not correctly enable &amp;quot;maxTimeNeverTimeOut&amp;quot; failpoint leading to spurious test failure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60586&quot;&gt;&lt;del&gt;SERVER-60586&lt;/del&gt;&lt;/a&gt; Fix out_max_time_ms.js to correctly enable &apos;maxTimeNeverTimeOut&apos; failpoint&lt;/p&gt;

&lt;p&gt;(cherry picked from commit fb5fc15108425209fe8b5fb4a33e45e7980214b3)&lt;br/&gt;
(cherry picked from commit 96ca0c19edd8673b7851192c33edc1400a23844e)&lt;br/&gt;
(cherry picked from commit 48d228aa83ce8c5f36725c5871337d9bc455bc69)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0aa523559cd68b32f025a8127272ddfbf8a1a30f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0aa523559cd68b32f025a8127272ddfbf8a1a30f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4133761" author="xgen-internal-githook" created="Tue, 19 Oct 2021 21:52:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;David Storch&apos;, &apos;email&apos;: &apos;david.storch@mongodb.com&apos;, &apos;username&apos;: &apos;dstorch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60586&quot; title=&quot;out_max_time_ms.js does not correctly enable &amp;quot;maxTimeNeverTimeOut&amp;quot; failpoint leading to spurious test failure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60586&quot;&gt;&lt;del&gt;SERVER-60586&lt;/del&gt;&lt;/a&gt; Fix out_max_time_ms.js to correctly enable &apos;maxTimeNeverTimeOut&apos; failpoint&lt;/p&gt;

&lt;p&gt;(cherry picked from commit fb5fc15108425209fe8b5fb4a33e45e7980214b3)&lt;br/&gt;
(cherry picked from commit 96ca0c19edd8673b7851192c33edc1400a23844e)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/48d228aa83ce8c5f36725c5871337d9bc455bc69&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/48d228aa83ce8c5f36725c5871337d9bc455bc69&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4133416" author="xgen-internal-githook" created="Tue, 19 Oct 2021 19:33:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;David Storch&apos;, &apos;email&apos;: &apos;david.storch@mongodb.com&apos;, &apos;username&apos;: &apos;dstorch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60586&quot; title=&quot;out_max_time_ms.js does not correctly enable &amp;quot;maxTimeNeverTimeOut&amp;quot; failpoint leading to spurious test failure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60586&quot;&gt;&lt;del&gt;SERVER-60586&lt;/del&gt;&lt;/a&gt; Fix out_max_time_ms.js to correctly enable &apos;maxTimeNeverTimeOut&apos; failpoint&lt;/p&gt;

&lt;p&gt;(cherry picked from commit fb5fc15108425209fe8b5fb4a33e45e7980214b3)&lt;br/&gt;
Branch: v5.1&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/96ca0c19edd8673b7851192c33edc1400a23844e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/96ca0c19edd8673b7851192c33edc1400a23844e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4122931" author="xgen-internal-githook" created="Wed, 13 Oct 2021 22:30:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;David Storch&apos;, &apos;email&apos;: &apos;david.storch@mongodb.com&apos;, &apos;username&apos;: &apos;dstorch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60586&quot; title=&quot;out_max_time_ms.js does not correctly enable &amp;quot;maxTimeNeverTimeOut&amp;quot; failpoint leading to spurious test failure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60586&quot;&gt;&lt;del&gt;SERVER-60586&lt;/del&gt;&lt;/a&gt; Fix out_max_time_ms.js to correctly enable &apos;maxTimeNeverTimeOut&apos; failpoint&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fb5fc15108425209fe8b5fb4a33e45e7980214b3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fb5fc15108425209fe8b5fb4a33e45e7980214b3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4114143" author="david.storch" created="Fri, 8 Oct 2021 21:56:16 +0000"  >&lt;p&gt;It looks to me like this problem was first introduced by the changes to the test done under &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45969&quot; title=&quot;Tests for killOp and maxTimeMS with $merge/$out on secondaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45969&quot;&gt;&lt;del&gt;SERVER-45969&lt;/del&gt;&lt;/a&gt;. Therefore, the earliest branch that the problem exists in is 4.4. We should backport the fix to 5.1, 5.0, and 4.4.&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>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1129629">SERVER-45969</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1831356">SERVER-58855</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>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="22495"><![CDATA[v5.1]]></customfieldvalue>
    <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    <customfieldvalue key="18953"><![CDATA[v4.4]]></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, 13 Oct 2021 17:44:21 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 16 weeks, 1 day 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_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_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>
                            2 years, 16 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>37.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.storch@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|i05047:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzopwn:</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="5267">QE 2021-10-18</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|i04m9j:</customfieldvalue>

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