<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:15: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-47950] Continuous stepdown thread should fail resmoke job loudly on exceptions</title>
                <link>https://jira.mongodb.org/browse/SERVER-47950</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Stepdown thread &lt;a href=&quot;https://github.com/mongodb/mongo/blob/74ac57a2f6ca120294592237d547a665513cc52d/buildscripts/resmokelib/testing/hooks/stepdown.py#L418-L421&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;exits silently&lt;/a&gt; on exceptions.&#160;It should fail loudly and fail the evergreen task.&lt;/p&gt;

&lt;p&gt;For example, if &lt;tt&gt;self._await_primaries&lt;/tt&gt; times out and throws an exception, that should fail the task immediately rather than hang resmoke on its after_test hook.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1339802">SERVER-47950</key>
            <summary>Continuous stepdown thread should fail resmoke job loudly on exceptions</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="siyuan.zhou@mongodb.com">Siyuan Zhou</assignee>
                                    <reporter username="siyuan.zhou@mongodb.com">Siyuan Zhou</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 May 2020 01:53:10 +0000</created>
                <updated>Sun, 29 Oct 2023 22:08:41 +0000</updated>
                            <resolved>Thu, 28 May 2020 14:46:07 +0000</resolved>
                                                    <fixVersion>4.4.0-rc11</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                                    <component>Replication</component>
                    <component>Testing Infrastructure</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="3215471" author="xgen-internal-githook" created="Fri, 19 Jun 2020 02:28:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Siyuan Zhou&apos;, &apos;email&apos;: &apos;siyuan.zhou@mongodb.com&apos;, &apos;username&apos;: &apos;visualzhou&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47950&quot; title=&quot;Continuous stepdown thread should fail resmoke job loudly on exceptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47950&quot;&gt;&lt;del&gt;SERVER-47950&lt;/del&gt;&lt;/a&gt; Continuous stepdown thread should fail resmoke job loudly on exceptions&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 116d80c8267425fb71043f5a1200993355917707)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c9454a38845a3755e6ec638dea570122cc68ae61&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c9454a38845a3755e6ec638dea570122cc68ae61&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3133413" author="xgen-internal-githook" created="Thu, 28 May 2020 08:24:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Siyuan Zhou&apos;, &apos;email&apos;: &apos;siyuan.zhou@mongodb.com&apos;, &apos;username&apos;: &apos;visualzhou&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47950&quot; title=&quot;Continuous stepdown thread should fail resmoke job loudly on exceptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47950&quot;&gt;&lt;del&gt;SERVER-47950&lt;/del&gt;&lt;/a&gt; Continuous stepdown thread should fail resmoke job loudly on exceptions&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/116d80c8267425fb71043f5a1200993355917707&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/116d80c8267425fb71043f5a1200993355917707&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3074430" author="robert.guo" created="Thu, 7 May 2020 18:14:31 +0000"  >&lt;p&gt;I think Repl would be in a better position to make the change. While the mechanics of Max&apos;s suggestion is mostly about coordinating events in resmoke, the core problem is that a failure in  &lt;tt&gt;_step_down_all()&lt;/tt&gt; caused the replica set to be in a state such that subsequent tests can&apos;t proceed. I think repl would be able to better determine which error events can be reported later and which require a &quot;stop the world now&quot; solution.&lt;/p&gt;

&lt;p&gt;I&apos;d be happy to add a diff of the change Max suggested above; the code change itself should be fairly small.&lt;/p&gt;</comment>
                            <comment id="3071621" author="max.hirschhorn@10gen.com" created="Wed, 6 May 2020 13:35:32 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=siyuan.zhou&quot; class=&quot;user-hover&quot; rel=&quot;siyuan.zhou&quot;&gt;siyuan.zhou&lt;/a&gt;, &lt;a href=&quot;https://github.com/mongodb/mongo/blob/74ea6aa4dfd7b3b4acf090084d36891834a49385/buildscripts/resmokelib/testing/hooks/stepdown.py#L116-L120&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;the &lt;tt&gt;ContinuousStepdown._check_thread()&lt;/tt&gt; method&lt;/a&gt; is how the parent (job) thread reports that the &lt;tt&gt;&amp;#95;StepdownThread&lt;/tt&gt; has exited. &lt;a href=&quot;https://github.com/mongodb/mongo/blob/74ea6aa4dfd7b3b4acf090084d36891834a49385/buildscripts/resmokelib/testing/hooks/stepdown.py#L111&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;It is called at the beginning of &lt;tt&gt;ContinuousStepdown.after&amp;#95;test()&lt;/tt&gt;&lt;/a&gt;. As you&apos;ve pointed out, checking at the beginning is insufficient if the in-progress iteration in &lt;tt&gt;&amp;#95;StepdownThread.run()&lt;/tt&gt; raises an exception after &lt;tt&gt;&amp;#95;StepdownThread.pause()&lt;/tt&gt; has been called. I think the smallest change for addressing this would look like (1) having &lt;tt&gt;self.&amp;#95;is&amp;#95;idle&amp;#95;evt.set()&lt;/tt&gt; in the &lt;tt&gt;except Exception&lt;/tt&gt; block and (2) moving the &lt;tt&gt;if not self.&amp;#95;stepdown&amp;#95;thread.is&amp;#95;alive()&lt;/tt&gt; check inside of &lt;tt&gt;&amp;#95;StepdownThread.pause()&lt;/tt&gt; immediately after the call to &lt;tt&gt;self.&amp;#95;is&amp;#95;idle&amp;#95;evt.wait()&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;The contract would be the stepdown thread is done running when &lt;tt&gt;self.&amp;#95;is&amp;#95;idle&amp;#95;evt.wait()&lt;/tt&gt; returns; however, &lt;tt&gt;&amp;#95;is&amp;#95;idle&amp;#95;evt&lt;/tt&gt; being set no longer means the cluster is expected to eventually be in a healthy state where &lt;tt&gt;&amp;#95;await&amp;#95;primaries()&lt;/tt&gt; would succeed. Doing (2) is actually probably optional because the parent thread would raise an exception either in &lt;tt&gt;&amp;#95;await&amp;#95;primaries()&lt;/tt&gt; from the cluster not being in a healthy state, or from detecting the stepdown thread having exited already &lt;a href=&quot;https://github.com/mongodb/mongo/blob/74ea6aa4dfd7b3b4acf090084d36891834a49385/buildscripts/resmokelib/testing/hooks/stepdown.py#L104&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;in &lt;tt&gt;ContinuousStepdown.before&amp;#95;test()&lt;/tt&gt;&lt;/a&gt; when the next is being run.&lt;/p&gt;</comment>
                            <comment id="3068449" author="siyuan.zhou@10gen.com" created="Tue, 5 May 2020 01:57:08 +0000"  >&lt;p&gt;I think we need a way to let the parent thread know the error. They communicate via several ways, notably&#160;self.&lt;em&gt;is_idle_evt and&#160;self.&lt;/em&gt;_lifecycle. We can also add a new shared variable. &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;, which do you recommend?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </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="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, 6 May 2020 13:35:32 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
            <customfieldvalue>robert.guo@mongodb.com</customfieldvalue>
            <customfieldvalue>siyuan.zhou@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxjipj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hx6utb:</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="3934">Repl 2020-06-01</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|hxj4yv:</customfieldvalue>

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