<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:48:53 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-60073] Manual chunks cleanup intervention race with other create collection attempts  </title>
                <link>https://jira.mongodb.org/browse/SERVER-60073</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In jstests/concurrency/fsm_workloads/random_DDL_setFCV_operations.js it can happen that we encounter a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/5c1ae933c4c598c2529d5fb4f412e84ddc98f115/src/mongo/db/s/shard_collection_legacy.cpp#L149-L156&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;ManualIntervetionRequired error when trying to shard a collection&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This means that a previous shard collection attempt in FCV 4.4 managed to create some chunks for a collection but it crashed or stepped down before to actually write the relative entry in config.collection. Leaving orphaned chunks in config.chunks.&lt;/p&gt;

&lt;p&gt;When this occurs all the threads that received the ManualInterventionRequired error will attempt to directly remove the orphaned chunk documents from config.chunks and they will  retry to shard the collection.&lt;/p&gt;

&lt;p&gt;Since there is no synchronization between these threads, it can totally happen that:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;T1 receives ManualInterventionRequired for coll1&lt;/li&gt;
	&lt;li&gt;T2 receives ManualInterventionRequired for coll1&lt;/li&gt;
	&lt;li&gt;T1 removes orphaned chunks for coll1&lt;/li&gt;
	&lt;li&gt;T1 re-issue the shard collection and correctly create coll1 with its own chunks&lt;/li&gt;
	&lt;li&gt;T2  removes the chunks for coll1&lt;/li&gt;
	&lt;li&gt;T2 re-issue the shard collection and find the collection is already sharded so it does nothing&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So T2 will leave  coll1 with a collection entry in config.collection but no chunks accounted in config.chunks.&lt;/p&gt;

&lt;p&gt;In this situation every nodes that will try to refresh its catalog cache for coll1 will encounter a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/9ebd09c6c8c504fc68b0cdad67a06aec52d71576/src/mongo/s/catalog/sharding_catalog_client_impl.cpp#L720-L722&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;ConflictingOperationInProgress error&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1878331">SERVER-60073</key>
            <summary>Manual chunks cleanup intervention race with other create collection attempts  </summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="pierlauro.sciarelli@mongodb.com">Pierlauro Sciarelli</assignee>
                                    <reporter username="tommaso.tocci@mongodb.com">Tommaso Tocci</reporter>
                        <labels>
                            <label>sharding-wfbf-day</label>
                            <label>testing</label>
                    </labels>
                <created>Mon, 20 Sep 2021 13:24:44 +0000</created>
                <updated>Fri, 10 Jun 2022 13:26:10 +0000</updated>
                            <resolved>Fri, 10 Jun 2022 13:26:10 +0000</resolved>
                                    <version>5.0.3</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="4606430" author="pierlauro.sciarelli" created="Fri, 10 Jun 2022 09:01:29 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tommaso.tocci%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;tommaso.tocci@mongodb.com&quot;&gt;tommaso.tocci@mongodb.com&lt;/a&gt; I would propose to close this as won&apos;t fix (or to keep it on the backlog) as the failure only happened once in the last year and there is no easy way to work around it without rewriting the test to be sure no threads act concurrently on the same collection (that goes against the purpose of the test itself)&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>16.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 10 Jun 2022 09:01:29 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 34 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_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>pierlauro.sciarelli@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 34 weeks, 5 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_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>pierlauro.sciarelli@mongodb.com</customfieldvalue>
            <customfieldvalue>tommaso.tocci@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i02atr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i06i3m:5</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="5427">Sharding EMEA 2021-11-15</customfieldvalue>
    <customfieldvalue id="5428">Sharding EMEA 2021-11-29</customfieldvalue>
    <customfieldvalue id="5429">Sharding EMEA 2021-12-13</customfieldvalue>
    <customfieldvalue id="5430">Sharding EMEA 2021-12-27</customfieldvalue>
    <customfieldvalue id="5681">Sharding EMEA 2022-01-10</customfieldvalue>
    <customfieldvalue id="5682">Sharding EMEA 2022-01-24</customfieldvalue>
    <customfieldvalue id="5683">Sharding EMEA 2022-02-07</customfieldvalue>
    <customfieldvalue id="5749">Sharding EMEA 2022-02-21</customfieldvalue>
    <customfieldvalue id="5815">Sharding EMEA 2022-03-07</customfieldvalue>
    <customfieldvalue id="5816">Sharding EMEA 2022-03-21</customfieldvalue>
    <customfieldvalue id="5817">Sharding EMEA 2022-04-04</customfieldvalue>
    <customfieldvalue id="5818">Sharding EMEA 2022-04-18</customfieldvalue>
    <customfieldvalue id="6073">Sharding EMEA 2022-05-02</customfieldvalue>
    <customfieldvalue id="6074">Sharding EMEA 2022-05-16</customfieldvalue>
    <customfieldvalue id="6075">Sharding EMEA 2022-05-30</customfieldvalue>
    <customfieldvalue id="6122">Sharding EMEA 2022-06-13</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|i01wz3:</customfieldvalue>

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