<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:18:03 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-48778] Make reconstruct_prepared_transactions_initial_sync.js robust to election failures.</title>
                <link>https://jira.mongodb.org/browse/SERVER-48778</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Using &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1c196c94bd0f2f0b28a4952d6048776940889a94/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js#L175&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;replTest.stepUp&lt;/a&gt; in the test always expects the replica set to have a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1c196c94bd0f2f0b28a4952d6048776940889a94/src/mongo/shell/replsettest.js#L1445-L1451&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;primary&lt;/a&gt; before running replSetStepUp cmd for any retries.&#160;It&apos;s not possible to hold  that guarantee if a test run with &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1c196c94bd0f2f0b28a4952d6048776940889a94/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js#L27&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;high&lt;/a&gt;&#160;electionTimeOutMillis (24 hrs) because the nodes can&apos;t start an election by it&apos;s own during the test unless it was started by the jstest explicitly using &quot;replSetStepDown&quot; cmd. &lt;/p&gt;

&lt;p&gt;Though &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47612&quot; title=&quot;Elections not robust in remove_newly_added_field_after_finishing_initial_sync.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47612&quot;&gt;&lt;del&gt;SERVER-47612&lt;/del&gt;&lt;/a&gt; (on master) made &lt;a href=&quot;https://github.com/mongodb/mongo/blob/e1d7052125a3ca7767a81c4737628ba37077d17b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp#L662-L691&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;storing last vote document&lt;/a&gt; during replSetRequestVotes cmd as resilient against concurrent step down, the solution for this ticket should be more generic to handle any replSetStepUp failures. So, we should make the test to use &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1c196c94bd0f2f0b28a4952d6048776940889a94/src/mongo/shell/replsettest.js#L1473&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;stepUpNoAwaitReplication&lt;/a&gt;  instead of &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1c196c94bd0f2f0b28a4952d6048776940889a94/src/mongo/shell/replsettest.js#L1443&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;stepUp&lt;/a&gt; method.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1380499">SERVER-48778</key>
            <summary>Make reconstruct_prepared_transactions_initial_sync.js robust to election failures.</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="suganthi.mani@mongodb.com">Suganthi Mani</assignee>
                                    <reporter username="suganthi.mani@mongodb.com">Suganthi Mani</reporter>
                        <labels>
                    </labels>
                <created>Mon, 15 Jun 2020 12:25:53 +0000</created>
                <updated>Sun, 29 Oct 2023 22:07:05 +0000</updated>
                            <resolved>Mon, 22 Jun 2020 22:02:03 +0000</resolved>
                                                    <fixVersion>4.4.0-rc11</fixVersion>
                    <fixVersion>4.2.9</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3230345" author="xgen-internal-githook" created="Tue, 30 Jun 2020 15:41:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Suganthi Mani&apos;, &apos;email&apos;: &apos;suganthi.mani@mongodb.com&apos;, &apos;username&apos;: &apos;smani87&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48778&quot; title=&quot;Make reconstruct_prepared_transactions_initial_sync.js robust to election failures.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48778&quot;&gt;&lt;del&gt;SERVER-48778&lt;/del&gt;&lt;/a&gt; Make reconstruct_prepared_transactions_initial_sync.js robust to election failures.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit e94ca2a3bc234c8f340330217d89da6e73d1f026)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a25456e68d46b60d499993f23725a5db83014e0d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a25456e68d46b60d499993f23725a5db83014e0d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3218575" author="xgen-internal-githook" created="Mon, 22 Jun 2020 22:16:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Suganthi Mani&apos;, &apos;email&apos;: &apos;suganthi.mani@mongodb.com&apos;, &apos;username&apos;: &apos;smani87&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48778&quot; title=&quot;Make reconstruct_prepared_transactions_initial_sync.js robust to election failures.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48778&quot;&gt;&lt;del&gt;SERVER-48778&lt;/del&gt;&lt;/a&gt; Make reconstruct_prepared_transactions_initial_sync.js robust to election failures.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit e94ca2a3bc234c8f340330217d89da6e73d1f026)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9563c3590163e7ac8e4510e5e6398e3d74b4fea3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9563c3590163e7ac8e4510e5e6398e3d74b4fea3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3218558" author="xgen-internal-githook" created="Mon, 22 Jun 2020 21:58:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Suganthi Mani&apos;, &apos;email&apos;: &apos;suganthi.mani@mongodb.com&apos;, &apos;username&apos;: &apos;smani87&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48778&quot; title=&quot;Make reconstruct_prepared_transactions_initial_sync.js robust to election failures.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48778&quot;&gt;&lt;del&gt;SERVER-48778&lt;/del&gt;&lt;/a&gt; Make reconstruct_prepared_transactions_initial_sync.js robust to election failures.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e94ca2a3bc234c8f340330217d89da6e73d1f026&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e94ca2a3bc234c8f340330217d89da6e73d1f026&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3216971" author="suganthi.mani" created="Mon, 22 Jun 2020 11:22:29 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=william.schultz&quot; class=&quot;user-hover&quot; rel=&quot;william.schultz&quot;&gt;william.schultz&lt;/a&gt;&lt;br/&gt;
 We have not yet backported &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47612&quot; title=&quot;Elections not robust in remove_newly_added_field_after_finishing_initial_sync.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47612&quot;&gt;&lt;del&gt;SERVER-47612&lt;/del&gt;&lt;/a&gt; to MongoDB 4.4 and that&apos;s the reason we have BF-17895. My inclination for this test fix to be more general rather than relaying on fix on server side (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47612&quot; title=&quot;Elections not robust in remove_newly_added_field_after_finishing_initial_sync.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47612&quot;&gt;&lt;del&gt;SERVER-47612&lt;/del&gt;&lt;/a&gt;). FYI, I also think &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47612&quot; title=&quot;Elections not robust in remove_newly_added_field_after_finishing_initial_sync.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47612&quot;&gt;&lt;del&gt;SERVER-47612&lt;/del&gt;&lt;/a&gt;&#160;fix is brittle and made a &lt;a href=&quot;https://jira.mongodb.org/secure/EditComment!default.jspa?id=1318428&amp;amp;commentId=3207891&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;comment&lt;/a&gt; on that.&lt;/p&gt;</comment>
                            <comment id="3208183" author="william.schultz" created="Mon, 15 Jun 2020 15:35:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=suganthi.mani&quot; class=&quot;user-hover&quot; rel=&quot;suganthi.mani&quot;&gt;suganthi.mani&lt;/a&gt; It seems that &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47612&quot; title=&quot;Elections not robust in remove_newly_added_field_after_finishing_initial_sync.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47612&quot;&gt;&lt;del&gt;SERVER-47612&lt;/del&gt;&lt;/a&gt; addressed the issue of step up failing due to the replSetRequestVotes command being interrupted. Is my understanding correct that BF-17895 should no longer be occurring in practice (due to the &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47612&quot; title=&quot;Elections not robust in remove_newly_added_field_after_finishing_initial_sync.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47612&quot;&gt;&lt;del&gt;SERVER-47612&lt;/del&gt;&lt;/a&gt; fix), but &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48778&quot; title=&quot;Make reconstruct_prepared_transactions_initial_sync.js robust to election failures.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48778&quot;&gt;&lt;del&gt;SERVER-48778&lt;/del&gt;&lt;/a&gt; is filed to address a more general issue e.g. if the initial step up ever fails for any reason. &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="1318428">SERVER-47612</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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    <customfieldvalue key="16775"><![CDATA[v4.2]]></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, 15 Jun 2020 15:35:36 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 32 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>
                            3 years, 32 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>18.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>suganthi.mani@mongodb.com</customfieldvalue>
            <customfieldvalue>william.schultz@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxpwpr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxcz5r:</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="3935">Repl 2020-06-15</customfieldvalue>
    <customfieldvalue id="3999">Repl 2020-06-29</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|hxpiz3:</customfieldvalue>

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