<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:14:13 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-27120] Increase synchronization between producer/applier threads and stepdown/stepup</title>
                <link>https://jira.mongodb.org/browse/SERVER-27120</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description></description>
                <environment></environment>
        <key id="332980">SERVER-27120</key>
            <summary>Increase synchronization between producer/applier threads and stepdown/stepup</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="siyuan.zhou@mongodb.com">Siyuan Zhou</assignee>
                                    <reporter username="spencer@mongodb.com">Spencer Brody</reporter>
                        <labels>
                            <label>bkp</label>
                            <label>todo_in_code</label>
                    </labels>
                <created>Fri, 18 Nov 2016 21:14:50 +0000</created>
                <updated>Thu, 31 Oct 2019 03:39:23 +0000</updated>
                            <resolved>Tue, 28 Feb 2017 00:35:54 +0000</resolved>
                                                    <fixVersion>3.4.4</fixVersion>
                    <fixVersion>3.5.4</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="2509610" author="xgen-internal-githook" created="Thu, 31 Oct 2019 03:39:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Siyuan Zhou&apos;, &apos;username&apos;: &apos;visualzhou&apos;, &apos;email&apos;: &apos;siyuan.zhou@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42555&quot; title=&quot;Complete TODO listed in SERVER-27120&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42555&quot;&gt;&lt;del&gt;SERVER-42555&lt;/del&gt;&lt;/a&gt; Remove out-of-date comments of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27120&quot; title=&quot;Increase synchronization between producer/applier threads and stepdown/stepup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27120&quot;&gt;&lt;del&gt;SERVER-27120&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/acfe11e80f5d8b3988802a9dfcd08f913a717dac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/acfe11e80f5d8b3988802a9dfcd08f913a717dac&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1540759" author="xgen-internal-githook" created="Tue, 4 Apr 2017 19:44:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;visualzhou&apos;, u&apos;name&apos;: u&apos;Siyuan Zhou&apos;, u&apos;email&apos;: u&apos;siyuan.zhou@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27120&quot; title=&quot;Increase synchronization between producer/applier threads and stepdown/stepup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27120&quot;&gt;&lt;del&gt;SERVER-27120&lt;/del&gt;&lt;/a&gt; Fix js test for no journal builds.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 4403f1b1b503e67058ef7425d7e278be1d5b3e84)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/74cebe59bfbac098d898add311ddbaa9829de8d3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/74cebe59bfbac098d898add311ddbaa9829de8d3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1540757" author="xgen-internal-githook" created="Tue, 4 Apr 2017 19:44:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;visualzhou&apos;, u&apos;name&apos;: u&apos;Siyuan Zhou&apos;, u&apos;email&apos;: u&apos;siyuan.zhou@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27120&quot; title=&quot;Increase synchronization between producer/applier threads and stepdown/stepup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27120&quot;&gt;&lt;del&gt;SERVER-27120&lt;/del&gt;&lt;/a&gt; Increase synchronization between producer/applier threads and stepdown/stepup&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27913&quot; title=&quot;Make sure the last applied hash is corresponding to the last applied optime in bgsync start()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27913&quot;&gt;&lt;del&gt;SERVER-27913&lt;/del&gt;&lt;/a&gt; Make sure the last applied hash is corresponding to the last applied optime in bgsync start()&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 1da3111dc238698e4e70672b7ba260a368121e50)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/95c5e610ed9922a5d517c2f0109b1600096e1af2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/95c5e610ed9922a5d517c2f0109b1600096e1af2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1514975" author="siyuan.zhou@10gen.com" created="Fri, 3 Mar 2017 00:25:20 +0000"  >&lt;p&gt;This issue will not cause data corruption on 3.2, so we decided not to backport to it.&lt;/p&gt;

&lt;p&gt;I backported StepUp command to 3.2 locally and modified the test file to run the scenario described in Spencer&apos;s first comment. After step 5, step 6 won&apos;t happen because the last oplog entry is the sentinel, &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.2.12/src/mongo/db/repl/bgsync.cpp#L232-L241&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;bgsync refuses to sync anything until it exits drain mode in 3.2&lt;/a&gt;. As a result, the node will be spinning around line 239.&lt;/p&gt;

&lt;p&gt;3.2 won&apos;t run into data corruption as we thought. This patch is more about a clean-up on master (and 3.4) to fix inconsistent states when stepping down during draining.&lt;/p&gt;</comment>
                            <comment id="1514962" author="xgen-internal-githook" created="Fri, 3 Mar 2017 00:07:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;visualzhou&apos;, u&apos;name&apos;: u&apos;Siyuan Zhou&apos;, u&apos;email&apos;: u&apos;siyuan.zhou@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27120&quot; title=&quot;Increase synchronization between producer/applier threads and stepdown/stepup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27120&quot;&gt;&lt;del&gt;SERVER-27120&lt;/del&gt;&lt;/a&gt; Fix js test for no journal builds.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4403f1b1b503e67058ef7425d7e278be1d5b3e84&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4403f1b1b503e67058ef7425d7e278be1d5b3e84&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1510861" author="xgen-internal-githook" created="Tue, 28 Feb 2017 00:28:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;visualzhou&apos;, u&apos;name&apos;: u&apos;Siyuan Zhou&apos;, u&apos;email&apos;: u&apos;siyuan.zhou@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27120&quot; title=&quot;Increase synchronization between producer/applier threads and stepdown/stepup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27120&quot;&gt;&lt;del&gt;SERVER-27120&lt;/del&gt;&lt;/a&gt; Increase synchronization between producer/applier threads and stepdown/stepup&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27913&quot; title=&quot;Make sure the last applied hash is corresponding to the last applied optime in bgsync start()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27913&quot;&gt;&lt;del&gt;SERVER-27913&lt;/del&gt;&lt;/a&gt; Make sure the last applied hash is corresponding to the last applied optime in bgsync start()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1da3111dc238698e4e70672b7ba260a368121e50&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1da3111dc238698e4e70672b7ba260a368121e50&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1438033" author="spencer" created="Fri, 18 Nov 2016 21:29:47 +0000"  >&lt;p&gt;Minimal fix is to refuse to run for election if _isWaitingForApplierToDrain or _isCatchingUp is true.&lt;br/&gt;
Additionally we should try to signal to the producer to stop producing new ops on stepdown, to expedite the applier finishing the current batch and signaling drain complete.&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="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="330814">SERVER-26970</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="363660">SERVER-28272</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="881104">SERVER-42555</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="935558">SERVER-43451</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="978496">SERVER-44204</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="383702">SERVER-29222</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="293497">SERVER-24536</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="320006">SERVER-26403</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="360453">SERVER-28181</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.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>
    <customfieldvalue key="13440"><![CDATA[v3.2]]></customfieldvalue>
    <customfieldvalue key="12643"><![CDATA[v3.0]]></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, 18 Nov 2016 23:45:56 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 15 weeks 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>xgen-internal-githook</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 15 weeks 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>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>siyuan.zhou@mongodb.com</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjqdb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrb4dz:</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="1311">Repl 2016-12-12</customfieldvalue>
    <customfieldvalue id="1313">Repl 2017-01-23</customfieldvalue>
    <customfieldvalue id="1450">Repl 2017-02-13</customfieldvalue>
    <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|hs4p13:</customfieldvalue>

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