<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:25 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-2869] rs.stepDown() should fail if slave is far behind and also allow &apos;force&apos; option</title>
                <link>https://jira.mongodb.org/browse/SERVER-2869</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When a user calls rs.stepDown():&lt;/p&gt;

&lt;p&gt;1. If then closest secondary is more than 10 seconds behind the primary, then the stepDown() should be automatically rejected. This is to prevent the situation where the secondary catches up and then the original primary is re-elected. (Many users have experienced this phenomenon, and it doesn&apos;t jibe with the idea of a stepDown().)&lt;/p&gt;

&lt;p&gt;2. If the stepDown() is rejected, the users should have the option for say rs.stepDown(&lt;/p&gt;
{force: 1}
&lt;p&gt;), which will stop writes to the primary, wait for the secondary to catch up, and then step down the primary so that the secondary does in fact become primary.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15381">SERVER-2869</key>
            <summary>rs.stepDown() should fail if slave is far behind and also allow &apos;force&apos; option</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="9">Done</resolution>
                                        <assignee username="kristina">Kristina Chodorow</assignee>
                                    <reporter username="kbanker">Kyle Banker</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Mar 2011 14:28:14 +0000</created>
                <updated>Tue, 12 Jul 2016 00:18:47 +0000</updated>
                            <resolved>Tue, 5 Apr 2011 22:07:06 +0000</resolved>
                                    <version>1.8.0</version>
                                    <fixVersion>1.9.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="27895" author="auto" created="Tue, 5 Apr 2011 22:06:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;kchodorow&apos;, u&apos;name&apos;: u&apos;Kristina&apos;, u&apos;email&apos;: u&apos;kristina@10gen.com&apos;}
&lt;p&gt;Message: stepdown is rejected if other nodes are not up-to-date &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2869&quot; title=&quot;rs.stepDown() should fail if slave is far behind and also allow &amp;#39;force&amp;#39; option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2869&quot;&gt;&lt;del&gt;SERVER-2869&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;add force : true option to force stepdown&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6af8365495692b330f1ec8a93c5f172817f7a7c3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6af8365495692b330f1ec8a93c5f172817f7a7c3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="27405" author="kristina" created="Thu, 31 Mar 2011 13:22:24 +0000"  >&lt;p&gt;I don&apos;t think having a &quot;force&quot; option would work correctly, I think that &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1053&quot; title=&quot;UpdateOp just looks for first match, even with multi updates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1053&quot;&gt;&lt;del&gt;SERVER-1053&lt;/del&gt;&lt;/a&gt; (priorities) is really what people want and stepDown is merely a temporary hack to get the correct node to become master.  With priorities, if someone sets the master to a lower priority, it will become a secondary, everyone will sync off of it until the highest-priority node (reachable by a majority) is up-to-date, and then the highest-priority node will become master.  So, I think that effectively covers what force:1 would do.&lt;/p&gt;

&lt;p&gt;I think that stepDown &lt;em&gt;should&lt;/em&gt; have a longer time that it forces a node to be secondary (maybe 5 minutes instead of 30 seconds).  However, once priorities are committed, I don&apos;t see this command being used much.&lt;/p&gt;

&lt;p&gt;Also, there are some practical problems: what would force:1 do if there is no secondary that could become primary?  What if there is a secondary but it never catches up (it could have an error and stop syncing)?  Then we&apos;d need another command to un-step-down, too.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 31 Mar 2011 13:22:24 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 46 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>
                            12 years, 46 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>kbanker</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp2an:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21015</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_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|ht0fjb:</customfieldvalue>

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