<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:08:16 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>[DOCS-13609] Investigate changes in SERVER-47190: Shutdown command with force:true should ignore all stepdown errors</title>
                <link>https://jira.mongodb.org/browse/DOCS-13609</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;h2&gt;&lt;a name=&quot;Description&quot;&gt;&lt;/a&gt;Description&lt;/h2&gt;

    &lt;div class=&quot;panel&quot; style=&quot;background-color: #c2d2c2;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;background-color: #239eb0;&quot;&gt;&lt;b&gt;Downstream Change Summary&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #c2d2c2;&quot;&gt;
&lt;p&gt;    It is a bit ambitious in the current documentation what the force option in the shutdown command means. &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/shutdown/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/command/shutdown/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But in implementation prior to this ticket, force means &quot;force to stepDown&quot; the primary. And if force stepDown fails, the shutdown will also fail. But this is no longer true after &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47190&quot; title=&quot;Shutdown command with force:true should ignore all stepdown errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47190&quot;&gt;&lt;del&gt;SERVER-47190&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This ticket slightly changed the semantics of the force option. Now specifying force in shutdown command would ignore all errors during the shutdown process and will shut down the mongod process regardless. Therefore, we should make it clear to users the shutdown command with {force: true} will shut down the server no matter what.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;h2&gt;&lt;a name=&quot;DescriptionofLinkedTicket&quot;&gt;&lt;/a&gt;Description of Linked Ticket&lt;/h2&gt;
&lt;p&gt;    The shutdown command returns an error &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b1607d3b38aef1ad8e8234fbc0bb7b299f858922/src/mongo/db/commands/shutdown_d.cpp#L80-L82&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;if stepdown fails with any error code other than &lt;tt&gt;NotMaster&lt;/tt&gt;&lt;/a&gt;, even if force:true is specified. This can fail with &lt;tt&gt;InterruptedDueToReplStateChange&lt;/tt&gt; if there is a concurrent stepdown in progress, since it kills user operations that take certain locks. In contrast, signal-based shutdown &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b1607d3b38aef1ad8e8234fbc0bb7b299f858922/src/mongo/db/db.cpp#L1059-L1064&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;ignores all stepdown errors&lt;/a&gt; and proceeds with the shutdown. It is expected that shutdown with force:true would always shut down the server, so we should make it behave like signal-based shutdown.&lt;/p&gt;


&lt;h2&gt;&lt;a name=&quot;Scopeofchanges&quot;&gt;&lt;/a&gt;Scope of changes&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;ImpacttoOtherDocs&quot;&gt;&lt;/a&gt;Impact to Other Docs&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;MVP%28WorkandDate%29&quot;&gt;&lt;/a&gt;MVP (Work and Date)&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;Resources%28ScopeorDesignDocs%2CInvision%2Cetc.%29&quot;&gt;&lt;/a&gt;Resources (Scope or Design Docs, Invision, etc.)&lt;/h2&gt;
</description>
                <environment></environment>
        <key id="1326185">DOCS-13609</key>
            <summary>Investigate changes in SERVER-47190: Shutdown command with force:true should ignore all stepdown errors</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="ravind.kumar">Ravind Kumar</assignee>
                                    <reporter username="backlog-server-pm">Backlog - Core Eng Program Management Team</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Apr 2020 19:19:04 +0000</created>
                <updated>Mon, 13 Nov 2023 18:06:17 +0000</updated>
                            <resolved>Tue, 16 Jun 2020 15:45:09 +0000</resolved>
                                                    <fixVersion>4.2.7</fixVersion>
                    <fixVersion>4.4.0-rc4</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                    <fixVersion>Server_Docs_20231030</fixVersion>
                    <fixVersion>Server_Docs_20231106</fixVersion>
                    <fixVersion>Server_Docs_20231105</fixVersion>
                    <fixVersion>Server_Docs_20231113</fixVersion>
                                    <component>manual</component>
                    <component>Server</component>
                        <due>Fri, 1 May 2020 00:00:00 +0000</due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3210094" author="ravind.kumar" created="Tue, 16 Jun 2020 15:45:09 +0000"  >&lt;p&gt;Backport to 4.0 was declined. We&apos;re done here folks&lt;/p&gt;</comment>
                            <comment id="3106685" author="xgen-internal-githook" created="Tue, 26 May 2020 13:18:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rk-mongo&apos;, &apos;email&apos;: &apos;ravind.kumar@mongodb.com&apos;, &apos;username&apos;: &apos;rkumar-mongo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13609&quot; title=&quot;Investigate changes in SERVER-47190: Shutdown command with force:true should ignore all stepdown errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13609&quot;&gt;&lt;del&gt;DOCS-13609&lt;/del&gt;&lt;/a&gt;: shutdown: force on primaries ignores stepdown failure&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/cc64eba930c1ace86365a93d0d5fa6e905bd5152&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/cc64eba930c1ace86365a93d0d5fa6e905bd5152&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3083369" author="xgen-internal-githook" created="Wed, 13 May 2020 15:20:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rk-mongo&apos;, &apos;email&apos;: &apos;ravind.kumar@mongodb.com&apos;, &apos;username&apos;: &apos;rkumar-mongo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13609&quot; title=&quot;Investigate changes in SERVER-47190: Shutdown command with force:true should ignore all stepdown errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13609&quot;&gt;&lt;del&gt;DOCS-13609&lt;/del&gt;&lt;/a&gt;: shutdown: force on primaries ignores stepdown failure&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/eaa0b38589b42fba5de01a82ffde7c4c3e71bc60&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/eaa0b38589b42fba5de01a82ffde7c4c3e71bc60&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3076396" author="ravind.kumar" created="Fri, 8 May 2020 19:09:26 +0000"  >&lt;p&gt;Blocked waiting for backport to 4.0&lt;/p&gt;</comment>
                            <comment id="3072695" author="xgen-internal-githook" created="Wed, 6 May 2020 20:28:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rk-mongo&apos;, &apos;email&apos;: &apos;ravind.kumar@mongodb.com&apos;, &apos;username&apos;: &apos;rkumar-mongo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13609&quot; title=&quot;Investigate changes in SERVER-47190: Shutdown command with force:true should ignore all stepdown errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13609&quot;&gt;&lt;del&gt;DOCS-13609&lt;/del&gt;&lt;/a&gt;: shutdown: force on primaries ignores stepdown failure&lt;br/&gt;
Branch: v4.2.7&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/36e4ddae5487e84bcf6adbaaf157291afeeeef47&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/36e4ddae5487e84bcf6adbaaf157291afeeeef47&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3072691" author="xgen-internal-githook" created="Wed, 6 May 2020 20:27:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rk-mongo&apos;, &apos;email&apos;: &apos;ravind.kumar@mongodb.com&apos;, &apos;username&apos;: &apos;rkumar-mongo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13609&quot; title=&quot;Investigate changes in SERVER-47190: Shutdown command with force:true should ignore all stepdown errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13609&quot;&gt;&lt;del&gt;DOCS-13609&lt;/del&gt;&lt;/a&gt;: shutdown: force on primaries ignores stepdown failure&lt;/p&gt;

&lt;p&gt;Extra fixes&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/031fa80a6d0a9cbba05871ab2487315188a5c2ee&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/031fa80a6d0a9cbba05871ab2487315188a5c2ee&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3065089" author="ravind.kumar" created="Fri, 1 May 2020 19:20:34 +0000"  >&lt;p&gt;&lt;a href=&quot;https://mongodbcr.appspot.com/595990001/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;code review&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                            <outwardlinks description="documents">
                                        <issuelink>
            <issuekey id="1297450">SERVER-47190</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 1 May 2020 19:20:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 34 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCS-12787</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>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 34 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-pm</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>ravind.kumar</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxh73j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hx4mdz:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="3923">ServerDocs: April27-May01</customfieldvalue>
    <customfieldvalue id="3936">ServerDocs: May04-May08</customfieldvalue>
    <customfieldvalue id="3989">ServerDocs: May11-May15</customfieldvalue>
    <customfieldvalue id="4000">ServerDocs: May18-May22</customfieldvalue>
    <customfieldvalue id="4026">ServerDocs: May26-May29</customfieldvalue>
    <customfieldvalue id="4029">ServerDocs2020: Jun 1 -Jun5</customfieldvalue>
    <customfieldvalue id="4048">ServerDocs2020: Jun8-Jun12</customfieldvalue>
    <customfieldvalue id="4066">ServerDocs2020: Jun16-Jun19</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxgtcv:</customfieldvalue>

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