<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:10:40 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-6065] db.shutdownServer() does not work as expected when mongod is a Windows Service</title>
                <link>https://jira.mongodb.org/browse/SERVER-6065</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Since the correct way to shutdown a service (net stop mongodb) does not work as expected in 2.0.6, I have attempted to use db.shutdownServer.  This unfortionately does not work as expected.  Since mongod installs itself with service failure actions to restart the service (love how it does this!), when mongo is shutdown using the shell, Windows seems to think that mongod has exited without the service being shut down, which causes it to automatically restart the service.  Sample mongo shell output:&lt;/p&gt;

&lt;p&gt;-------------------------------------&lt;br/&gt;
SECONDARY&amp;gt; db.serverStatus().uptime&lt;br/&gt;
531&lt;br/&gt;
SECONDARY&amp;gt; use admin&lt;br/&gt;
switched to db admin&lt;br/&gt;
SECONDARY&amp;gt; db.shutdownServer()&lt;br/&gt;
Mon Jun 11 11:07:09 DBClientCursor::init call() failed&lt;br/&gt;
Mon Jun 11 11:07:09 query failed : admin.$cmd &lt;/p&gt;
{ shutdown: 1.0 }
&lt;p&gt; to: 127.0.0.1&lt;br/&gt;
server should be down...&lt;br/&gt;
Mon Jun 11 11:07:09 trying reconnect to 127.0.0.1&lt;br/&gt;
Mon Jun 11 11:07:10 reconnect 127.0.0.1 ok&lt;br/&gt;
SECONDARY&amp;gt; db.serverStatus().uptime&lt;br/&gt;
4&lt;br/&gt;
-------------------------------------&lt;/p&gt;



</description>
                <environment>Windows Server 2008 R2 Enterprise</environment>
        <key id="40969">SERVER-6065</key>
            <summary>db.shutdownServer() does not work as expected when mongod is a Windows Service</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="mark.benvenuto@mongodb.com">Mark Benvenuto</assignee>
                                    <reporter username="rhoffman">Ryan Hoffman</reporter>
                        <labels>
                            <label>Windows</label>
                    </labels>
                <created>Mon, 11 Jun 2012 15:08:33 +0000</created>
                <updated>Wed, 5 Apr 2017 11:41:47 +0000</updated>
                            <resolved>Fri, 10 Feb 2017 19:35:32 +0000</resolved>
                                    <version>2.0.6</version>
                    <version>2.2.0-rc1</version>
                    <version>3.4.0</version>
                                    <fixVersion>3.4.3</fixVersion>
                    <fixVersion>3.5.3</fixVersion>
                                    <component>Admin</component>
                                        <votes>9</votes>
                                    <watches>12</watches>
                                                                                                                <comments>
                            <comment id="1511542" author="xgen-internal-githook" created="Tue, 28 Feb 2017 19:36:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;markbenvenuto&apos;, u&apos;name&apos;: u&apos;Mark Benvenuto&apos;, u&apos;email&apos;: u&apos;mark.benvenuto@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6065&quot; title=&quot;db.shutdownServer() does not work as expected when mongod is a Windows Service&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6065&quot;&gt;&lt;del&gt;SERVER-6065&lt;/del&gt;&lt;/a&gt; NT Service stop does not exit cleanly&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 50e9769099bb49220783f95c9045dd1259a18eb4)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9bf92ae98e3621a31df91c6150f34ff3fa1213c7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9bf92ae98e3621a31df91c6150f34ff3fa1213c7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1497023" author="xgen-internal-githook" created="Fri, 10 Feb 2017 19:31:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;markbenvenuto&apos;, u&apos;name&apos;: u&apos;Mark Benvenuto&apos;, u&apos;email&apos;: u&apos;mark.benvenuto@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6065&quot; title=&quot;db.shutdownServer() does not work as expected when mongod is a Windows Service&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6065&quot;&gt;&lt;del&gt;SERVER-6065&lt;/del&gt;&lt;/a&gt; NT Service stop does not exit cleanly&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/50e9769099bb49220783f95c9045dd1259a18eb4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/50e9769099bb49220783f95c9045dd1259a18eb4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1492376" author="itzikkg" created="Sun, 5 Feb 2017 07:23:09 +0000"  >&lt;p&gt;This is still occur in 3.4.2 as it reflects in 27782 (a duplicate of this bug)&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Itzhak&lt;/p&gt;</comment>
                            <comment id="1481762" author="mark.benvenuto" created="Fri, 20 Jan 2017 23:21:41 +0000"  >&lt;p&gt;Verified this is still broken on 3.5.2 and 3.4.1. The service stops but incorrectly. It also fails to stop with service stop correctly.&lt;/p&gt;

&lt;p&gt;Exit stack trace via silent process exit monitoring.&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; # Child-SP          RetAddr           Call Site&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;00 0000009f`c9bfe5f8 00007ffa`0d7d1a10 ntdll!NtWaitForSingleObject+0x14&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;01 0000009f`c9bfe600 00007ffa`0d727d8f ntdll!memset+0x5090&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;02 0000009f`c9bff190 00007ffa`0d26ce6a ntdll!RtlExitUserProcess+0xaf&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;03 0000009f`c9bff1c0 00007ff6`acf1f27c kernel32!ExitProcess+0xa&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;04 0000009f`c9bff1f0 00007ff6`ace34b7a mongod!mongo::quickExit+0x3c [d:\mongo\src\mongo\util\quick_exit.cpp @ 110]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;05 0000009f`c9bff220 00007ff6`ace348cd mongod!mongo::`anonymous namespace&apos;::logAndQuickExit+0x8a [d:\mongo\src\mongo\util\exit.cpp @ 71]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;06 0000009f`c9bff2f0 00007ff6`ab9f1805 mongod!mongo::shutdown+0x1fd [d:\mongo\src\mongo\util\exit.cpp @ 134]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;07 0000009f`c9bff400 00007ff6`ace8b6f0 mongod!mongo::exitCleanly+0x25 [d:\mongo\src\mongo\util\exit.h @ 82]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;08 0000009f`c9bff430 00007ff6`ace89130 mongod!&amp;lt;lambda_47b7b45126974acccccd84fb5443422b&amp;gt;::operator()+0x60 [d:\mongo\src\mongo\util\ntservice.cpp @ 539]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;09 0000009f`c9bff4a0 00007ff6`ace8a2d0 mongod!std::_Invoker_functor::_Call&amp;lt;&amp;lt;lambda_47b7b45126974acccccd84fb5443422b&amp;gt; &amp;amp; __ptr64&amp;gt;+0x30 [c:\program files (x86)\microsoft visual studio 14.0\vc\include\type_traits @ 1377]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;0a 0000009f`c9bff4d0 00007ff6`ace894a4 mongod!std::invoke&amp;lt;&amp;lt;lambda_47b7b45126974acccccd84fb5443422b&amp;gt; &amp;amp; __ptr64&amp;gt;+0x30 [c:\program files (x86)\microsoft visual studio 14.0\vc\include\type_traits @ 1445]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;0b 0000009f`c9bff500 00007ff6`ace8c555 mongod!std::_Invoke_ret&amp;lt;bool,&amp;lt;lambda_47b7b45126974acccccd84fb5443422b&amp;gt; &amp;amp; __ptr64&amp;gt;+0x34 [c:\program files (x86)\microsoft visual studio 14.0\vc\include\type_traits @ 1469]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;0c 0000009f`c9bff530 00007ff6`ace8b7d4 mongod!std::_Func_impl&amp;lt;&amp;lt;lambda_47b7b45126974acccccd84fb5443422b&amp;gt;,std::allocator&amp;lt;int&amp;gt;,bool&amp;gt;::_Do_call+0x35 [c:\program files (x86)\microsoft visual studio 14.0\vc\include\functional @ 214]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;0d 0000009f`c9bff570 00007ff6`ace8c09a mongod!std::_Func_class&amp;lt;bool&amp;gt;::operator()+0x54 [c:\program files (x86)\microsoft visual studio 14.0\vc\include\functional @ 280]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;0e 0000009f`c9bff5b0 00007ff6`ace8b8e5 mongod!std::_Packaged_state&amp;lt;bool __cdecl(void)&amp;gt;::_Call_immediate+0x3a [c:\program files (x86)\microsoft visual studio 14.0\vc\include\future @ 609]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;0f 0000009f`c9bff620 00007ff6`ace89180 mongod!std::packaged_task&amp;lt;bool __cdecl(void)&amp;gt;::operator()+0x75 [c:\program files (x86)\microsoft visual studio 14.0\vc\include\future @ 1823]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;10 0000009f`c9bff670 00007ff6`ace8a320 mongod!std::_Invoker_functor::_Call&amp;lt;std::packaged_task&amp;lt;bool __cdecl(void)&amp;gt; &amp;gt;+0x30 [c:\program files (x86)\microsoft visual studio 14.0\vc\include\type_traits @ 1377]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;11 0000009f`c9bff6a0 00007ff6`ace892ac mongod!std::invoke&amp;lt;std::packaged_task&amp;lt;bool __cdecl(void)&amp;gt; &amp;gt;+0x30 [c:\program files (x86)\microsoft visual studio 14.0\vc\include\type_traits @ 1445]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;12 0000009f`c9bff6d0 00007ff6`ace8d23a mongod!std::_LaunchPad&amp;lt;std::unique_ptr&amp;lt;std::tuple&amp;lt;std::packaged_task&amp;lt;bool __cdecl(void)&amp;gt; &amp;gt;,std::default_delete&amp;lt;std::tuple&amp;lt;std::packaged_task&amp;lt;bool __cdecl(void)&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;::_Execute&amp;lt;0&amp;gt;+0x3c [c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread @ 241]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;13 0000009f`c9bff700 00007ff6`ace8cba8 mongod!std::_LaunchPad&amp;lt;std::unique_ptr&amp;lt;std::tuple&amp;lt;std::packaged_task&amp;lt;bool __cdecl(void)&amp;gt; &amp;gt;,std::default_delete&amp;lt;std::tuple&amp;lt;std::packaged_task&amp;lt;bool __cdecl(void)&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;::_Run+0x6a [c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread @ 247]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;14 0000009f`c9bff750 00007ff6`ab77539d mongod!std::_LaunchPad&amp;lt;std::unique_ptr&amp;lt;std::tuple&amp;lt;std::packaged_task&amp;lt;bool __cdecl(void)&amp;gt; &amp;gt;,std::default_delete&amp;lt;std::tuple&amp;lt;std::packaged_task&amp;lt;bool __cdecl(void)&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;::_Go+0x28 [c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread @ 233]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;15 0000009f`c9bff780 00007ff9`b9bda1bc mongod!std::_Pad::_Call_func+0x2d [c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread @ 210]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;16 0000009f`c9bff7b0 00007ff9`b9bd9e13 ucrtbased!register_onexit_function+0x47c&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;17 0000009f`c9bff7f0 00007ffa`0d258364 ucrtbased!register_onexit_function+0xd3&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;18 0000009f`c9bff840 00007ffa`0d7870d1 kernel32!BaseThreadInitThunk+0x14&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;19 0000009f`c9bff870 00000000`00000000 ntdll!RtlUserThreadStart+0x21&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="154964" author="tad" created="Mon, 20 Aug 2012 17:12:30 +0000"  >&lt;p&gt;This bug will be fixed when &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6771&quot; title=&quot;Windows Service: &amp;#39;net stop mongodb&amp;#39; gives System error 109 has occurred. -- The pipe has been ended.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6771&quot;&gt;&lt;del&gt;SERVER-6771&lt;/del&gt;&lt;/a&gt; is fixed.  I&apos;m keeping the bugs separate because the symptoms and steps-to-reproduce are different, but the fix for both bugs is to unwind (return) from our shutdown code and not exit directly from it.  The caller will still call _exit(), so we preserve that desired change to our exit logic.&lt;/p&gt;</comment>
                            <comment id="154958" author="tad" created="Mon, 20 Aug 2012 17:08:37 +0000"  >&lt;p&gt;The issue with &quot;net stop mongodb&quot; is just an unwanted error message (&quot;System error 109 has occurred.&quot; and &quot;The pipe has been ended.&quot;) and isn&apos;t a symptom of anything worse going on.  See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6771&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-6771&lt;/a&gt; for some information about what is happening.&lt;/p&gt;

&lt;p&gt;This bug is sort of the flipside of the other one.  In &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6771&quot; title=&quot;Windows Service: &amp;#39;net stop mongodb&amp;#39; gives System error 109 has occurred. -- The pipe has been ended.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6771&quot;&gt;&lt;del&gt;SERVER-6771&lt;/del&gt;&lt;/a&gt;, the Windows Service Control Manager tells us to shut down, and we do that and indicate that we are stopped, but we then exit before returning to the SCM the way it expects us to.  In this bug, we exit before we ever reach the code that would tell the SCM that we are shutting down, so it doesn&apos;t know that we have exited on purpose and so it restarts us (if set to do so on &quot;failure&quot;).&lt;/p&gt;

&lt;p&gt;Both bugs need basically the same fix.  When shutting down while running as a service, we need to return from the &quot;shutdown&quot; code and not exit from it.  Once we have unwound through the SCM, including telling it that we have shut down (therefore that we have not &quot;failed&quot;), we are then free to exit the process.&lt;/p&gt;

&lt;p&gt;Despite the error message that you get from &quot;net stop mongodb&quot;, that is probably the better way to shut down MongoDB when it is running as a service (until this ticket is fixed), because we at least tell the Windows Service Control Manager that we are stopped before we exit.  With &quot;net stop mongodb&quot; you won&apos;t get an error logged to the Windows Event Log and you won&apos;t trigger a restart if the service is set to restart on failure.&lt;/p&gt;

&lt;p&gt;But either way of shutting down is safe and is a clean shutdown from MongoDB&apos;s point of view.  Journal files will be closed and cleaned up and the mongod.lock files will be truncated, so except for annoying the Windows Service Control Manager everything is fine.&lt;/p&gt;

&lt;p&gt;Both of these bugs were created when we changed our exit logic to exit immediately after shutting down instead of unwinding through all calling routines and exiting from main() (the way we used to).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="347938">SERVER-27782</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="47193">SERVER-6771</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>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>
    
                        </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>Mon, 20 Aug 2012 17:08:37 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 50 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_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>
                            6 years, 50 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[Windows]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>itzikkg</customfieldvalue>
            <customfieldvalue>mark.benvenuto@mongodb.com</customfieldvalue>
            <customfieldvalue>rhoffman</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hro0db:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4066</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="1518">Platforms 2017-02-13</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10153"><![CDATA[Unneeded]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrj1an:</customfieldvalue>

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