<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:55:01 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-62395] Use tid field to construct namespace when applying non-txn commands during oplog application</title>
                <link>https://jira.mongodb.org/browse/SERVER-62395</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Commands are applied in &lt;a href=&quot;https://github.com/mongodb/mongo/blob/bba68085962f35a9ffce3f6c33edd9bdd54498a3/src/mongo/db/repl/oplog.cpp#L1781&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;applyCommand_inlock&lt;/a&gt; (called &lt;a href=&quot;https://github.com/mongodb/mongo/blob/bba68085962f35a9ffce3f6c33edd9bdd54498a3/src/mongo/db/repl/oplog_applier_utils.cpp#L271&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; in OplogApplierUtils::applyOplogEntryOrGroupedInsertsCommon).&lt;/p&gt;

&lt;p&gt;Each &lt;a href=&quot;https://github.com/mongodb/mongo/blob/bba68085962f35a9ffce3f6c33edd9bdd54498a3/src/mongo/db/repl/oplog.cpp#L793&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;command defines its own apply function&lt;/a&gt;, and this is where the NamespaceString is constructed today (generally command oplog entries use &amp;lt;dbName&amp;gt;$cmd as the &quot;ns&quot; field, and put the collection name in the &quot;o&quot; field, see the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/bba68085962f35a9ffce3f6c33edd9bdd54498a3/src/mongo/db/repl/oplog.cpp#L798&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&quot;create&quot; command as an example&lt;/a&gt;). In general, we should use the &quot;ns&quot; (to grab the db name), &quot;o&quot; (to grab the collection name), and &quot;tid&quot; fields in the oplog entry in order to construct the NamespaceString or DatabaseName (for commands applied on a db). Some commands&apos; apply functions call into another function, if any of these functions take in a std::string dbName today, let&apos;s change the signature of those functions to take in DatabaseName (i.e. the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/bba68085962f35a9ffce3f6c33edd9bdd54498a3/src/mongo/db/repl/oplog.cpp#L812&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;create command&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;This ticket is to change specifically all of the commands not related to transactions/applyOps listed in &lt;a href=&quot;https://github.com/mongodb/mongo/blob/bba68085962f35a9ffce3f6c33edd9bdd54498a3/src/mongo/db/repl/oplog.cpp#L793&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;kOpsMap&lt;/a&gt; (so skip applyOps, commitTransaction, and abortTransaction). Feel free to break this ticket into multiple tickets if you prefer to make changes to individual commands (or smaller chunks at a time).&lt;br/&gt;
A few spacial cases:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;startIndexBuild, commitIndexBuild, abortIndexBuild - these should use the UUID in the IndexBuildOplogEntry to grab the Collection object, so we shouldn&apos;t need to worry about changing the IndexBuildOplogEntry type&lt;/li&gt;
	&lt;li&gt;renameCollection - we should use the &#8220;tid&#8221; field along with the &#8220;to&#8221; and &#8220;from&#8221; fields rather than grabbing the &quot;ns&quot; and &quot;o&quot; fields (&lt;a href=&quot;https://github.com/mongodb/mongo/blob/8e681e80447e5859f79296e10911ffec39f31efa/src/mongo/db/catalog/rename_collection.cpp#L897-L907&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;as it does today&lt;/a&gt;).&lt;/li&gt;
	&lt;li&gt;importCollection - we&apos;ll have to change &lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/blob/222c07c0e0c32842e650a757c2131923f4b250d9/src/live_import/import_collection.cpp#L83&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;applyImportCollection in the enterprise repo&lt;/a&gt; as well.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Add tests to OplogApplierImplTest (in &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/db/repl/oplog_applier_impl_test.cpp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;oplog_applier_impl_test.cpp&lt;/a&gt;). &lt;/p&gt;</description>
                <environment></environment>
        <key id="1959550">SERVER-62395</key>
            <summary>Use tid field to construct namespace when applying non-txn commands during oplog application</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="13201">Fixed</resolution>
                                        <assignee username="janna.golden@mongodb.com">Janna Golden</assignee>
                                    <reporter username="janna.golden@mongodb.com">Janna Golden</reporter>
                        <labels>
                            <label>auto-reverted</label>
                    </labels>
                <created>Thu, 6 Jan 2022 16:51:16 +0000</created>
                <updated>Sun, 29 Oct 2023 21:44:27 +0000</updated>
                            <resolved>Wed, 19 Oct 2022 17:18:11 +0000</resolved>
                                                    <fixVersion>6.2.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="4908554" author="xgen-internal-githook" created="Mon, 17 Oct 2022 22:42:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jannaerin&apos;, &apos;email&apos;: &apos;golden.janna@gmail.com&apos;, &apos;username&apos;: &apos;jannaerin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62395&quot; title=&quot;Use tid field to construct namespace when applying non-txn commands during oplog application&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62395&quot;&gt;&lt;del&gt;SERVER-62395&lt;/del&gt;&lt;/a&gt; Use tid field to create namespace on non-txn commands during oplog application&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7b81482e9ca20b812d5642bf469af13cc8e18203&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7b81482e9ca20b812d5642bf469af13cc8e18203&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4905020" author="xgen-buildbaron-user" created="Sat, 15 Oct 2022 03:15:10 +0000"  >&lt;p&gt;Ticket re-opened due to revert. &lt;a href=&quot;https://evergreen.mongodb.com/task/mongodb_mongo_master_rhel80_debug_aubsan_lite_required_run_unittests_3e16f4386ed3772d9aa01c16057f43d4a90eb133_22_10_14_20_15_03&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;run_unittests&lt;/a&gt; began a consistent failure of build/install/bin/db_repl_test&lt;/p&gt;</comment>
                            <comment id="4905018" author="xgen-internal-githook" created="Sat, 15 Oct 2022 03:10:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;auto-revert-processor&apos;, &apos;email&apos;: &apos;dev-prod-dag@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62395&quot; title=&quot;Use tid field to construct namespace when applying non-txn commands during oplog application&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62395&quot;&gt;&lt;del&gt;SERVER-62395&lt;/del&gt;&lt;/a&gt; Use tid field to create namespace on non-txn commands during oplog application&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 3e16f4386ed3772d9aa01c16057f43d4a90eb133.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e63e4961f27a9a6a4b9ae5b84c0d7e67e2f9d4db&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e63e4961f27a9a6a4b9ae5b84c0d7e67e2f9d4db&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4904646" author="xgen-internal-githook" created="Fri, 14 Oct 2022 20:15:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Hugh Tong&apos;, &apos;email&apos;: &apos;hugh.tong@mongodb.com&apos;, &apos;username&apos;: &apos;cortrain&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62395&quot; title=&quot;Use tid field to construct namespace when applying non-txn commands during oplog application&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62395&quot;&gt;&lt;del&gt;SERVER-62395&lt;/del&gt;&lt;/a&gt; Use tid field to create namespace on non-txn commands during oplog application&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3e16f4386ed3772d9aa01c16057f43d4a90eb133&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3e16f4386ed3772d9aa01c16057f43d4a90eb133&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2137626">SERVER-69726</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10020">
                    <name>Gantt Dependency</name>
                                            <outwardlinks description="has to be done before">
                                        <issuelink>
            <issuekey id="1791196">SERVER-57867</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2121419">SERVER-69115</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.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>Thu, 6 Oct 2022 16:23:13 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 16 weeks, 2 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-2346</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, 16 weeks, 2 days 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>janna.golden@mongodb.com</customfieldvalue>
            <customfieldvalue>Xgen-BuildBaron-User</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0g43b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0f13e:</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="6408">Server Serverless 2022-08-22</customfieldvalue>
    <customfieldvalue id="6409">Server Serverless 2022-09-05</customfieldvalue>
    <customfieldvalue id="6467">Server Serverless 2022-09-19</customfieldvalue>
    <customfieldvalue id="6468">Server Serverless 2022-10-03</customfieldvalue>
    <customfieldvalue id="6597">Server Serverless 2022-10-17</customfieldvalue>
    <customfieldvalue id="6598">Server Serverless 2022-10-31</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|i0fq8n:</customfieldvalue>

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