<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:06:29 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-66813] Fix issue with batch deletion when inserting records to the change collection</title>
                <link>https://jira.mongodb.org/browse/SERVER-66813</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When working on the ticket: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-66123&quot; title=&quot;Implement logic to write to the change collection in replica-set primary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-66123&quot;&gt;&lt;del&gt;SERVER-66123&lt;/del&gt;&lt;/a&gt; which is about inserting record to the change collection in the primary, a lot of transaction-related test cases, related to the efficient multi-delete project started failing. The Evergreen link is &lt;a href=&quot;https://spruce.mongodb.com/version/628e9daa32f4176893200ab6/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC&amp;amp;statuses=failed-umbrella,failed,task-timed-out,test-timed-out,known-issue&amp;amp;variant=%5Eenterprise-rhel-80-64-bit-dynamic-all-feature-flags-required%24&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here &lt;/a&gt;and the tassert is &lt;b&gt;Not enough \&quot;applyOps\&quot; entries&quot;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The problem is with calling &lt;font color=&quot;#4c9aff&quot;&gt;onBatchedWriteCommit&lt;/font&gt;, which calls &lt;font color=&quot;#4c9aff&quot;&gt;logOplogEntries&lt;/font&gt; which further call &lt;font color=&quot;#4c9aff&quot;&gt;logApplyOps&lt;/font&gt; and then &lt;font color=&quot;#4c9aff&quot;&gt;ChangeCollection::writeToChangeCollection&lt;/font&gt;&#160;and ultimately to &lt;font color=&quot;#4c9aff&quot;&gt;OpObserverImpl::onInserts&lt;/font&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;font color=&quot;#4c9aff&quot;&gt;OpObserverImpl::onInserts&lt;/font&gt; is called within the context of the BatchWrites and will go to and again try to add operation to the addBatchOperation &lt;a href=&quot;https://github.com/mongodb/mongo/blob/c43aec3525839ffea3c53674bf84fbf6692ee953/src/mongo/db/op_observer_impl.cpp#L555&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;. This adding operation to the ongoing batch is what may be causing the issue (not fully articulated though).&lt;/p&gt;

&lt;p&gt;This whole workflow is called while we are inside the while loop that caused the tassert failure, &lt;a href=&quot;https://github.com/mongodb/mongo/blob/c43aec3525839ffea3c53674bf84fbf6692ee953/src/mongo/db/op_observer_impl.cpp#L1861&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The current change collection code adds a hack to mitigate this issue. The ticket is about coming up with the right set of actions to fix this issue.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2056189">SERVER-66813</key>
            <summary>Fix issue with batch deletion when inserting records to the change collection</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="3">Duplicate</resolution>
                                        <assignee username="rishab.joshi@mongodb.com">Rishab Joshi</assignee>
                                    <reporter username="rishab.joshi@mongodb.com">Rishab Joshi</reporter>
                        <labels>
                            <label>pm-2334-m1</label>
                    </labels>
                <created>Thu, 26 May 2022 18:50:35 +0000</created>
                <updated>Sat, 9 Jul 2022 15:25:00 +0000</updated>
                            <resolved>Fri, 8 Jul 2022 09:14:55 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="4665584" author="JIRAUSER1257558" created="Fri, 8 Jul 2022 09:14:55 +0000"  >&lt;p&gt;This issue will be fixed as part of the ticket&#160; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-67473&quot; title=&quot;Support insert operations for implicitly replicated namespaces&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-67473&quot;&gt;&lt;del&gt;SERVER-67473&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The PR has been discarded as there was no consensus on having a custom insert method for the change collection.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="4659617" author="josef.ahmad" created="Wed, 6 Jul 2022 09:08:11 +0000"  >&lt;p&gt;Marking this ticket as related to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-67473&quot; title=&quot;Support insert operations for implicitly replicated namespaces&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-67473&quot;&gt;&lt;del&gt;SERVER-67473&lt;/del&gt;&lt;/a&gt; &quot;Support insert operations for implicitly replicated namespaces&quot;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="2075193">SERVER-67473</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>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 5 Jul 2022 11:24:40 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 30 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2334</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>bernard.gorman@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, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>josef.ahmad@mongodb.com</customfieldvalue>
            <customfieldvalue>rishab.joshi@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0wh3j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0fd3k:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5900">QE 2022-07-11</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|i0w38v:</customfieldvalue>

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