<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:11:27 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-26211] secondaryCatchUpPeriodSecs of rs.stepDown() doesn&apos;t seem to work</title>
                <link>https://jira.mongodb.org/browse/SERVER-26211</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I&apos;ve run rs.stepDown(long, int) command several times with different integer paramter.&lt;br/&gt;
But looks like period to elect new primary is nothing to do with secondaryCatchUpPeriodSecs and replSetStepDown parameters.&lt;/p&gt;


&lt;p&gt;And one more thing is that primary/secondary swithing by changing member priority value doesn&apos;t waiting replication sync so this method make rollback but rs.stepDown is not.&lt;br/&gt;
Is there any difference between above two method ? (I can&apos;t find any difference of two method in manual.)&lt;/p&gt;
</description>
                <environment></environment>
        <key id="317753">SERVER-26211</key>
            <summary>secondaryCatchUpPeriodSecs of rs.stepDown() doesn&apos;t seem to work</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="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="sunguck.lee@gmail.com">&#50500;&#45208; &#54616;&#47532;</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Sep 2016 09:15:57 +0000</created>
                <updated>Wed, 8 Feb 2023 15:40:57 +0000</updated>
                            <resolved>Fri, 23 Sep 2016 19:05:51 +0000</resolved>
                                    <version>3.2.9</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1392277" author="thomas.schubert" created="Fri, 23 Sep 2016 19:05:51 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=matt.lee&quot; class=&quot;user-hover&quot; rel=&quot;matt.lee&quot;&gt;matt.lee&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Yes, that is correct. My recommendation would be to either only use priority values of 0 or 1 or to use replication protocol version 0 to avoid these small rollbacks until &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23663&quot; title=&quot;New primary syncs from chosen node to catch up with timeout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23663&quot;&gt;&lt;del&gt;SERVER-23663&lt;/del&gt;&lt;/a&gt; is released.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1391691" author="sunguck.lee@gmail.com" created="Fri, 23 Sep 2016 06:14:41 +0000"  >&lt;p&gt;Hi Thomas.&lt;/p&gt;

&lt;p&gt;So we can&apos;t use priority takeover until &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23663&quot; title=&quot;New primary syncs from chosen node to catch up with timeout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23663&quot;&gt;&lt;del&gt;SERVER-23663&lt;/del&gt;&lt;/a&gt; released to avoid rollback.&lt;/p&gt;

&lt;p&gt;&amp;gt; If what you are observing does not match this expectation, would you please upload the logs for each node in the replica set so we can continue to investigate?&lt;br/&gt;
I have found what I misunderstand, after reading source code and manual about secondaryCatchUpPeriodSecs and stepDown().&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="1391688" author="thomas.schubert" created="Fri, 23 Sep 2016 06:03:21 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=matt.lee&quot; class=&quot;user-hover&quot; rel=&quot;matt.lee&quot;&gt;matt.lee&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Currently, as of MongoDB 3.2.9, using protocol version 1, priority takeovers do not include a catch-up period where the newly elected primary continues to sync for some time before accepting writes to avoid rollbacks. This feature is introduced in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23663&quot; title=&quot;New primary syncs from chosen node to catch up with timeout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23663&quot;&gt;&lt;del&gt;SERVER-23663&lt;/del&gt;&lt;/a&gt; and will be included in MongoDB 3.4.&lt;/p&gt;

&lt;p&gt;As you know, the secondaryCatchUpPeriodSecs is the maximum number of seconds that the primary will wait for a secondary to catch up, and an election will occur earlier when/if a secondary has caught up. &lt;/p&gt;

&lt;p&gt;If what you are observing does not match this expectation, would you please upload the logs for each node in the replica set so we can continue to investigate?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1389591" author="sunguck.lee@gmail.com" created="Wed, 21 Sep 2016 09:17:35 +0000"  >&lt;p&gt;Manual pages I&apos;ve check are&lt;br/&gt;
&amp;gt; &lt;a href=&quot;https://docs.mongodb.com/manual/tutorial/adjust-replica-set-member-priority/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/tutorial/adjust-replica-set-member-priority/&lt;/a&gt;&lt;br/&gt;
&amp;gt; &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/replSetStepDown/#dbcmd.replSetStepDown&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/command/replSetStepDown/#dbcmd.replSetStepDown&lt;/a&gt;&lt;br/&gt;
&amp;gt; &lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/rs.stepDown/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/method/rs.stepDown/&lt;/a&gt;&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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 23 Sep 2016 06:03:21 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 20 weeks, 5 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_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 20 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>sunguck.lee@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjvl3:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Just run below command. and compare the elapsed seconds to elect new primary.&lt;/p&gt;

&lt;p&gt;rs.stepDown(100, 90)&lt;br/&gt;
rs.stepDown(100,5)&lt;/p&gt;</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>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

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

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