<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:16:18 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-27810] Guarantee that replicaset is stable with node 0 as primary after ReplSetTest.initiate()</title>
                <link>https://jira.mongodb.org/browse/SERVER-27810</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;reconfig can occasionally lead to the primary stepping down. This means that the guarantee we thought &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20844&quot; title=&quot;Start ReplSetTests faster wrt initial election&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20844&quot;&gt;&lt;del&gt;SERVER-20844&lt;/del&gt;&lt;/a&gt; gave us, of being a stable replicaset with node 0 as primary, is not always guaranteed. To address this, we should call awaitNodesAgreeOnPrimary() and then make sure that node 0 is the primary. If it is not, we should step up node 0 to primary. In PV1 we can use &lt;tt&gt;replSetStepUp&lt;/tt&gt; on node 0 to accomplish this. In PV0, we can repeatedly call &lt;tt&gt;replSetStepDown&lt;/tt&gt; on the primary with a high step down timeout until node 0 is elected. At that point we can call &lt;tt&gt;replSetFreeze&lt;/tt&gt; on every node with a freeze timeout of 0 to allow them all to run for election immediately if they want to.&lt;/p&gt;</description>
                <environment></environment>
        <key id="349076">SERVER-27810</key>
            <summary>Guarantee that replicaset is stable with node 0 as primary after ReplSetTest.initiate()</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="judah.schvimer@mongodb.com">Judah Schvimer</assignee>
                                    <reporter username="judah.schvimer@mongodb.com">Judah Schvimer</reporter>
                        <labels>
                    </labels>
                <created>Wed, 25 Jan 2017 16:45:33 +0000</created>
                <updated>Wed, 5 Apr 2017 11:41:26 +0000</updated>
                            <resolved>Thu, 23 Feb 2017 22:20:29 +0000</resolved>
                                                    <fixVersion>3.4.3</fixVersion>
                    <fixVersion>3.5.4</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1538081" author="xgen-internal-githook" created="Fri, 31 Mar 2017 16:38:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28376&quot; title=&quot;ReplSetTest.initiate() should call awaitReplication before requesting node 0 to step up as primary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28376&quot;&gt;&lt;del&gt;SERVER-28376&lt;/del&gt;&lt;/a&gt; remove references to unsupported ReplSetTest.initiate() initiateTimeout option.&lt;/p&gt;

&lt;p&gt;This option was removed in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27810&quot; title=&quot;Guarantee that replicaset is stable with node 0 as primary after ReplSetTest.initiate()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27810&quot;&gt;&lt;del&gt;SERVER-27810&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 2e189a57db00b291b171d5a2323700d6f57cd471)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ede51fda3a16f7aa3de35579f3cafe886f138a4c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ede51fda3a16f7aa3de35579f3cafe886f138a4c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1535603" author="xgen-internal-githook" created="Wed, 29 Mar 2017 01:23:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28376&quot; title=&quot;ReplSetTest.initiate() should call awaitReplication before requesting node 0 to step up as primary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28376&quot;&gt;&lt;del&gt;SERVER-28376&lt;/del&gt;&lt;/a&gt; remove references to unsupported ReplSetTest.initiate() initiateTimeout option.&lt;/p&gt;

&lt;p&gt;This option was removed in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27810&quot; title=&quot;Guarantee that replicaset is stable with node 0 as primary after ReplSetTest.initiate()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27810&quot;&gt;&lt;del&gt;SERVER-27810&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2e189a57db00b291b171d5a2323700d6f57cd471&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2e189a57db00b291b171d5a2323700d6f57cd471&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1516643" author="xgen-internal-githook" created="Mon, 6 Mar 2017 15:12:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;judahschvimer&apos;, u&apos;name&apos;: u&apos;Judah Schvimer&apos;, u&apos;email&apos;: u&apos;judah@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27810&quot; title=&quot;Guarantee that replicaset is stable with node 0 as primary after ReplSetTest.initiate()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27810&quot;&gt;&lt;del&gt;SERVER-27810&lt;/del&gt;&lt;/a&gt; Guarantee that all nodes agree node 0 is primary after ReplSetTest.initiate()&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 3823a20f0186d0e6b544212fb423f9f0ef786235)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/04eb46ca8ceb1862c82ea70745cf72b4cc6450e3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/04eb46ca8ceb1862c82ea70745cf72b4cc6450e3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1507744" author="xgen-internal-githook" created="Thu, 23 Feb 2017 22:20:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;judahschvimer&apos;, u&apos;name&apos;: u&apos;Judah Schvimer&apos;, u&apos;email&apos;: u&apos;judah@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27810&quot; title=&quot;Guarantee that replicaset is stable with node 0 as primary after ReplSetTest.initiate()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27810&quot;&gt;&lt;del&gt;SERVER-27810&lt;/del&gt;&lt;/a&gt; Guarantee that all nodes agree node 0 is primary after ReplSetTest.initiate()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3823a20f0186d0e6b544212fb423f9f0ef786235&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3823a20f0186d0e6b544212fb423f9f0ef786235&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1492772" author="judah.schvimer" created="Mon, 6 Feb 2017 15:08:13 +0000"  >&lt;p&gt;I actually think these are separate issues. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27839&quot; title=&quot;Allow for step downs during reconfig in ReplSetTest initiate&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27839&quot;&gt;&lt;del&gt;SERVER-27839&lt;/del&gt;&lt;/a&gt; is about an error during the reconfig command. This one is about letting the replicaset stabilize a bit before it&apos;s used in a ShardingTest. Fixing &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27839&quot; title=&quot;Allow for step downs during reconfig in ReplSetTest initiate&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27839&quot;&gt;&lt;del&gt;SERVER-27839&lt;/del&gt;&lt;/a&gt; in the minimal way will not address this. I&apos;m re-opening this for now.&lt;/p&gt;</comment>
                            <comment id="1492024" author="crystal.horn@10gen.com" created="Fri, 3 Feb 2017 20:44:20 +0000"  >&lt;p&gt;We should fix this for all repl sets not just ones in the sharding test by fixing &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27839&quot; title=&quot;Allow for step downs during reconfig in ReplSetTest initiate&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27839&quot;&gt;&lt;del&gt;SERVER-27839&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="349751">SERVER-27839</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="365726">SERVER-28376</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>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>Fri, 3 Feb 2017 20:44:20 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 45 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>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, 45 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>crystal.horn@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>judah.schvimer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht1kb3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsu8lb:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1453">Repl 2017-03-06</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlfbj:</customfieldvalue>

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