<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:56: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-62781] Include &quot;tid&quot; in oplog entries for commands</title>
                <link>https://jira.mongodb.org/browse/SERVER-62781</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Change the following functions on &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1148e4557cd70a76a7bee61ccd894b8a1b1f03ab/src/mongo/db/op_observer.h#L114&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;OpObserver&lt;/a&gt; to take in DatabaseName rather than a string for dbName:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;onDropDatabase&lt;/li&gt;
	&lt;li&gt;onApplyOps&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Set the &quot;tid&quot; field in the oplog entry for each of the follow commands using the tenantId on the NamespaceString or DatabaseName object passed in (i.e. &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1148e4557cd70a76a7bee61ccd894b8a1b1f03ab/src/mongo/db/op_observer_impl.cpp#L385-L390&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;OpObserverImpl::onStartIndexBuild&lt;/a&gt;).&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;onCreateIndex&lt;/li&gt;
	&lt;li&gt;onStartIndexBuild&lt;/li&gt;
	&lt;li&gt;onCommitIndexBuild&lt;/li&gt;
	&lt;li&gt;onAbortIndexBuild&lt;/li&gt;
	&lt;li&gt;onInternalOpMessage&lt;/li&gt;
	&lt;li&gt;onCollMod&lt;/li&gt;
	&lt;li&gt;onDropCollection&lt;/li&gt;
	&lt;li&gt;onDropIndex&lt;/li&gt;
	&lt;li&gt;onEmptyCapped&lt;/li&gt;
	&lt;li&gt;onImportCollection&lt;/li&gt;
	&lt;li&gt;preRenameCollection&lt;/li&gt;
	&lt;li&gt;postRenameCollection&lt;/li&gt;
	&lt;li&gt;onRenameCollection&lt;/li&gt;
	&lt;li&gt;onDropDatabase&lt;/li&gt;
	&lt;li&gt;onApplyOps&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Be sure &lt;b&gt;not&lt;/b&gt; to include the tenantID in the &quot;ns&quot; field in any oplog entries (i.e. like &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1148e4557cd70a76a7bee61ccd894b8a1b1f03ab/src/mongo/db/op_observer_impl.cpp#L360&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here in onCreateIndex&lt;/a&gt;). There are some commands that log namespaces in fields other than &quot;ns&quot; as well, be sure not to include the tenantID in these either:&lt;br/&gt;
Special cases:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;onDropCollection
	&lt;ul&gt;
		&lt;li&gt;Don&apos;t include the tenantID in the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1148e4557cd70a76a7bee61ccd894b8a1b1f03ab/src/mongo/db/op_observer_impl.cpp#L1060&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;collection name logged in the &quot;o&quot; field&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;preRenameCollection
	&lt;ul&gt;
		&lt;li&gt;Don&apos;t include the tenantID in the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1148e4557cd70a76a7bee61ccd894b8a1b1f03ab/src/mongo/db/op_observer_impl.cpp#L1138-L1139&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;from and to namespaces&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;We can again add tests to OpObserverTest, though we probably don&apos;t need to add a test case for every command.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1967219">SERVER-62781</key>
            <summary>Include &quot;tid&quot; in oplog entries for commands</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="hugh.tong@mongodb.com">Hugh Tong</assignee>
                                    <reporter username="janna.golden@mongodb.com">Janna Golden</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Jan 2022 04:54:09 +0000</created>
                <updated>Sun, 29 Oct 2023 21:43:55 +0000</updated>
                            <resolved>Thu, 14 Jul 2022 20:34:09 +0000</resolved>
                                                    <fixVersion>6.1.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4672111" author="xgen-internal-githook" created="Mon, 11 Jul 2022 22:49:33 +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-62781&quot; title=&quot;Include &amp;quot;tid&amp;quot; in oplog entries for commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62781&quot;&gt;&lt;del&gt;SERVER-62781&lt;/del&gt;&lt;/a&gt; Include tid in oplog entries for commands&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d4f322da12a6a52b1f32c39187f04b961f8cf206&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d4f322da12a6a52b1f32c39187f04b961f8cf206&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4672110" author="xgen-internal-githook" created="Mon, 11 Jul 2022 22:49:30 +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-62781&quot; title=&quot;Include &amp;quot;tid&amp;quot; in oplog entries for commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62781&quot;&gt;&lt;del&gt;SERVER-62781&lt;/del&gt;&lt;/a&gt; Include &quot;tid&quot; in oplog entries for commands&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/28dab72d726477c8ef482566385441eec5db9485&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-enterprise-modules/commit/28dab72d726477c8ef482566385441eec5db9485&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2200716">SERVER-71797</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_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, 27 Jun 2022 21:41:44 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 30 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, 30 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>hugh.tong@mongodb.com</customfieldvalue>
            <customfieldvalue>janna.golden@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0hf8f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i00y41:</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="6268">Server Serverless 2022-06-13</customfieldvalue>
    <customfieldvalue id="6269">Server Serverless 2022-06-27</customfieldvalue>
    <customfieldvalue id="6307">Server Serverless 2022-07-11</customfieldvalue>
    <customfieldvalue id="6334">Server Serverless 2022-07-25</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|i0h1dr:</customfieldvalue>

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