<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:12:39 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-6771] Windows Service: &apos;net stop mongodb&apos; gives System error 109 has occurred. -- The pipe has been ended.</title>
                <link>https://jira.mongodb.org/browse/SERVER-6771</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When mongod.exe is installed as a service on Windows (with --install), the &quot;net stop mongodb&quot; command does not reply with &quot;The Mongo DB service was stopped successfully.&quot; the way it did in version 2.1.0 but instead displays &quot;System error 109 has occurred.&quot; and &quot;The pipe has been ended.&quot;.  This was likely broken by changes we made to our exit logic after 2.1.0 but before 2.2.0-rc1.&lt;/p&gt;

&lt;p&gt;This error message is actually the extent of the problem &amp;#8211; we shut down cleanly and no errors are logged in the Windows Event Log.&lt;/p&gt;</description>
                <environment>Windows, mongod.exe or mongos.exe running as a service</environment>
        <key id="47193">SERVER-6771</key>
            <summary>Windows Service: &apos;net stop mongodb&apos; gives System error 109 has occurred. -- The pipe has been ended.</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="tad">Tad Marshall</reporter>
                        <labels>
                            <label>Windows</label>
                            <label>cap-ticket-needed</label>
                    </labels>
                <created>Wed, 15 Aug 2012 13:10:32 +0000</created>
                <updated>Wed, 3 Jan 2018 04:19:12 +0000</updated>
                            <resolved>Mon, 11 Aug 2014 17:56:05 +0000</resolved>
                                    <version>2.0.7</version>
                    <version>2.2.0-rc1</version>
                                    <fixVersion>2.7.5</fixVersion>
                                    <component>Packaging</component>
                                        <votes>12</votes>
                                    <watches>18</watches>
                                                                                                                <comments>
                            <comment id="684056" author="xgen-internal-githook" created="Thu, 7 Aug 2014 17:47:04 +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-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;: Windows Service: &apos;net stop mongodb&apos; gives System error 109 has occurred. &amp;#8211; The pipe has been ended.&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13338&quot; title=&quot;NT Service does not return failure code on exit&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13338&quot;&gt;&lt;del&gt;SERVER-13338&lt;/del&gt;&lt;/a&gt;: NT Service does not return failure code on exit&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/488e855b797f1a61d6a5e08f812f85fcb2f03a51&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/488e855b797f1a61d6a5e08f812f85fcb2f03a51&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="522854" author="mkennedy66996693" created="Tue, 25 Mar 2014 15:26:35 +0000"  >&lt;p&gt;I believe this is also the case on Windows 8.1 running 2.6 rc0. &lt;/p&gt;</comment>
                            <comment id="522827" author="jmedaglia" created="Tue, 25 Mar 2014 14:58:28 +0000"  >&lt;p&gt;Regarding the affected versions, this is still happening on latest MongoDB version (2.4.9 64-bit) in Windows 7&lt;/p&gt;</comment>
                            <comment id="511813" author="mkennedy66996693" created="Fri, 7 Mar 2014 20:37:26 +0000"  >&lt;p&gt;Nice to see this getting some attention, thanks.&lt;/p&gt;</comment>
                            <comment id="169694" author="tad" created="Mon, 1 Oct 2012 10:55:12 +0000"  >&lt;p&gt;On some systems, you may see the &quot;Error 109&quot; from both a command line &quot;net stop mongodb&quot; and from a stop issued in the Services console, or you may see the error in one place and not in the other.  The cause and the fix should be the same in both cases, but we&apos;ll be sure to test both when fixing this.&lt;/p&gt;</comment>
                            <comment id="154280" author="tad" created="Fri, 17 Aug 2012 10:04:51 +0000"  >&lt;p&gt;The commit that fixed this broke clean shutdown.  I need to prevent early exit in a different way.&lt;/p&gt;</comment>
                            <comment id="154277" author="auto" created="Fri, 17 Aug 2012 09:49:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-08-17T02:48:08-07:00&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;}
&lt;p&gt;Message: Revert &quot;&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; don&apos;t exit until SCM is done with us&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit a30fbf1c35b266c608e50a48d68d4a7a147015e8.&lt;/p&gt;

&lt;p&gt;This change appears to have broken clean shutdown in many cases&lt;br/&gt;
(presumably because I skip a call to exitCleanly if a shutdown is&lt;br/&gt;
already in progress).&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bd761d51930a8481a14664c98ae1219c858cdd02&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bd761d51930a8481a14664c98ae1219c858cdd02&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="154153" author="tad" created="Thu, 16 Aug 2012 21:05:09 +0000"  >&lt;p&gt;Fix pushed to master ... not yet to 2.2 or 2.0 branches.&lt;/p&gt;</comment>
                            <comment id="154151" author="auto" created="Thu, 16 Aug 2012 21:03:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-08-16T10:56:06-07:00&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;}
&lt;p&gt;Message: &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; don&apos;t exit until SCM is done with us&lt;/p&gt;

&lt;p&gt;Stay running while the Windows Service Control Manager makes its&lt;br/&gt;
various callbacks and return from any callbacks we are in before&lt;br/&gt;
we exit with ::_exit( EXIT_CLEAN ).  This lets the SCM close the&lt;br/&gt;
pipe itself before we go away, so it doesn&apos;t see us &quot;end&quot; it.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a30fbf1c35b266c608e50a48d68d4a7a147015e8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a30fbf1c35b266c608e50a48d68d4a7a147015e8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="154077" author="tad" created="Thu, 16 Aug 2012 18:42:29 +0000"  >&lt;p&gt;I spent some quality time in the debugger and learned what REALLY goes on when we run as a service and then get shut down.  It&apos;s a little different from what I had thought before.&lt;/p&gt;

&lt;p&gt;When we call the Windows API StartServiceCtrlDispatcher(), that thread blocks inside the Windows Service Control Manager until it is ready to let go of us.  The &quot;start&quot; address that we pass to this API is called on a new thread, and we proceed to do our run-as-a-service thing on that thread.  The SCM wants us to &lt;b&gt;RETURN&lt;/b&gt; from that thread, at which point it will return on the original thread and we are then free to call _exit() to prevent static destructors from doing any damage.  What we &lt;b&gt;CAN&apos;T&lt;/b&gt; do is exit from the callback thread, at least if we want to keep the SCM happy.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="58926">SERVER-7901</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="184419">SERVER-17295</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="168548">SERVER-16085</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="40969">SERVER-6065</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="114188">SERVER-12875</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="37146">SERVER-5703</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10220">
                    <name>Tested</name>
                                            <outwardlinks description="tested by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.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_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000UaVB5IAN]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 16 Aug 2012 21:03:35 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 27 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_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 27 weeks, 6 days 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>auto</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jmedaglia</customfieldvalue>
            <customfieldvalue>mark.benvenuto@mongodb.com</customfieldvalue>
            <customfieldvalue>mkennedy66996693</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|hrnrrr:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4065</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="234">Server 2.7.5</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|hs0f0n:</customfieldvalue>

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