<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:13:22 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-47123] Remove AutoGetOrCreateDb</title>
                <link>https://jira.mongodb.org/browse/SERVER-47123</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;With the introduction of &lt;a href=&quot;https://github.com/mongodb/mongo/blob/3c78c7dd07811172f37d39f4924b706d871dfeab/src/mongo/db/catalog_raii.h#L71-L74&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;AutoGetDb::ensureDbExists()&lt;/a&gt; and &lt;a href=&quot;https://github.com/mongodb/mongo/blob/3c78c7dd07811172f37d39f4924b706d871dfeab/src/mongo/db/catalog_raii.h#L120-L125&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;AutoGetCollection::ensureDbExists()&lt;/a&gt; in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45955&quot; title=&quot;findAndModify should not take exclusive locks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45955&quot;&gt;&lt;del&gt;SERVER-45955&lt;/del&gt;&lt;/a&gt;, there is no longer a need for AutoGetOrCreateDb and removing it would simplify the codebase. Going through and directly translating the uses should be trivial, however anywhere we use this pattern:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;AutoGetOrCreateDb autoDb(opCtx, ns.db(), MODE_IX);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Lock::CollectionLock collLock(opCtx, ns, MODE_IX);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Database* db = autoDb.getDb();&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;should be changed into&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;AutoGetCollection autoColl(opCtx, ns, MODE_IX);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Database* db = autoColl.ensureDbExists();&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;This change leads to implicitly creating the system.views collection hitting &lt;a href=&quot;https://github.com/mongodb/mongo/blob/28db80106d7318a9a59cb96352de062466a45cea/src/mongo/db/catalog_raii.cpp#L85-L92&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this uassert&lt;/a&gt;, which we would should investigate whether we can circumvent.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1291176">SERVER-47123</key>
            <summary>Remove AutoGetOrCreateDb</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="benety.goh@mongodb.com">Benety Goh</assignee>
                                    <reporter username="gregory.noma@mongodb.com">Gregory Noma</reporter>
                        <labels>
                            <label>newgrad</label>
                    </labels>
                <created>Wed, 25 Mar 2020 20:51:18 +0000</created>
                <updated>Sun, 29 Oct 2023 22:10:18 +0000</updated>
                            <resolved>Fri, 30 Apr 2021 13:27:03 +0000</resolved>
                                                    <fixVersion>5.0.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3748610" author="benety.goh" created="Fri, 30 Apr 2021 13:27:03 +0000"  >&lt;p&gt;The AutoGetOrCreateDb class has been removed, but there are opportunities for additional code cleanup to be explored in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-56511&quot; title=&quot;use AutoGetOrCreateCollection to create system.views in _createCollection()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-56511&quot;&gt;&lt;del&gt;SERVER-56511&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-53256&quot; title=&quot;Make a new lock helper to encapsulate DBLock and CollectionLock usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-53256&quot;&gt;SERVER-53256&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="3748562" author="xgen-internal-githook" created="Fri, 30 Apr 2021 12:54:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47123&quot; title=&quot;Remove AutoGetOrCreateDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47123&quot;&gt;&lt;del&gt;SERVER-47123&lt;/del&gt;&lt;/a&gt; remove AutoGetOrCreateDb class&lt;/p&gt;

&lt;p&gt;Use AutoGetDb (and its ensureDbExists() method) instead.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3295126e8a081ca57af1a07c6c582fac7a825efd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3295126e8a081ca57af1a07c6c582fac7a825efd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3748431" author="xgen-internal-githook" created="Fri, 30 Apr 2021 11:06:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47123&quot; title=&quot;Remove AutoGetOrCreateDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47123&quot;&gt;&lt;del&gt;SERVER-47123&lt;/del&gt;&lt;/a&gt; remove AutoGetOrCreateDb from implicit collection creation during CRUD operations&lt;/p&gt;

&lt;p&gt;This class is deprecated in favor of AutoGetDb which provides the same functonality&lt;br/&gt;
in AutoGetDb::ensureDbExists().&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/be9319f442417777e400b7b11e140675f2ece4e6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/be9319f442417777e400b7b11e140675f2ece4e6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3747722" author="xgen-internal-githook" created="Thu, 29 Apr 2021 21:28:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47123&quot; title=&quot;Remove AutoGetOrCreateDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47123&quot;&gt;&lt;del&gt;SERVER-47123&lt;/del&gt;&lt;/a&gt; remove AutoGetOrCreateDb from collection and view creation&lt;/p&gt;

&lt;p&gt;This class is deprecated in favor of AutoGetDb.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7fe73c9955e44c7e99c5c3487454bb2ad64740e1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7fe73c9955e44c7e99c5c3487454bb2ad64740e1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3747240" author="xgen-internal-githook" created="Thu, 29 Apr 2021 17:58:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47123&quot; title=&quot;Remove AutoGetOrCreateDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47123&quot;&gt;&lt;del&gt;SERVER-47123&lt;/del&gt;&lt;/a&gt; use collection lock to read FCV doc&lt;/p&gt;

&lt;p&gt;This still locks the DB in MODE_IX but conveys the intent of the&lt;br/&gt;
FCV function better.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ba92efbdba666465e7ccad076412174bc8673fc9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ba92efbdba666465e7ccad076412174bc8673fc9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3746592" author="xgen-internal-githook" created="Thu, 29 Apr 2021 14:34:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47123&quot; title=&quot;Remove AutoGetOrCreateDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47123&quot;&gt;&lt;del&gt;SERVER-47123&lt;/del&gt;&lt;/a&gt; remove AutoGetOrCreateDb from IndexBuildsManager::_moveRecordToLostAndFound()&lt;/p&gt;

&lt;p&gt;This affects repair functionality where we have to save duplicate keys to a local &apos;lost_and_found&apos;&lt;br/&gt;
collection while repairing a unique index.&lt;/p&gt;

&lt;p&gt;This commit also includes trivial changes to startup logging and the config.system.indexBuilds helper.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/93134ab6b29ddf3a9a31ad497b3f298a8928af7e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/93134ab6b29ddf3a9a31ad497b3f298a8928af7e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3746271" author="xgen-internal-githook" created="Thu, 29 Apr 2021 12:44:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47123&quot; title=&quot;Remove AutoGetOrCreateDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47123&quot;&gt;&lt;del&gt;SERVER-47123&lt;/del&gt;&lt;/a&gt; remove AutoGetOrCreateDb from repl::StorageInterfaceImpl&lt;/p&gt;

&lt;p&gt;StorageInterfaceImpl is used in replication to access the storage&lt;br/&gt;
and query execution subsystems.&lt;/p&gt;

&lt;p&gt;AutoGetOrCreateDb is deprecated in favor of AutoGetDb and AutoGetCollection.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3aee716a28a8ccc5258316ebbe48e19343f4ee79&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3aee716a28a8ccc5258316ebbe48e19343f4ee79&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3746128" author="xgen-internal-githook" created="Thu, 29 Apr 2021 10:56:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47123&quot; title=&quot;Remove AutoGetOrCreateDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47123&quot;&gt;&lt;del&gt;SERVER-47123&lt;/del&gt;&lt;/a&gt; remove sharding (and resharding) references to AutoGetOrCreateDb&lt;/p&gt;

&lt;p&gt;This RAII type is deprecated in favor of AutoGetDb and AutoGetCollection.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0a211f3d23316f1bfe7af90d92bcdae458510909&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0a211f3d23316f1bfe7af90d92bcdae458510909&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3745662" author="xgen-internal-githook" created="Thu, 29 Apr 2021 01:49:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47123&quot; title=&quot;Remove AutoGetOrCreateDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47123&quot;&gt;&lt;del&gt;SERVER-47123&lt;/del&gt;&lt;/a&gt; remove AutoGetOrCreateDb from test command pinHistoryReplicated&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ee6112c32187870232a61b92663092bd8771561b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ee6112c32187870232a61b92663092bd8771561b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3745595" author="xgen-internal-githook" created="Thu, 29 Apr 2021 00:29:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47123&quot; title=&quot;Remove AutoGetOrCreateDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47123&quot;&gt;&lt;del&gt;SERVER-47123&lt;/del&gt;&lt;/a&gt; remove AutoGetOrCreateDb from dbtests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fbc4a0423c4930139b719ed5fee985af52b92e90&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fbc4a0423c4930139b719ed5fee985af52b92e90&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3745531" author="xgen-internal-githook" created="Wed, 28 Apr 2021 23:01:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47123&quot; title=&quot;Remove AutoGetOrCreateDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47123&quot;&gt;&lt;del&gt;SERVER-47123&lt;/del&gt;&lt;/a&gt; remove AutoGetOrCreateDb from non-catalog unit tests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/00d3ec0d3a9d7c4077148f528bb1f7293fd1b238&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/00d3ec0d3a9d7c4077148f528bb1f7293fd1b238&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3745055" author="xgen-internal-githook" created="Wed, 28 Apr 2021 19:28:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47123&quot; title=&quot;Remove AutoGetOrCreateDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47123&quot;&gt;&lt;del&gt;SERVER-47123&lt;/del&gt;&lt;/a&gt; remove AutoGetOrCreateDb from catalog unit tests&lt;/p&gt;

&lt;p&gt;AutoGetOrCreateDb is being deprecated in favor or AutoGetDb::ensureDbExists()&lt;br/&gt;
and AutoGetCollection.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b46ac14ee3895b8129069c8f1b03e3820ebcea99&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b46ac14ee3895b8129069c8f1b03e3820ebcea99&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3738971" author="xgen-internal-githook" created="Mon, 26 Apr 2021 16:14:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47123&quot; title=&quot;Remove AutoGetOrCreateDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47123&quot;&gt;&lt;del&gt;SERVER-47123&lt;/del&gt;&lt;/a&gt; remove AutoGetOrCreateDb from importCollection()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/3ed011f40570fc5e1481534b685916553493545b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-enterprise-modules/commit/3ed011f40570fc5e1481534b685916553493545b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3735835" author="benety.goh" created="Fri, 23 Apr 2021 15:21:31 +0000"  >&lt;p&gt;Alternative, we could upgrade the lock mode (using this &lt;a href=&quot;https://github.com/mongodb/mongo/blob/913217ab00e3597bf763e40904cdd159e7e8cb2b/src/mongo/db/catalog_raii.h#L398&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;helper function&lt;/a&gt;) for system.views to MODE_X in &lt;a href=&quot;https://github.com/mongodb/mongo/blob/28db80106d7318a9a59cb96352de062466a45cea/src/mongo/db/catalog/create_collection.cpp#L116&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;_createCollection()&lt;/a&gt;. &lt;/p&gt;</comment>
                            <comment id="3735605" author="benety.goh" created="Fri, 23 Apr 2021 14:00:54 +0000"  >&lt;p&gt;The _createCollection() &lt;a href=&quot;https://github.com/mongodb/mongo/blob/28db80106d7318a9a59cb96352de062466a45cea/src/mongo/db/catalog_raii.cpp#L85-L92&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;uassert&lt;/a&gt; mentioned in the description was introduced in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-37283&quot; title=&quot;View graph cycle on expressive lookup secondary read &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-37283&quot;&gt;&lt;del&gt;SERVER-37283&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Going by the comment above the assertion, we may be able to tell if the collection lock acquisition is requested by UUID or by namespace from the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/28db80106d7318a9a59cb96352de062466a45cea/src/mongo/db/catalog_raii.cpp#L85-L92&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;nsOrUUID&lt;/a&gt; argument.&lt;/p&gt;

&lt;p&gt;For _createCollection(), we can probably convert to a combination of AutoGetDb and CollectionLock for now and defer the work on refining the assertion condition in AutoGetCollection.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1697241">SERVER-56511</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="608923">SERVER-37283</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1129157">SERVER-45955</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1561192">SERVER-53256</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>15.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>Fri, 23 Apr 2021 14:00:54 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 40 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_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>
                            2 years, 40 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>benety.goh@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>gregory.noma@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxbclz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hyo47b:</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="4654">Execution Team 2021-05-03</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|hxayvb:</customfieldvalue>

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