<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:33:22 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-33427] improve detectability of test failing because ShardingTest/ReplSetTest not shut down</title>
                <link>https://jira.mongodb.org/browse/SERVER-33427</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;blockquote&gt;
&lt;p&gt;&amp;gt; Max Hirschhorn Kevin Albertson, I noticed that failing to shut down a ShardingTest/ReplSetTest doesn&apos;t cause the test to log a &quot;failed to load&quot; line or a javascript stack trace (which makes sense, since which line would you error on?).&lt;/p&gt;

&lt;p&gt;As an outcome of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25777&quot; title=&quot;StopMongoProgram shouldn&amp;#39;t implicitly switch to SIGKILL&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25777&quot;&gt;&lt;del&gt;SERVER-25777&lt;/del&gt;&lt;/a&gt;, the mongo shell could already exit with a non-zero return code without printing a &quot;failed to load&quot; message.&lt;/p&gt;

&lt;p&gt;&amp;gt; The line that &lt;em&gt;is&lt;/em&gt; logged (&quot;a call to MongoRunner.stopMongod(), ReplSetTest#stopSet(), or ShardingTest#stop() may be missing from the test&quot;) also isn&apos;t/can&apos;t be logged at LogSeverity::Error, since it&apos;s not logged by a server process (and which makes the log line contain &quot; E &quot;, which is another thing I typically look for when a test fails without &quot;failed to load&quot;).&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; It took some confusion and additional scrolling through the logs for me to realize why my new test was reporting failure when it seemed like the test ran to completion successfully. Just a thought, in case there&apos;s something that can be done to make this failure easier to detect.&lt;/p&gt;

&lt;p&gt;Esha Maharishi, I think your confusion is understandable. The goal of the message was to make it more obvious to the user what the remediation ought to be. Since that message isn&apos;t being surfaced clearly enough, we should change the logic in the mongo shell so that it is.&lt;/p&gt;

&lt;p&gt;I don&apos;t see a reason that the mongo shell must use &lt;tt&gt;cout&lt;/tt&gt; for logging the &quot;exiting with a failure due to unterminated processes&quot; message, so we could replace it with a call to &lt;tt&gt;severe()&lt;/tt&gt; instead (and prefix the log message with &apos;F&apos;). Do you think that would be sufficient for your purposes? Would you mind filing a new SERVER ticket for this improvement request?&lt;/p&gt;

&lt;p&gt;&amp;gt; For example, even just moving the &quot;a call to MongoRunner.stopMongod(), ReplSetTest#stopSet(), or ShardingTest#stop() may be missing from the test&quot; just before/after the &quot;Summary: 1 test(s) ran in 35.86 seconds (0 succeeded, 0 were skipped, 1 failed, 0 errored)&quot; could help.&lt;/p&gt;

&lt;p&gt;Those messages are logged by two different processes (the mongo shell with the former and resmoke.py with the latter) so that isn&apos;t really something we&apos;d consider. A related feature in resmoke.py would be to have special handling around certain exit codes from known processes. This case in the mongo shell would be one, but a memory leak detected by ASan/LSan would be another.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;See comment thread on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25640&quot; title=&quot;Have ReplSetTest run checkDBHashes() in stopSet()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25640&quot;&gt;&lt;del&gt;SERVER-25640&lt;/del&gt;&lt;/a&gt;; one good idea from that thread is to make the mongo shell log an error message at a more severe log level.&lt;/p&gt;</description>
                <environment></environment>
        <key id="500830">SERVER-33427</key>
            <summary>improve detectability of test failing because ShardingTest/ReplSetTest not shut down</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="yves.duhem">Yves Duhem</assignee>
                                    <reporter username="esha.maharishi@mongodb.com">Esha Maharishi</reporter>
                        <labels>
                            <label>tig-qwin-eligible</label>
                    </labels>
                <created>Wed, 21 Feb 2018 20:35:36 +0000</created>
                <updated>Sun, 29 Oct 2023 22:34:33 +0000</updated>
                            <resolved>Thu, 4 Oct 2018 00:17:21 +0000</resolved>
                                    <version>3.7.2</version>
                                    <fixVersion>4.1.4</fixVersion>
                                    <component>Testing Infrastructure</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="2023078" author="xgen-internal-githook" created="Thu, 4 Oct 2018 00:15:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Yves Duhem&apos;, &apos;email&apos;: &apos;yves.duhem@mongodb.com&apos;, &apos;username&apos;: &apos;syev&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33427&quot; title=&quot;improve detectability of test failing because ShardingTest/ReplSetTest not shut down&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33427&quot;&gt;&lt;del&gt;SERVER-33427&lt;/del&gt;&lt;/a&gt; Update shell logs when it exits with error&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b51003a59880eb8edb1abe5c5c01662e8c2eccde&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b51003a59880eb8edb1abe5c5c01662e8c2eccde&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1977362" author="robert.guo" created="Thu, 16 Aug 2018 14:54:56 +0000"  >&lt;p&gt;We should also log a message with the exit code of the shell when it is non-zero and change all usages of &lt;tt&gt;cout&lt;/tt&gt; to &lt;tt&gt;severe()&lt;/tt&gt; or &lt;tt&gt;error()&lt;/tt&gt; in &lt;tt&gt;dbshell.cpp&lt;/tt&gt; when exiting with a non-zero code.&lt;/p&gt;</comment>
                            <comment id="1812106" author="yves.duhem" created="Wed, 21 Feb 2018 20:49:56 +0000"  >&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;, yes, the fatal logs could be added to the context causes displayed by the tool.&lt;/p&gt;</comment>
                            <comment id="1812085" author="max.hirschhorn@10gen.com" created="Wed, 21 Feb 2018 20:39:43 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=robert.guo&quot; class=&quot;user-hover&quot; rel=&quot;robert.guo&quot;&gt;robert.guo&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=yves.duhem&quot; class=&quot;user-hover&quot; rel=&quot;yves.duhem&quot;&gt;yves.duhem&lt;/a&gt;, would having the Build Baron tool search for fatal log messages (&apos;F&apos; prefixed) from the mongo shell be a relatively generic way of surfacing this kind of information?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="309417">SERVER-25640</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>4.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_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, 21 Feb 2018 20:39:43 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 19 weeks 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1225</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>
                            5 years, 19 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>esha.maharishi@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
            <customfieldvalue>robert.guo@mongodb.com</customfieldvalue>
            <customfieldvalue>yves.duhem</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htqvz3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htyrpz:</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="2564">DAG 2018-10-08</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</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|htqi4n:</customfieldvalue>

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