<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:54:54 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-62356] shardCollection for time-series is not done under the critical section</title>
                <link>https://jira.mongodb.org/browse/SERVER-62356</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When sharding a time-series collection, &lt;a href=&quot;https://github.com/mongodb/mongo/blob/28db460776d88ff8a17d132acc4b87ea44af6430/src/mongo/db/s/shardsvr_create_collection_command.cpp#L87-L95&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;we perform a catalog lookup and perform some extra steps&lt;/a&gt;. However, this state can change before we actually &lt;a href=&quot;https://github.com/mongodb/mongo/blob/28db460776d88ff8a17d132acc4b87ea44af6430/src/mongo/db/s/shardsvr_create_collection_command.cpp#L144-L151&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;enter the critical section for the operation&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1958486">SERVER-62356</key>
            <summary>shardCollection for time-series is not done under the critical section</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="paolo.polato@mongodb.com">Paolo Polato</assignee>
                                    <reporter username="haley.connelly@mongodb.com">Haley Connelly</reporter>
                        <labels>
                            <label>time-series</label>
                            <label>timeseries_DDL_bug</label>
                    </labels>
                <created>Tue, 4 Jan 2022 21:25:48 +0000</created>
                <updated>Sun, 29 Oct 2023 21:44:32 +0000</updated>
                            <resolved>Wed, 14 Sep 2022 15:55:58 +0000</resolved>
                                                    <fixVersion>6.2.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="4833939" author="xgen-internal-githook" created="Fri, 16 Sep 2022 15:29:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Paolo Polato&apos;, &apos;email&apos;: &apos;paolo.polato@mongodb.com&apos;, &apos;username&apos;: &apos;ppolato&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62356&quot; title=&quot;shardCollection for time-series is not done under the critical section&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62356&quot;&gt;&lt;del&gt;SERVER-62356&lt;/del&gt;&lt;/a&gt; Fix multiversion suites&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/62ea49cf4617b71cbc03c0058ea477b0e86a8569&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/62ea49cf4617b71cbc03c0058ea477b0e86a8569&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4825694" author="xgen-internal-githook" created="Wed, 14 Sep 2022 13:49:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Paolo Polato&apos;, &apos;email&apos;: &apos;paolo.polato@mongodb.com&apos;, &apos;username&apos;: &apos;ppolato&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62356&quot; title=&quot;shardCollection for time-series is not done under the critical section&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62356&quot;&gt;&lt;del&gt;SERVER-62356&lt;/del&gt;&lt;/a&gt; Serialise the creation of sharded Timeseries collection with other DDL ops&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/095cfdb2bd20b10d0a20ef876029120b69971368&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/095cfdb2bd20b10d0a20ef876029120b69971368&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4707841" author="xgen-internal-githook" created="Wed, 27 Jul 2022 08:46:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Paolo Polato&apos;, &apos;email&apos;: &apos;paolo.polato@mongodb.com&apos;, &apos;username&apos;: &apos;ppolato&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62356&quot; title=&quot;shardCollection for time-series is not done under the critical section&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62356&quot;&gt;&lt;del&gt;SERVER-62356&lt;/del&gt;&lt;/a&gt; Serialize creation of sharded and unsharded Timeseries collections&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit ab2ced056ac09ea256cc4ff00fb2cbd0344f622a.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bcd3d82cbb04a103f776e66705c4955326000a01&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bcd3d82cbb04a103f776e66705c4955326000a01&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4705350" author="xgen-internal-githook" created="Tue, 26 Jul 2022 14:04:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Paolo Polato&apos;, &apos;email&apos;: &apos;paolo.polato@mongodb.com&apos;, &apos;username&apos;: &apos;ppolato&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62356&quot; title=&quot;shardCollection for time-series is not done under the critical section&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62356&quot;&gt;&lt;del&gt;SERVER-62356&lt;/del&gt;&lt;/a&gt; Serialize creation of sharded and unsharded Timeseries collections&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ab2ced056ac09ea256cc4ff00fb2cbd0344f622a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ab2ced056ac09ea256cc4ff00fb2cbd0344f622a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4556013" author="xgen-internal-githook" created="Wed, 18 May 2022 11:43:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Rui Liu&apos;, &apos;email&apos;: &apos;rui.liu@mongodb.com&apos;, &apos;username&apos;: &apos;lriuui0x0&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62356&quot; title=&quot;shardCollection for time-series is not done under the critical section&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62356&quot;&gt;&lt;del&gt;SERVER-62356&lt;/del&gt;&lt;/a&gt; Move timeseries translation logic into create collection coordinator&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit a3efbb9a26eba7f40392b3921ed0162c80b6b6d1.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/228ce045ccff21992eeb1306f35c1bb2c489c0e9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/228ce045ccff21992eeb1306f35c1bb2c489c0e9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4549317" author="xgen-internal-githook" created="Mon, 16 May 2022 11:38:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Rui Liu&apos;, &apos;email&apos;: &apos;rui.liu@mongodb.com&apos;, &apos;username&apos;: &apos;lriuui0x0&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62356&quot; title=&quot;shardCollection for time-series is not done under the critical section&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62356&quot;&gt;&lt;del&gt;SERVER-62356&lt;/del&gt;&lt;/a&gt; Move timeseries translation logic into create collection coordinator&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a3efbb9a26eba7f40392b3921ed0162c80b6b6d1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a3efbb9a26eba7f40392b3921ed0162c80b6b6d1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4457919" author="JIRAUSER1259232" created="Tue, 5 Apr 2022 14:58:12 +0000"  >&lt;p&gt;Assigning to Rui/&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=arun.banala&quot; class=&quot;user-hover&quot; rel=&quot;arun.banala&quot;&gt;arun.banala&lt;/a&gt;, excluding other DDL during shard TS collection is likely acceptable.What do you think? Or the concern is the uasserts in that block? Still good idea to get it reviewed by sharding.&lt;/p&gt;</comment>
                            <comment id="4373693" author="arun.banala" created="Thu, 24 Feb 2022 10:03:15 +0000"  >&lt;p&gt;This does look like a problem, if there is a &lt;tt&gt;create&lt;/tt&gt; and &lt;tt&gt;shardCollection&lt;/tt&gt; command running for the same namespace in parallel. It doesn&apos;t feel like taking a lock on &lt;tt&gt;CollectionCatalog&lt;/tt&gt; would work here. We can consider moving this whole time-series logic into the DDLCoordinator. We should also get guidance from Sharding team, as the DDLCoordinator itself doesn&apos;t let other DDL operations run in parallel. &lt;/p&gt;</comment>
                            <comment id="4299895" author="JIRAUSER1259232" created="Wed, 19 Jan 2022 12:02:45 +0000"  >&lt;p&gt;Hi Arun, could you please take a look and make sure the original shardCollection for time series is thread safe?&lt;/p&gt;</comment>
                            <comment id="4293955" author="kyle.suarez" created="Fri, 14 Jan 2022 19:19:39 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bernard.gorman&quot; class=&quot;user-hover&quot; rel=&quot;bernard.gorman&quot;&gt;bernard.gorman&lt;/a&gt; or &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rushan.chen&quot; class=&quot;user-hover&quot; rel=&quot;rushan.chen&quot;&gt;rushan.chen&lt;/a&gt;, can someone from the sharding time-series collection team take a look at this bug?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="2145977">SERVER-70006</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2416859">SERVER-79974</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is caused by">
                                        <issuelink>
            <issuekey id="1764721">SERVER-57315</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>10.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_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>Fri, 14 Jan 2022 19:19:39 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>arun.banala@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>haley.connelly@mongodb.com</customfieldvalue>
            <customfieldvalue>kyle.suarez@mongodb.com</customfieldvalue>
            <customfieldvalue>paolo.polato@mongodb.com</customfieldvalue>
            <customfieldvalue>rushan.chen@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0fxj3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i08mtk:</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="5281">QE 2022-04-04</customfieldvalue>
    <customfieldvalue id="5283">QE 2022-02-07</customfieldvalue>
    <customfieldvalue id="5285">QE 2022-02-21</customfieldvalue>
    <customfieldvalue id="5287">QE 2022-03-07</customfieldvalue>
    <customfieldvalue id="5289">QE 2022-03-21</customfieldvalue>
    <customfieldvalue id="5810">QE 2022-01-24</customfieldvalue>
    <customfieldvalue id="5888">QE 2022-04-18</customfieldvalue>
    <customfieldvalue id="5890">QE 2022-05-02</customfieldvalue>
    <customfieldvalue id="5892">QE 2022-05-16</customfieldvalue>
    <customfieldvalue id="6284">Sharding EMEA 2022-06-27</customfieldvalue>
    <customfieldvalue id="6285">Sharding EMEA 2022-07-11</customfieldvalue>
    <customfieldvalue id="6286">Sharding EMEA 2022-07-25</customfieldvalue>
    <customfieldvalue id="6287">Sharding EMEA 2022-08-08</customfieldvalue>
    <customfieldvalue id="6395">Sharding EMEA 2022-08-22</customfieldvalue>
    <customfieldvalue id="6396">Sharding EMEA 2022-09-05</customfieldvalue>
    <customfieldvalue id="6397">Sharding EMEA 2022-09-19</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|i0fjof:</customfieldvalue>

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