<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:41:22 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-79590] [Storage Execution EMEA] Audit v7.0 feature flag</title>
                <link>https://jira.mongodb.org/browse/SERVER-79590</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Intial sync can &lt;a href=&quot;https://github.com/10gen/mongo/blob/d13faac6def5a42bad3e1ac6d91d9d5ce805f0d2/src/mongo/db/repl/initial_syncer.cpp#L696&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;temporarily reset&lt;/a&gt; the fcv value to uninitialized and sets the new value afterwards. This can cause call sites trying to inspect the fcv value to hit &lt;a href=&quot;https://github.com/10gen/mongo/blob/07efe95e998e3f8305c4ec215761e0ec7b9e8012/src/mongo/db/server_options.h#L147&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this invariant&lt;/a&gt;. We need to audit feature flag usage and determine which should do one of the following:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;It can never be called when initial sync is running. So do nothing. Note that this can be tricky to prove as we once thought the catalog cache loader can never be run while initial sync is happening but it can.&lt;/li&gt;
	&lt;li&gt;It is safe to ignore fcv version so use isEnabledAndIgnoreFCVUnsafe instead&lt;/li&gt;
	&lt;li&gt;It is safe to turn off the feature anytime (even if feature flag is actually on) so use isEnabledUseDefaultFCVWhenUninitialized instead.&lt;/li&gt;
	&lt;li&gt;Special logic is needed if fcv is not initialized&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;gfeatureFlagCappedCollectionsRelaxedSize&lt;br/&gt;
gFeatureFlagGlobalIndexes&lt;/p&gt;</description>
                <environment></environment>
        <key id="2406547">SERVER-79590</key>
            <summary>[Storage Execution EMEA] Audit v7.0 feature 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="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="haley.connelly@mongodb.com">Haley Connelly</assignee>
                                    <reporter username="connie.chen@mongodb.com">Connie Chen</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Aug 2023 20:06:18 +0000</created>
                <updated>Tue, 31 Oct 2023 17:18:16 +0000</updated>
                            <resolved>Wed, 11 Oct 2023 16:47:41 +0000</resolved>
                                                    <fixVersion>7.0.3</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5771023" author="haley.connelly" created="Wed, 11 Oct 2023 16:46:29 +0000"  >&lt;p&gt;gfeatureFlagCappedCollectionsRelaxedSize is checked in 2 places in 7.0&lt;/p&gt;

&lt;p&gt;(1) &lt;a href=&quot;https://github.com/10gen/mongo/blob/371a113c66850e53312a035fd1b22198817b3f18/src/mongo/db/catalog/collection_options.cpp#L55&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;adjustCappedSize()&lt;/a&gt; - OK as is, same behavior as using &lt;tt&gt;isEnabledUseDefaultFCVWhenUninitialized()&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Before checking if the feature flag is enabled, it checks if FCV is initialized, thus it shouldn&apos;t hit the invariant. If the node is undergoing initial sync and FCV isn&apos;t set, a capped collection&apos;s maxSize &lt;em&gt;wont&lt;/em&gt; be rounded to 256. This is fine, since the capped collection will be cloned from an existing node in the replica set - and thus abide by the sizing rules for the replica sets FCV.&#160;&lt;/p&gt;

&lt;p&gt;(2) &lt;a href=&quot;https://github.com/10gen/mongo/blob/371a113c66850e53312a035fd1b22198817b3f18/src/mongo/db/commands/set_feature_compatibility_version_command.cpp#L1188&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;_userCollectionsUassertsForDowngrade()&lt;/a&gt; - OK as is.&lt;/p&gt;

&lt;p&gt;The feature flag is checked with &lt;tt&gt;isDisabledOnTargetFCVButEnabledOnOriginalFCV(originalVersion, requestedVersion&lt;/tt&gt;). The &apos;originalVersion&apos; passed in is generated at the start of _&lt;a href=&quot;https://github.com/10gen/mongo/blob/371a113c66850e53312a035fd1b22198817b3f18/src/mongo/db/commands/set_feature_compatibility_version_command.cpp#L1059&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;userCollectionsUassertsForDowngrade&lt;/a&gt;. The entire function would fail the &lt;a href=&quot;https://github.com/10gen/mongo/blob/371a113c66850e53312a035fd1b22198817b3f18/src/mongo/db/commands/set_feature_compatibility_version_command.cpp#L1059&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;isUpgradingOrDowngrading()&lt;/a&gt; invariant if the FCV version weren&apos;t initialized. Thus, the feature flag check is unreachable if the fcv is uninitialized when storing the &apos;originalVersion&apos;.&#160;&lt;/p&gt;</comment>
                            <comment id="5748810" author="haley.connelly" created="Tue, 3 Oct 2023 14:59:21 +0000"  >&lt;p&gt;gFeatureFlagGlobalIndexes isn&apos;t enabled and won&apos;t be until future projects (see this comment). For now, there isn&apos;t a direct risk of it causing an error in production. In later versions, it can be revisited when the feature flag is enabled.&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2400570">SERVER-79330</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10620">
                    <name>Issue split</name>
                                                                <inwardlinks description="split from">
                                        <issuelink>
            <issuekey id="2400596">SERVER-79333</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2067639">SERVER-67246</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>2.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_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26008"><![CDATA[Storage Execution EMEA]]></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>Tue, 3 Oct 2023 14:59:21 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        17 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_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>maria.prinus@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            17 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>connie.chen@mongodb.com</customfieldvalue>
            <customfieldvalue>haley.connelly@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i2kfov:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i20jjo:</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="7539">Execution EMEA Team 2023-09-04</customfieldvalue>
    <customfieldvalue id="7684">Execution EMEA Team 2023-09-18</customfieldvalue>
    <customfieldvalue id="7685">Execution EMEA Team 2023-10-02</customfieldvalue>
    <customfieldvalue id="7722">Execution EMEA Team 2023-10-16</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|i2k1u7:</customfieldvalue>

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