<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:59:06 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-41931] Remove forceRollbackViaRefetch flag</title>
                <link>https://jira.mongodb.org/browse/SERVER-41931</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If the &lt;tt&gt;forceRollbackViaRefetch&lt;/tt&gt; parameter is set to true, we will hit an &lt;a href=&quot;https://github.com/mongodb/mongo/blob/77ccfbefcd740051597d1cb4eb36d25776926f72/src/mongo/db/repl/rs_rollback.cpp#L651-L653&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;invariant&lt;/a&gt; when trying to do a rollback. The intended behavior is for us to use the rollbackViaRefetch algorithm no matter what, even if the storage engine supports the recover-to-timestamp functionality.&lt;/p&gt;</description>
                <environment></environment>
        <key id="815302">SERVER-41931</key>
            <summary>Remove forceRollbackViaRefetch flag</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-server-repl">Backlog - Replication Team</assignee>
                                    <reporter username="william.schultz@mongodb.com">William Schultz</reporter>
                        <labels>
                    </labels>
                <created>Wed, 26 Jun 2019 15:20:44 +0000</created>
                <updated>Tue, 6 Dec 2022 02:55:55 +0000</updated>
                                            <version>4.0.10</version>
                    <version>4.2.0-rc2</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="2298783" author="alyson.cabral" created="Wed, 26 Jun 2019 19:17:44 +0000"  >&lt;p&gt;Ok, yeah, let&apos;s get rid of it.&lt;/p&gt;</comment>
                            <comment id="2298734" author="judah.schvimer" created="Wed, 26 Jun 2019 18:51:19 +0000"  >&lt;p&gt;We introduced it because we were afraid that recover to a timestamp could have a bad bug and we wanted an easy way for users to fall back on the old algorithm if they were having a problem with the new rollback algorithm. Apparently they never actually could due to this invariant.&lt;/p&gt;</comment>
                            <comment id="2298684" author="alyson.cabral" created="Wed, 26 Jun 2019 18:28:49 +0000"  >&lt;p&gt;Why did we introduce the flag? Why would users have used it in the past?&lt;/p&gt;</comment>
                            <comment id="2298360" author="judah.schvimer" created="Wed, 26 Jun 2019 15:41:36 +0000"  >&lt;p&gt;I think on 4.2, we do not want to try to support this parameter. We have no testing of how it will interact with prepare (it will likely invariant). On 4.0 it was supposed to work and I don&apos;t see why it shouldn&apos;t work minus the invariant we&apos;re hitting.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=alyson.cabral&quot; class=&quot;user-hover&quot; rel=&quot;alyson.cabral&quot;&gt;alyson.cabral&lt;/a&gt;, do we care about this flag, or should we just remove it since we barely test it, and clearly no one is using it?&lt;/p&gt;</comment>
                            <comment id="2298345" author="william.schultz" created="Wed, 26 Jun 2019 15:33:00 +0000"  >&lt;p&gt;This is a bug on both 4.0 and 4.2. At first glance it appears we have at least &lt;a href=&quot;https://github.com/mongodb/mongo/blob/67e08418c8e9722768ead723bafda7e229660291/jstests/replsets/rollback_via_refetch_commit_transaction.js#L25&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;one test&lt;/a&gt; on 4.2 that utilizes the forceRollbackViaRefetch parameter, but in that test the rollback actually fails &lt;a href=&quot;https://github.com/mongodb/mongo/blob/77ccfbefcd740051597d1cb4eb36d25776926f72/src/mongo/db/repl/rs_rollback.cpp#L949-L952&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&#160;&lt;/a&gt;before we ever hit the problematic&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/77ccfbefcd740051597d1cb4eb36d25776926f72/src/mongo/db/repl/rs_rollback.cpp#L653&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;invariant&lt;/a&gt;. On 4.0, a grep for &quot;forceRollbackViaRefetch&quot; turns up matches only in &lt;tt&gt;bgsync.cpp&lt;/tt&gt;, &lt;tt&gt;bgsync.h&lt;/tt&gt;, and &lt;tt&gt;rs_rollback.h&lt;/tt&gt;, so we don&apos;t have any test coverage of the parameter there.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="480297">SERVER-32588</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="754855">SERVER-40954</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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25128"><![CDATA[Replication]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 26 Jun 2019 15:41:36 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 33 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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 33 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alyson.cabral@mongodb.com</customfieldvalue>
            <customfieldvalue>backlog-server-repl</customfieldvalue>
            <customfieldvalue>judah.schvimer@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|hv7a73:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|huwdlj:</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_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|hv6wgf:</customfieldvalue>

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