<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:58:51 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-63855] Make dbCheck work with resharding</title>
                <link>https://jira.mongodb.org/browse/SERVER-63855</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We need to resolve this &lt;a href=&quot;https://github.com/mongodb/mongo/blob/5ecff9d8651690595e0729f90fa490d62388adab/buildscripts/resmokeconfig/suites/concurrency_sharded_replication.yml#L107&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;TODO&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Example of running &lt;a href=&quot;https://github.com/mongodb/mongo/blob/5ecff9d8651690595e0729f90fa490d62388adab/jstests/concurrency/fsm_workloads/collection_uuid_sharded.js&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;collection_uuid_sharded.js&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://spruce.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_80_64_bit_dynamic_all_feature_flags_required_burn_in:concurrency_sharded_replication_1_enterprise_rhel_80_64_bit_dynamic_all_feature_flags_required_patch_452458ea90e789bca64687305d175c275779ad19_620ffa7061837d286f8a0c78_22_02_18_19_59_31/tests?execution=0&amp;amp;sortBy=STATUS&amp;amp;sortDir=ASC&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;EV with dbCheck&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://spruce.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_80_64_bit_dynamic_all_feature_flags_required_burn_in:concurrency_sharded_replication_1_enterprise_rhel_80_64_bit_dynamic_all_feature_flags_required_patch_452458ea90e789bca64687305d175c275779ad19_621026ea9ccd4e7e4675a783_22_02_18_23_09_02/tests?execution=0&amp;amp;sortBy=STATUS&amp;amp;sortDir=ASC&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;EV without dbCheck&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;For local repro please run this test:&#160;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/361497/361497_repro.js&quot; title=&quot;repro.js attached to SERVER-63855&quot;&gt;repro.js&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;In addition to making dbCheck work with resharding, we should re-enable dbCheck as background workload in FSM tests.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1986760">SERVER-63855</key>
            <summary>Make dbCheck work with resharding</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-server-execution">Backlog - Storage Execution Team</assignee>
                                    <reporter username="m.maher@mongodb.com">Moustafa Maher</reporter>
                        <labels>
                            <label>pm-855-quick-win</label>
                    </labels>
                <created>Fri, 18 Feb 2022 23:20:22 +0000</created>
                <updated>Wed, 24 May 2023 17:52:26 +0000</updated>
                                                                                                <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="4513025" author="max.hirschhorn@10gen.com" created="Thu, 28 Apr 2022 14:10:19 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=m.maher%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;m.maher@mongodb.com&quot;&gt;m.maher@mongodb.com&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=josef.ahmad%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;josef.ahmad@mongodb.com&quot;&gt;josef.ahmad@mongodb.com&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=louis.williams%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;louis.williams@mongodb.com&quot;&gt;louis.williams@mongodb.com&lt;/a&gt;, I&apos;m a little confused by the state the RunDBCheckInBackground hook was left in for sharded clusters. &lt;a href=&quot;https://github.com/mongodb/mongo/blob/e92ebc1ff57ada77492ca6baa4c3d731cc52eadb/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_with_balancer.yml#L170&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;The RunDBCheckInBackground hook was left enabled in the concurrency&amp;#95;sharded&amp;#95;multi&amp;#95;stmt&amp;#95;txn&amp;#95;with&amp;#95;balancer.yml test suite&lt;/a&gt; because it &lt;em&gt;happened to&lt;/em&gt; pass. I suspect this is because the resharding operations in the reshard&amp;#95;collection&amp;#95;crud&amp;#95;ops.js FSM workload are too quick to complete for them to overlap with a dbCheck command being run by the background thread and the collection&amp;#95;uuid&amp;#95;sharded.js cannot run in the the concurrency&amp;#95;sharded&amp;#95;multi&amp;#95;stmt&amp;#95;txn&amp;#95;with&amp;#95;balancer.yml test suite.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;I think the fix for supporting dbCheck on the source collection while resharding is running is straightforward. &lt;tt&gt;OplogEntry::CommandType::kDbCheck&lt;/tt&gt; should be added to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/e92ebc1ff57ada77492ca6baa4c3d731cc52eadb/src/mongo/db/s/resharding/resharding_oplog_batch_preparer.cpp#L97-L101&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;the list of allowable commands during a resharding operation in ReshardingOplogBatchPreparer::throwIfUnsupportedCommandOp()&lt;/a&gt;. There is no work for the recipient shards to do upon seeing a dbCheck oplog entry because dbCheck doesn&apos;t modify the user collection data.&lt;/li&gt;
	&lt;li&gt;Attempting to add a new FSM workload which runs a longer&amp;#45;running resharding operation in the concurrency&amp;#95;sharded&amp;#95;multi&amp;#95;stmt&amp;#95;txn&amp;#95;with&amp;#95;balancer.yml test suite now fails (e.g. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-66011&quot; title=&quot;Enable internal_transactions_resharding.js in the concurrency_sharded_multi_stmt_txn_with_balancer suite&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-66011&quot;&gt;&lt;del&gt;SERVER-66011&lt;/del&gt;&lt;/a&gt;). Needing to disable an FSM workload for testing a released feature due to dbCheck seems like an inversion of importance.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I&apos;d either like to (a) have dbCheck be supported during the resharding operation or (b) disable the RunDBCheckInBackground hook in the concurrency&amp;#95;sharded&amp;#95;multi&amp;#95;stmt&amp;#95;txn&amp;#95;with&amp;#95;balancer.yml test suite as well.&lt;/p&gt;

&lt;p&gt;Side note: The reason for the Evergreen task timing out is due to a separate bug where the resharding coordinator doesn&apos;t realize one of the recipient participant shards had errored. I filed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-66046&quot; title=&quot;Resharding coordinator won&amp;#39;t automatically abort the resharding operation when a recipient shard errors during its applying phase&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-66046&quot;&gt;&lt;del&gt;SERVER-66046&lt;/del&gt;&lt;/a&gt; for addressing that issue. It won&apos;t affect &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63855&quot; title=&quot;Make dbCheck work with resharding&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63855&quot;&gt;SERVER-63855&lt;/a&gt; because the recipient shard is only erroring during its applying phase because it sees a dbCheck oplog entry.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2035445">SERVER-66046</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1962979">SERVER-62578</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2034531">SERVER-66011</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="420465">SERVER-30846</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="361497" name="repro.js" size="1204" author="m.maher@mongodb.com" created="Sat, 19 Feb 2022 01:47:08 +0000"/>
                    </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_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25136"><![CDATA[Storage Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 28 Apr 2022 14:10:19 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 40 weeks, 6 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-855</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>xuerui.fa@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 40 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-execution</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
            <customfieldvalue>m.maher@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0kr9z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i03tlz:</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_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|i0kdfb:</customfieldvalue>

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