<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:59:49 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-42192] Write a concurrency workload to test that orphaned ranges are always deleted and nothing that shouldn&#8217;t be deleted gets deleted</title>
                <link>https://jira.mongodb.org/browse/SERVER-42192</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;ul&gt;
	&lt;li&gt;Doing a write&lt;/li&gt;
	&lt;li&gt;Migrating a chunk&lt;/li&gt;
	&lt;li&gt;Stepping down a shard&lt;/li&gt;
	&lt;li&gt;Waiting for the RangeDeletionScheduler to empty its queue, and then checking that no orphaned documents exist and that all documents that are supposed to exist do exist&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="854459">SERVER-42192</key>
            <summary>Write a concurrency workload to test that orphaned ranges are always deleted and nothing that shouldn&#8217;t be deleted gets deleted</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="max.hirschhorn@mongodb.com">Max Hirschhorn</assignee>
                                    <reporter username="alex.taskov@mongodb.com">Alexander Taskov</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Jul 2019 22:04:52 +0000</created>
                <updated>Sun, 29 Oct 2023 22:19:07 +0000</updated>
                            <resolved>Wed, 18 Mar 2020 02:36:28 +0000</resolved>
                                                    <fixVersion>4.4.0-rc0</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3028510" author="xgen-internal-githook" created="Mon, 6 Apr 2020 23:29:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Max Hirschhorn&apos;, &apos;email&apos;: &apos;max.hirschhorn@mongodb.com&apos;, &apos;username&apos;: &apos;visemet&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42192&quot; title=&quot;Write a concurrency workload to test that orphaned ranges are always deleted and nothing that shouldn&#8217;t be deleted gets deleted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42192&quot;&gt;&lt;del&gt;SERVER-42192&lt;/del&gt;&lt;/a&gt; Unblacklist refine shard key test from stepdown suites.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 9e10d4f30058fcc7a2a770cac6148c1fdc2a83ac)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3a095b52f9eaa6eb79b42f2d8265794bb9c860d2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3a095b52f9eaa6eb79b42f2d8265794bb9c860d2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3028450" author="xgen-internal-githook" created="Mon, 6 Apr 2020 22:39:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Max Hirschhorn&apos;, &apos;email&apos;: &apos;max.hirschhorn@mongodb.com&apos;, &apos;username&apos;: &apos;visemet&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42192&quot; title=&quot;Write a concurrency workload to test that orphaned ranges are always deleted and nothing that shouldn&#8217;t be deleted gets deleted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42192&quot;&gt;&lt;del&gt;SERVER-42192&lt;/del&gt;&lt;/a&gt; Enable moveChunk FSM workloads to run in stepdown suites.&lt;/p&gt;

&lt;p&gt;Adds automatic retry logic to ChunkHelper.moveChunk() to handle when the&lt;br/&gt;
CSRS or replica set shard primary being killed, terminated, or stepped&lt;br/&gt;
down leads to the moveChunk command being interrupted.&lt;/p&gt;

&lt;p&gt;Exposes replica set connections as part of the &quot;connection cache&quot; so&lt;br/&gt;
that DBClientRS may be used to track the current primary of the CSRS or&lt;br/&gt;
replica set shard.&lt;/p&gt;

&lt;p&gt;Introduces an fsm.forceRunningOutsideTransaction() utility function to&lt;br/&gt;
prevent a state function from running inside a multi-statement&lt;br/&gt;
transaction as part of the concurrency_&lt;b&gt;_multi_stmt_txn&lt;/b&gt;.yml test&lt;br/&gt;
suites.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 5eeb0955011cf96d0218ac0a9d7f54adc9584173)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d3d2f979c9420056609d1bc06bc1756887d524e3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d3d2f979c9420056609d1bc06bc1756887d524e3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2984336" author="xgen-internal-githook" created="Tue, 17 Mar 2020 22:49:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;max.hirschhorn@mongodb.com&apos;, &apos;name&apos;: &apos;Max Hirschhorn&apos;, &apos;username&apos;: &apos;visemet&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42192&quot; title=&quot;Write a concurrency workload to test that orphaned ranges are always deleted and nothing that shouldn&#8217;t be deleted gets deleted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42192&quot;&gt;&lt;del&gt;SERVER-42192&lt;/del&gt;&lt;/a&gt; Unblacklist refine shard key test from stepdown suites.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9e10d4f30058fcc7a2a770cac6148c1fdc2a83ac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9e10d4f30058fcc7a2a770cac6148c1fdc2a83ac&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2969669" author="xgen-internal-githook" created="Thu, 12 Mar 2020 04:48:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Max Hirschhorn&apos;, &apos;username&apos;: &apos;visemet&apos;, &apos;email&apos;: &apos;max.hirschhorn@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42192&quot; title=&quot;Write a concurrency workload to test that orphaned ranges are always deleted and nothing that shouldn&#8217;t be deleted gets deleted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42192&quot;&gt;&lt;del&gt;SERVER-42192&lt;/del&gt;&lt;/a&gt; Enable moveChunk FSM workloads to run in stepdown suites.&lt;/p&gt;

&lt;p&gt;Adds automatic retry logic to ChunkHelper.moveChunk() to handle when the&lt;br/&gt;
CSRS or replica set shard primary being killed, terminated, or stepped&lt;br/&gt;
down leads to the moveChunk command being interrupted.&lt;/p&gt;

&lt;p&gt;Exposes replica set connections as part of the &quot;connection cache&quot; so&lt;br/&gt;
that DBClientRS may be used to track the current primary of the CSRS or&lt;br/&gt;
replica set shard.&lt;/p&gt;

&lt;p&gt;Introduces an fsm.forceRunningOutsideTransaction() utility function to&lt;br/&gt;
prevent a state function from running inside a multi-statement&lt;br/&gt;
transaction as part of the concurrency_&lt;b&gt;_multi_stmt_txn&lt;/b&gt;.yml test&lt;br/&gt;
suites.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5eeb0955011cf96d0218ac0a9d7f54adc9584173&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5eeb0955011cf96d0218ac0a9d7f54adc9584173&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2859622" author="jack.mulrow" created="Mon, 10 Feb 2020 21:23:25 +0000"  >&lt;p&gt;Here&apos;s the test I was referring to: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/d80b24a633/jstests/concurrency/fsm_workloads/sharded_moveChunk_partitioned.js&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;sharded_moveChunk_partitioned.js&lt;/a&gt;. In particular, &lt;a href=&quot;https://github.com/mongodb/mongo/blob/d80b24a633/jstests/concurrency/fsm_workloads/sharded_moveChunk_partitioned.js#L137-L143&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&apos;s&lt;/a&gt; where it verifies mongos sees every document that was in the moved chunk.&lt;/p&gt;</comment>
                            <comment id="2859319" author="esha.maharishi@10gen.com" created="Mon, 10 Feb 2020 20:38:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jack.mulrow&quot; class=&quot;user-hover&quot; rel=&quot;jack.mulrow&quot;&gt;jack.mulrow&lt;/a&gt;, you mentioned there is an existing concurrency test that provides this coverage, do you mind linking it here? Maybe we can just modify it to wait for config.rangeDeletions to be empty before asserting that no real data was deleted.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="741180">SERVER-40713</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1183260">SERVER-46386</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1184653">SERVER-46395</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1235535">SERVER-46669</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1328360">SERVER-47761</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="878604">SERVER-42473</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="18953"><![CDATA[v4.4]]></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, 10 Feb 2020 20:38:25 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 44 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-812</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>
                            3 years, 44 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alex.taskov@mongodb.com</customfieldvalue>
            <customfieldvalue>esha.maharishi@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jack.mulrow@mongodb.com</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hvdx1r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hwd86v:</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="3653">Sharding 2020-03-09</customfieldvalue>
    <customfieldvalue id="3744">Sharding 2020-03-23</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|hvdjb3:</customfieldvalue>

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