<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:19:48 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-29057] Unreplicated temporary collection creations should use unique names</title>
                <link>https://jira.mongodb.org/browse/SERVER-29057</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In multiple places we create temporary collections and use in-memory counters to make the names unique. If the node shuts down and starts back up, these names may no longer be unique. We can use a UUID to be more unique.&lt;/p&gt;

&lt;p&gt;Here are two examples:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/blob/fa2dcc33303dd6a2080c108e121da6984d08a9d6/src/mongo/db/pipeline/document_source_out.cpp#L95-L96&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/fa2dcc33303dd6a2080c108e121da6984d08a9d6/src/mongo/db/pipeline/document_source_out.cpp#L95-L96&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/blob/fa2dcc33303dd6a2080c108e121da6984d08a9d6/src/mongo/db/commands/mr.cpp#L310-L314&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/fa2dcc33303dd6a2080c108e121da6984d08a9d6/src/mongo/db/commands/mr.cpp#L310-L314&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="380356">SERVER-29057</key>
            <summary>Unreplicated temporary collection creations should use unique names</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="benety.goh@mongodb.com">Benety Goh</assignee>
                                    <reporter username="judah.schvimer@mongodb.com">Judah Schvimer</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Wed, 3 May 2017 20:54:36 +0000</created>
                <updated>Mon, 30 Oct 2023 23:17:03 +0000</updated>
                            <resolved>Fri, 28 Jul 2017 15:54:39 +0000</resolved>
                                                    <fixVersion>3.5.11</fixVersion>
                                    <component>Replication</component>
                                        <votes>1</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1634624" author="xgen-internal-githook" created="Fri, 28 Jul 2017 15:52:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;, &apos;name&apos;: &apos;Benety Goh&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29057&quot; title=&quot;Unreplicated temporary collection creations should use unique names&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29057&quot;&gt;&lt;del&gt;SERVER-29057&lt;/del&gt;&lt;/a&gt; createCollectionForApplyOps uses randomly generated temporary collection name&lt;/p&gt;

&lt;p&gt;This applies to rare oplog replay scenarios where the collection to create already exists.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9a46831201e17c6b2aa281888eea1f1c13869698&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9a46831201e17c6b2aa281888eea1f1c13869698&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1634564" author="xgen-internal-githook" created="Fri, 28 Jul 2017 15:14:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;, &apos;name&apos;: &apos;Benety Goh&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29057&quot; title=&quot;Unreplicated temporary collection creations should use unique names&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29057&quot;&gt;&lt;del&gt;SERVER-29057&lt;/del&gt;&lt;/a&gt; renameCollection() uses randomly generated temporary collection name&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/702e4b28e4808a0c895b7e97ce66accee31c8a4b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/702e4b28e4808a0c895b7e97ce66accee31c8a4b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1634563" author="xgen-internal-githook" created="Fri, 28 Jul 2017 15:14:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;, &apos;name&apos;: &apos;Benety Goh&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29057&quot; title=&quot;Unreplicated temporary collection creations should use unique names&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29057&quot;&gt;&lt;del&gt;SERVER-29057&lt;/del&gt;&lt;/a&gt; convertToCapped uses randomly generated temporary collection name&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8f61a856fc7add0eed9f1572c18b0e4b996ff177&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8f61a856fc7add0eed9f1572c18b0e4b996ff177&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1634449" author="xgen-internal-githook" created="Fri, 28 Jul 2017 13:55:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;, &apos;name&apos;: &apos;Benety Goh&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29057&quot; title=&quot;Unreplicated temporary collection creations should use unique names&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29057&quot;&gt;&lt;del&gt;SERVER-29057&lt;/del&gt;&lt;/a&gt; add Database::makeUniqueCollectionNamespace()&lt;/p&gt;

&lt;p&gt;This function generates a unique collection name suitable for temporary&lt;br/&gt;
collections in the same database using a mkstemp-like template.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8bdcd3ac5fe7f3ba0bc0ddaa70ea6731ef775918&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8bdcd3ac5fe7f3ba0bc0ddaa70ea6731ef775918&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1633167" author="xgen-internal-githook" created="Thu, 27 Jul 2017 09:57:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;, &apos;name&apos;: &apos;Benety Goh&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29057&quot; title=&quot;Unreplicated temporary collection creations should use unique names&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29057&quot;&gt;&lt;del&gt;SERVER-29057&lt;/del&gt;&lt;/a&gt; cloneCollectionAsCapped() includes collection name in error message when destination exists&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9d2ce39c3bb7cd2f5cd3763cf8f1941543c26bc4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9d2ce39c3bb7cd2f5cd3763cf8f1941543c26bc4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1633036" author="xgen-internal-githook" created="Thu, 27 Jul 2017 03:56:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;, &apos;name&apos;: &apos;Benety Goh&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29057&quot; title=&quot;Unreplicated temporary collection creations should use unique names&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29057&quot;&gt;&lt;del&gt;SERVER-29057&lt;/del&gt;&lt;/a&gt; include collection name in message for assertion 17399&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6015c85de33727a5b5e01eb5cc6a52e9059ad3e6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6015c85de33727a5b5e01eb5cc6a52e9059ad3e6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1564514" author="judah.schvimer" created="Thu, 4 May 2017 15:43:45 +0000"  >&lt;p&gt;renameCollection looks like another example of this:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/blob/fa2dcc33303dd6a2080c108e121da6984d08a9d6/src/mongo/db/catalog/rename_collection.cpp#L189-L191&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/fa2dcc33303dd6a2080c108e121da6984d08a9d6/src/mongo/db/catalog/rename_collection.cpp#L189-L191&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1564455" author="milkie" created="Thu, 4 May 2017 14:39:35 +0000"  >&lt;p&gt;After discussion, it&apos;s more clear what this ticket work represents.  The examples listed in the description are not in fact the ones we should be changing.  Instead, we only need to change the temp table name generation logic for temporary tables that are NOT replicated.  One example is the convertToCapped temporary table.&lt;/p&gt;</comment>
                            <comment id="1564113" author="milkie" created="Thu, 4 May 2017 00:52:49 +0000"  >&lt;p&gt;I thought temporary collections did not live across startups (they are dropped because that&apos;s what makes them temporary).&lt;/p&gt;</comment>
                            <comment id="1563995" author="matthew.russotto" created="Wed, 3 May 2017 21:26:50 +0000"  >&lt;p&gt;Yes, some of our current code includes the existing collection name which wouldn&apos;t leave much.  But I guess we don&apos;t need that.&lt;/p&gt;</comment>
                            <comment id="1563971" author="geert.bosch" created="Wed, 3 May 2017 21:18:55 +0000"  >&lt;p&gt;We have &lt;tt&gt;120 - 63 - 1 == 56&lt;/tt&gt; characters for the collection part of the namespace name. The UUID is 36 bytes in ASCII representation, so that leaves some space for a prefix like &lt;tt&gt;tmp_&lt;/tt&gt; or whatever indicating to humans this is a temporary collection.&lt;/p&gt;</comment>
                            <comment id="1563963" author="matthew.russotto" created="Wed, 3 May 2017 21:14:02 +0000"  >&lt;p&gt;We also probably want to ensure our temporary names don&apos;t exceed namespace length limits.&lt;/p&gt;</comment>
                            <comment id="1563945" author="geert.bosch" created="Wed, 3 May 2017 21:00:11 +0000"  >&lt;p&gt;We probably should make a single method that creates a new temp collection with a unique name. Once we enable collection UUIDs we can change them to use the actual UUID of the collection. Until then we can just generate a new one.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2026427">SERVER-65711</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="451917">SERVER-31749</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="365784">SERVER-28382</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>13.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_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>Wed, 3 May 2017 21:00:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 28 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 28 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>15.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>benety.goh@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>geert.bosch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>judah.schvimer@mongodb.com</customfieldvalue>
            <customfieldvalue>matthew.russotto@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht6vun:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht1a67:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1768">Repl 2017-07-31</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hs4993:</customfieldvalue>

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