<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:01:44 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-65047] Enable tassert in ReshardingMetricsNew, but not while upgrading from older version</title>
                <link>https://jira.mongodb.org/browse/SERVER-65047</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;ReshardingMetricsNew &lt;a href=&quot;https://github.com/10gen/mongo/blob/07ba0f5fb79b855f9abc260ac35126c30b362e29/src/mongo/db/s/resharding/resharding_metrics_new.cpp#L66&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;tasserts that the start time was written down&lt;/a&gt; for the resharding operation, but writing down the start time is new behavior. It&apos;s possible that the resharding operation began in an older version where the start time was not written down and is currently in the process of upgrading to this newer version. This tassert should therefore not trigger while &lt;a href=&quot;https://github.com/10gen/mongo/blob/6ef5da0c8cdce8a4398ad00ede82ffa674f4e62c/src/mongo/db/server_options.h#L193&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;upgrading or downgrading&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;However, because resharding operations are &lt;a href=&quot;https://github.com/10gen/mongo/blob/6ef5da0c8cdce8a4398ad00ede82ffa674f4e62c/src/mongo/db/commands/set_feature_compatibility_version_command.cpp#L494&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;aborted&lt;/a&gt; after sending the &lt;a href=&quot;https://github.com/10gen/mongo/blob/6ef5da0c8cdce8a4398ad00ede82ffa674f4e62c/src/mongo/db/commands/set_feature_compatibility_version_command.cpp#L479&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;request to finalize the FCV version on the shards&lt;/a&gt; when upgrading, it is possible that a resharding recipient will update its FCV to its final value (i.e. isUpgradingOrDowngrading() is false) prior to aborting. It is therefore not possible to differentiate a resharding operation that has upgraded to the latest version since the beginning from one that has been the latest version throughout. For this reason, the resharding operations should be aborted first.&lt;/p&gt;

&lt;p&gt;Furthermore, the resharding command currently &lt;a href=&quot;https://github.com/10gen/mongo/blob/6d429374fbe31b67ec0303151ebc5ec01159eee5/src/mongo/db/s/config/configsvr_reshard_collection_cmd.cpp#L154&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;ensures that the FCV cannot change&lt;/a&gt; while setting up the coordinator. However, it does not check to make sure that the current FCV is not currently in an upgrading or downgrading state. This allows for the possibility for a new resharding operation to begin during an FCV upgrade, after resharding operations are aborted, but before the shards complete the FCV upgrade (after making the above change to abort first), meaning that the operation could run across FCVs without being aborted. As such, the reshard command should fail if the current FCV is either upgrading or downgrading.&lt;/p&gt;

&lt;p&gt;In summary, the changes above should guarantee that 1. resharding operations cannot begin during an FCV upgrade or downgrade and 2. during an FCV update, resharding operations will always be finished aborting before reaching the target FCV.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2011543">SERVER-65047</key>
            <summary>Enable tassert in ReshardingMetricsNew, but not while upgrading from older version</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="brett.nawrocki@mongodb.com">Brett Nawrocki</assignee>
                                    <reporter username="brett.nawrocki@mongodb.com">Brett Nawrocki</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Mar 2022 18:18:57 +0000</created>
                <updated>Sun, 29 Oct 2023 21:40:21 +0000</updated>
                            <resolved>Mon, 4 Apr 2022 15:24:44 +0000</resolved>
                                                    <fixVersion>6.0.0-rc0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4451785" author="xgen-internal-githook" created="Fri, 1 Apr 2022 22:02:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Brett Nawrocki&apos;, &apos;email&apos;: &apos;brett.nawrocki@mongodb.com&apos;, &apos;username&apos;: &apos;brettnawrocki&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-65047&quot; title=&quot;Enable tassert in ReshardingMetricsNew, but not while upgrading from older version&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-65047&quot;&gt;&lt;del&gt;SERVER-65047&lt;/del&gt;&lt;/a&gt; Strengthen guarantees for resharding aborting across FCVs&lt;/p&gt;

&lt;p&gt;Previously, resharding operations were aborted after sending the request&lt;br/&gt;
to finalize the FCV version on the shards when upgrading, making it is&lt;br/&gt;
possible that a resharding recipient will update its FCV to its target&lt;br/&gt;
value prior to aborting. It was therefore not possible to differentiate&lt;br/&gt;
a resharding operation that has upgraded to the latest version since&lt;br/&gt;
starting from one that has been the latest version throughout. For this&lt;br/&gt;
reason, the resharding operations are now aborted first.&lt;/p&gt;

&lt;p&gt;Furthermore, the resharding command currently ensures that the FCV&lt;br/&gt;
cannot change while setting up the coordinator. However, it did not&lt;br/&gt;
check to make sure that the current FCV is not currently in an upgrading&lt;br/&gt;
or downgrading state. After making the above change, this would allow&lt;br/&gt;
for the possibility for a new resharding operation to begin during an&lt;br/&gt;
FCV upgrade, after resharding operations are aborted, but before the&lt;br/&gt;
shards complete the FCV upgrade. This would have the consequence of the&lt;br/&gt;
operation running across FCVs without being aborted. As such, the&lt;br/&gt;
reshard command now fails if the current FCV is either upgrading or&lt;br/&gt;
downgrading.&lt;/p&gt;

&lt;p&gt;These changes in combination should guarantee that during a version&lt;br/&gt;
change, a new resharding operation cannot begin and a previously running&lt;br/&gt;
resharding operation always aborts completely before reaching the target&lt;br/&gt;
version. Note that it is still possible for a resharding operation to&lt;br/&gt;
reach an upgrading or downgrading FCV before being aborted.&lt;/p&gt;

&lt;p&gt;These changes were made in the interest of being able to assert that&lt;br/&gt;
newly added optional fields that should always be set were indeed set.&lt;br/&gt;
As such, this change also enables the assertion disabled by&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-65039&quot; title=&quot;Disable tassert in ReshardingMetricsNew&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-65039&quot;&gt;&lt;del&gt;SERVER-65039&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0425d814900d230115ea0e1b91fadf8ee2352919&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0425d814900d230115ea0e1b91fadf8ee2352919&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2011396">SERVER-65039</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>1.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_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, 1 Apr 2022 14:48:52 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 44 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_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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2664</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>
                            1 year, 44 weeks, 5 days ago
                        </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>brett.nawrocki@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0oylr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i07ylw:</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5732">Sharding NYC 2022-04-04</customfieldvalue>
    <customfieldvalue id="5733">Sharding NYC 2022-04-18</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|i0okr3:</customfieldvalue>

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