<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:44:10 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-36817] replSetFreeze command run by stepdown thread may fail when server is already primary</title>
                <link>https://jira.mongodb.org/browse/SERVER-36817</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;As part of the changes to address &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35383&quot; title=&quot;Increase electionTimeoutMillis for the ContinuousStepdown hook used in stepdown suites&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35383&quot;&gt;&lt;del&gt;SERVER-35383&lt;/del&gt;&lt;/a&gt; and based on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35124?focusedCommentId=1916761&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1916761&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;this comment&lt;/a&gt; from &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35124&quot; title=&quot;Stepdown suites with MMAP V1 often fail due to `flushing mmaps` taking long time&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35124&quot;&gt;&lt;del&gt;SERVER-35124&lt;/del&gt;&lt;/a&gt;, the stepdown thread in resmoke.py runs the {&lt;tt&gt;replSetFreeze: 0&lt;/tt&gt;} command to make the former primary electable in the next round of stepdowns. Since the primary is only stepped down &lt;a href=&quot;https://github.com/mongodb/mongo/blob/2bed54b084995f2c2dd048b6a70b6fd678e1ac30/buildscripts/resmokelib/testing/hooks/stepdown.py#L28&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;for 10 seconds (by default)&lt;/a&gt;, it is possible for enough time to have passed for the primary to have tried to step back up on its own before the {&lt;tt&gt;replSetFreeze: 0&lt;/tt&gt;} command is run.&lt;/p&gt;

&lt;p&gt;We either need to handle the &lt;tt&gt;OperationFailure: cannot freeze node when primary or running for election. state: Primary&lt;/tt&gt; exception or prevent it from occurring.&lt;/p&gt;</description>
                <environment></environment>
        <key id="593207">SERVER-36817</key>
            <summary>replSetFreeze command run by stepdown thread may fail when server is already primary</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="13201">Fixed</resolution>
                                        <assignee username="jonathan.abrahams">Jonathan Abrahams</assignee>
                                    <reporter username="max.hirschhorn@mongodb.com">Max Hirschhorn</reporter>
                        <labels>
                            <label>tig-resmoke</label>
                    </labels>
                <created>Thu, 23 Aug 2018 04:03:10 +0000</created>
                <updated>Sun, 29 Oct 2023 22:28:43 +0000</updated>
                            <resolved>Mon, 27 Aug 2018 16:16:56 +0000</resolved>
                                                    <fixVersion>3.6.10</fixVersion>
                    <fixVersion>4.0.6</fixVersion>
                    <fixVersion>4.1.3</fixVersion>
                                    <component>Testing Infrastructure</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2099127" author="xgen-internal-githook" created="Sat, 22 Dec 2018 02:43:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;hptabster&apos;, &apos;email&apos;: &apos;jonathan@mongodb.com&apos;, &apos;name&apos;: &apos;Jonathan Abrahams&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36817&quot; title=&quot;replSetFreeze command run by stepdown thread may fail when server is already primary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36817&quot;&gt;&lt;del&gt;SERVER-36817&lt;/del&gt;&lt;/a&gt; replSetFreeze command run by stepdown thread may fail when server is already primary&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 0c0a4acea4a1c7bb579f5aaaa89a6f1545cf22ef)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f3e59b921a82be829c5adee055b9875232adfe95&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f3e59b921a82be829c5adee055b9875232adfe95&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2099126" author="xgen-internal-githook" created="Sat, 22 Dec 2018 02:42:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;hptabster&apos;, &apos;email&apos;: &apos;jonathan@mongodb.com&apos;, &apos;name&apos;: &apos;Jonathan Abrahams&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36817&quot; title=&quot;replSetFreeze command run by stepdown thread may fail when server is already primary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36817&quot;&gt;&lt;del&gt;SERVER-36817&lt;/del&gt;&lt;/a&gt; replSetFreeze command run by stepdown thread may fail when server is already primary&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 0c0a4acea4a1c7bb579f5aaaa89a6f1545cf22ef)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ccbe71910133c84645496ce360f6b65564d415fa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ccbe71910133c84645496ce360f6b65564d415fa&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1986572" author="xgen-internal-githook" created="Mon, 27 Aug 2018 16:16:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jonathan Abrahams&apos;, &apos;email&apos;: &apos;jonathan@mongodb.com&apos;, &apos;username&apos;: &apos;hptabster&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36817&quot; title=&quot;replSetFreeze command run by stepdown thread may fail when server is already primary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36817&quot;&gt;&lt;del&gt;SERVER-36817&lt;/del&gt;&lt;/a&gt; replSetFreeze command run by stepdown thread may fail when server is already primary&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0c0a4acea4a1c7bb579f5aaaa89a6f1545cf22ef&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0c0a4acea4a1c7bb579f5aaaa89a6f1545cf22ef&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1983390" author="max.hirschhorn@10gen.com" created="Thu, 23 Aug 2018 04:03:18 +0000"  >&lt;blockquote&gt;
&lt;p&gt;We either need to handle the &lt;tt&gt;OperationFailure: cannot freeze node when primary or running for election. state: Primary&lt;/tt&gt; exception or prevent it from occurring.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Allowing a node to step back up on its own violates the principle of ensuring the stepdown thread is in complete control over which node is primary at any moment. I&apos;d be in favor of removing the &lt;tt&gt;stepdown_duration_secs&lt;/tt&gt; configuration option and instead having it always be a very long time (e.g. 24 hours) so that the stepdown thread must run the &lt;tt&gt;replSetStepUp&lt;/tt&gt; command for a node to ever become primary. CC &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=judah.schvimer&quot; class=&quot;user-hover&quot; rel=&quot;judah.schvimer&quot;&gt;judah.schvimer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If we go down this found, then I think leave cleaning up &lt;a href=&quot;https://github.com/mongodb/mongo/blob/2bed54b084995f2c2dd048b6a70b6fd678e1ac30/buildscripts/resmokelib/testing/hooks/stepdown.py#L371-L378&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;the exception handling for the &lt;tt&gt;replSetStepUp&lt;/tt&gt; command&lt;/a&gt; to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36451&quot; title=&quot;ContinuousStepdown with killing nodes can hang due to not being able to start the primary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36451&quot;&gt;&lt;del&gt;SERVER-36451&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="10520">
                    <name>Problem/Incident</name>
                                                                <inwardlinks description="is caused by">
                                        <issuelink>
            <issuekey id="554030">SERVER-35383</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="594217">SERVER-36868</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>4.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="15640"><![CDATA[v4.0]]></customfieldvalue>
    <customfieldvalue key="15141"><![CDATA[v3.6]]></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>Mon, 27 Aug 2018 14:01:32 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 7 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>
                            5 years, 7 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_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>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jonathan.abrahams</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu67h3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr8dyv:</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="2423">TIG 2018-09-10</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</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|hu5tqf:</customfieldvalue>

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