<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:05:12 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-66355] Pass dbName to validateViewDefinitionBSON in DurableViewCatalog::onExternalInsert</title>
                <link>https://jira.mongodb.org/browse/SERVER-66355</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;validateViewDefinitionBSON is meant to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/d5399825310e599b0cad119664c23e10d98ca5af/src/mongo/db/views/durable_view_catalog.cpp#L63&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;take in the db name&lt;/a&gt;, however in DurableViewCatalog::onExternalInsert &lt;a href=&quot;https://github.com/mongodb/mongo/blob/d5399825310e599b0cad119664c23e10d98ca5af/src/mongo/db/views/durable_view_catalog.cpp#L125&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;we pass the full namespace&lt;/a&gt;. This causes &lt;a href=&quot;https://github.com/mongodb/mongo/blob/d5399825310e599b0cad119664c23e10d98ca5af/src/mongo/db/views/durable_view_catalog.cpp#L98-L103&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this uassert&lt;/a&gt; to fail because database names are not allowed to contain a &quot;.&quot;, and since we pass the full namespace for dbName, it will contain a &quot;.&quot;. The exception is currently swallowed because &lt;a href=&quot;https://github.com/mongodb/mongo/blob/d5399825310e599b0cad119664c23e10d98ca5af/src/mongo/db/op_observer_impl.cpp#L648&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;we catch exceptions thrown by onExternalInsert&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;However, if we change DurableViewCatalog::onExternalInsert to correctly pass the dbName, we&apos;ll eventually hit &lt;a href=&quot;https://github.com/mongodb/mongo/blob/d5399825310e599b0cad119664c23e10d98ca5af/src/mongo/db/catalog/collection_catalog.cpp#L481&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this invariant in CollectionCatalog::createView&lt;/a&gt; because we don&apos;t actually ever take a collection lock on the view name currently - we have a lock on the database and the collection name itself, but not the view.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2043478">SERVER-66355</key>
            <summary>Pass dbName to validateViewDefinitionBSON in DurableViewCatalog::onExternalInsert</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="dianna.hohensee@mongodb.com">Dianna Hohensee</assignee>
                                    <reporter username="janna.golden@mongodb.com">Janna Golden</reporter>
                        <labels>
                    </labels>
                <created>Tue, 10 May 2022 15:55:27 +0000</created>
                <updated>Sun, 29 Oct 2023 21:38:23 +0000</updated>
                            <resolved>Wed, 8 Jun 2022 14:42:43 +0000</resolved>
                                                    <fixVersion>6.1.0-rc0</fixVersion>
                    <fixVersion>6.0.5</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5140192" author="xgen-internal-githook" created="Wed, 25 Jan 2023 16:45:35 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Dianna Hohensee&apos;, &apos;email&apos;: &apos;dianna.hohensee@mongodb.com&apos;, &apos;username&apos;: &apos;DiannaHohensee&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-66355&quot; title=&quot;Pass dbName to validateViewDefinitionBSON in DurableViewCatalog::onExternalInsert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-66355&quot;&gt;&lt;del&gt;SERVER-66355&lt;/del&gt;&lt;/a&gt; Fix DurableViewCatalog bug where nss was passed into dbName parameter; Don&apos;t require view namespace lock during oplog applicaion of db.system.views inserts&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 1a578ef55d316eb5fec5cc135cf056f6f17ab616)&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/792cdd0ead386ebb7f278d973e8fa6c14a0053dc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/792cdd0ead386ebb7f278d973e8fa6c14a0053dc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4602060" author="xgen-internal-githook" created="Wed, 8 Jun 2022 14:06:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dianna Hohensee&apos;, &apos;email&apos;: &apos;dianna.hohensee@mongodb.com&apos;, &apos;username&apos;: &apos;DiannaHohensee&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-66355&quot; title=&quot;Pass dbName to validateViewDefinitionBSON in DurableViewCatalog::onExternalInsert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-66355&quot;&gt;&lt;del&gt;SERVER-66355&lt;/del&gt;&lt;/a&gt; Fix DurableViewCatalog bug where nss was passed into dbName parameter; Don&apos;t require view namespace lock during oplog applicaion of db.system.views inserts&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1a578ef55d316eb5fec5cc135cf056f6f17ab616&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1a578ef55d316eb5fec5cc135cf056f6f17ab616&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4590529" author="dianna.hohensee" created="Thu, 2 Jun 2022 16:53:04 +0000"  >&lt;p&gt;&#160;I got a stack trace of the invariant. Looks like oplog application. &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;[ReplWriterWorker-0] &quot;Invariant failure&quot;,&quot;attr&quot;:{&quot;expr&quot;:&quot;opCtx-&amp;gt;lockState()-&amp;gt;isCollectionLockedForMode(viewName, MODE_IX)&quot;,&quot;file&quot;:&quot;src/mongo/db/catalog/collection_catalog.cpp&quot;,&quot;line&quot;:479}&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;[ReplWriterWorker-0] &quot;\n\n***aborting after invariant() failure\n\n&quot;&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;[ReplWriterWorker-0] &quot;Writing fatal message&quot;,&quot;attr&quot;:{&quot;message&quot;:&quot;Got signal: 6 (Aborted).\n&quot;}&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;....&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F7770133078&quot;,&quot;b&quot;:&quot;7F776FF3F000&quot;,&quot;o&quot;:&quot;1F4078&quot;,&quot;s&quot;:&quot;_ZN5mongo18stack_trace_detail12_GLOBAL__N_119printStackTraceImplERKNS1_7OptionsEPNS_14StackTraceSinkE.constprop.362&quot;,&quot;C&quot;:&quot;mongo::stack_trace_detail::(anonymous namespace)::printStackTraceImpl(mongo::stack_trace_detail::(anonymous namespace)::Options const&amp;amp;, mongo::StackTraceSink*) [clone .constprop.362]&quot;,&quot;s+&quot;:&quot;1F8&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F7770135599&quot;,&quot;b&quot;:&quot;7F776FF3F000&quot;,&quot;o&quot;:&quot;1F6599&quot;,&quot;s&quot;:&quot;_ZN5mongo15printStackTraceEv&quot;,&quot;C&quot;:&quot;mongo::printStackTrace()&quot;,&quot;s+&quot;:&quot;29&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F777012F2DF&quot;,&quot;b&quot;:&quot;7F776FF3F000&quot;,&quot;o&quot;:&quot;1F02DF&quot;,&quot;s&quot;:&quot;abruptQuit&quot;,&quot;s+&quot;:&quot;6F&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F776E421D80&quot;,&quot;b&quot;:&quot;7F776E40F000&quot;,&quot;o&quot;:&quot;12D80&quot;,&quot;s&quot;:&quot;funlockfile&quot;,&quot;s+&quot;:&quot;50&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F776E08293F&quot;,&quot;b&quot;:&quot;7F776E04B000&quot;,&quot;o&quot;:&quot;3793F&quot;,&quot;s&quot;:&quot;gsignal&quot;,&quot;s+&quot;:&quot;10F&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F776E06CC95&quot;,&quot;b&quot;:&quot;7F776E04B000&quot;,&quot;o&quot;:&quot;21C95&quot;,&quot;s&quot;:&quot;abort&quot;,&quot;s+&quot;:&quot;127&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F777006DF4B&quot;,&quot;b&quot;:&quot;7F776FF3F000&quot;,&quot;o&quot;:&quot;12EF4B&quot;,&quot;s&quot;:&quot;_ZN5mongo12_GLOBAL__N_19callAbortEv&quot;,&quot;C&quot;:&quot;mongo::(anonymous namespace)::callAbort()&quot;,&quot;s+&quot;:&quot;1B&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F777006EE1A&quot;,&quot;b&quot;:&quot;7F776FF3F000&quot;,&quot;o&quot;:&quot;12FE1A&quot;,&quot;s&quot;:&quot;_ZN5mongo15invariantFailedEPKcS1_j&quot;,&quot;C&quot;:&quot;mongo::invariantFailed(char const*, char const*, unsigned int)&quot;,&quot;s+&quot;:&quot;EC&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F77668B9714&quot;,&quot;b&quot;:&quot;7F776689F000&quot;,&quot;o&quot;:&quot;1A714&quot;,&quot;s&quot;:&quot;_ZNK5mongo17CollectionCatalog10createViewEPNS_16OperationContextERKNS_15NamespaceStringES5_RKNS_9BSONArrayERKNS_7BSONObjERKSt8functionIFNS_10StatusWithIN4absl12lts_2021032413node_hash_setIS3_NSF_13hash_internal4HashIS3_EESt8equal_toIS3_ESaIS3_EEEEES2_RKNS_14ViewDefinitionEEEb.cold.1967&quot;,&quot;C&quot;:&quot;mongo::CollectionCatalog::createView(mongo::OperationContext*, mongo::NamespaceString const&amp;amp;, mongo::NamespaceString const&amp;amp;, mongo::BSONArray const&amp;amp;, mongo::BSONObj const&amp;amp;, std::function&amp;lt;mongo::StatusWith&amp;lt;absl::lts_20210324::node_hash_set&amp;lt;mongo::NamespaceString, absl::lts_20210324::hash_internal::Hash&amp;lt;mongo::NamespaceString&amp;gt;, std::equal_to&amp;lt;mongo::NamespaceString&amp;gt;, std::allocator&amp;lt;mongo::NamespaceString&amp;gt; &amp;gt; &amp;gt; (mongo::OperationContext*, mongo::ViewDefinition const&amp;amp;)&amp;gt; const&amp;amp;, bool) const [clone .cold.1967]&quot;,&quot;s+&quot;:&quot;6C&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F776CA796D6&quot;,&quot;b&quot;:&quot;7F776CA6D000&quot;,&quot;o&quot;:&quot;C6D6&quot;,&quot;s&quot;:&quot;_ZN5mongo18DurableViewCatalog16onExternalInsertEPNS_16OperationContextERKNS_7BSONObjERKNS_15NamespaceStringE&quot;,&quot;C&quot;:&quot;mongo::DurableViewCatalog::onExternalInsert(mongo::OperationContext*, mongo::BSONObj const&amp;amp;, mongo::NamespaceString const&amp;amp;)&quot;,&quot;s+&quot;:&quot;596&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F776CAA8919&quot;,&quot;b&quot;:&quot;7F776CA86000&quot;,&quot;o&quot;:&quot;22919&quot;,&quot;s&quot;:&quot;_ZN5mongo14OpObserverImpl9onInsertsEPNS_16OperationContextERKNS_15NamespaceStringERKNS_4UUIDEN9__gnu_cxx17__normal_iteratorIPKNS_15InsertStatementESt6vectorISB_SaISB_EEEESH_b&quot;,&quot;C&quot;:&quot;mongo::OpObserverImpl::onInserts(mongo::OperationContext*, mongo::NamespaceString const&amp;amp;, mongo::UUID const&amp;amp;, __gnu_cxx::__normal_iterator&amp;lt;mongo::InsertStatement const*, std::vector&amp;lt;mongo::InsertStatement, std::allocator&amp;lt;mongo::InsertStatement&amp;gt; &amp;gt; &amp;gt;, __gnu_cxx::__normal_iterator&amp;lt;mongo::InsertStatement const*, std::vector&amp;lt;mongo::InsertStatement, std::allocator&amp;lt;mongo::InsertStatement&amp;gt; &amp;gt; &amp;gt;, bool)&quot;,&quot;s+&quot;:&quot;849&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F77705CB4E1&quot;,&quot;b&quot;:&quot;7F7770592000&quot;,&quot;o&quot;:&quot;394E1&quot;,&quot;s&quot;:&quot;_ZN5mongo18OpObserverRegistry9onInsertsEPNS_16OperationContextERKNS_15NamespaceStringERKNS_4UUIDEN9__gnu_cxx17__normal_iteratorIPKNS_15InsertStatementESt6vectorISB_SaISB_EEEESH_b&quot;,&quot;C&quot;:&quot;mongo::OpObserverRegistry::onInserts(mongo::OperationContext*, mongo::NamespaceString const&amp;amp;, mongo::UUID const&amp;amp;, __gnu_cxx::__normal_iterator&amp;lt;mongo::InsertStatement const*, std::vector&amp;lt;mongo::InsertStatement, std::allocator&amp;lt;mongo::InsertStatement&amp;gt; &amp;gt; &amp;gt;, __gnu_cxx::__normal_iterator&amp;lt;mongo::InsertStatement const*, std::vector&amp;lt;mongo::InsertStatement, std::allocator&amp;lt;mongo::InsertStatement&amp;gt; &amp;gt; &amp;gt;, bool)&quot;,&quot;s+&quot;:&quot;81&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F7766DDCCC1&quot;,&quot;b&quot;:&quot;7F7766D7B000&quot;,&quot;o&quot;:&quot;61CC1&quot;,&quot;s&quot;:&quot;_ZNK5mongo14CollectionImpl27insertDocumentForBulkLoaderEPNS_16OperationContextERKNS_7BSONObjERKSt8functionIFNS_6StatusERKNS_8RecordIdEEE&quot;,&quot;C&quot;:&quot;mongo::CollectionImpl::insertDocumentForBulkLoader(mongo::OperationContext*, mongo::BSONObj const&amp;amp;, std::function&amp;lt;mongo::Status (mongo::RecordId const&amp;amp;)&amp;gt; const&amp;amp;) const&quot;,&quot;s+&quot;:&quot;521&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F776C4BF3EC&quot;,&quot;b&quot;:&quot;7F776C489000&quot;,&quot;o&quot;:&quot;363EC&quot;,&quot;s&quot;:&quot;_ZN5mongo4repl24CollectionBulkLoaderImpl37_insertDocumentsForUncappedCollectionEN9__gnu_cxx17__normal_iteratorIPKNS_7BSONObjESt6vectorIS4_SaIS4_EEEESA_&quot;,&quot;C&quot;:&quot;mongo::repl::CollectionBulkLoaderImpl::_insertDocumentsForUncappedCollection(__gnu_cxx::__normal_iterator&amp;lt;mongo::BSONObj const*, std::vector&amp;lt;mongo::BSONObj, std::allocator&amp;lt;mongo::BSONObj&amp;gt; &amp;gt; &amp;gt;, __gnu_cxx::__normal_iterator&amp;lt;mongo::BSONObj const*, std::vector&amp;lt;mongo::BSONObj, std::allocator&amp;lt;mongo::BSONObj&amp;gt; &amp;gt; &amp;gt;)&quot;,&quot;s+&quot;:&quot;25C&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F776C4C0BFA&quot;,&quot;b&quot;:&quot;7F776C489000&quot;,&quot;o&quot;:&quot;37BFA&quot;,&quot;s&quot;:&quot;_ZN5mongo4repl24CollectionBulkLoaderImpl15insertDocumentsEN9__gnu_cxx17__normal_iteratorIPKNS_7BSONObjESt6vectorIS4_SaIS4_EEEESA_&quot;,&quot;C&quot;:&quot;mongo::repl::CollectionBulkLoaderImpl::insertDocuments(__gnu_cxx::__normal_iterator&amp;lt;mongo::BSONObj const*, std::vector&amp;lt;mongo::BSONObj, std::allocator&amp;lt;mongo::BSONObj&amp;gt; &amp;gt; &amp;gt;, __gnu_cxx::__normal_iterator&amp;lt;mongo::BSONObj const*, std::vector&amp;lt;mongo::BSONObj, std::allocator&amp;lt;mongo::BSONObj&amp;gt; &amp;gt; &amp;gt;)&quot;,&quot;s+&quot;:&quot;7A&quot;}}&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;[ReplWriterWorker-0] &quot;Frame&quot;,&quot;attr&quot;:{&quot;frame&quot;:{&quot;a&quot;:&quot;7F776BC0A43E&quot;,&quot;b&quot;:&quot;7F776BBE0000&quot;,&quot;o&quot;:&quot;2A43E&quot;,&quot;s&quot;:&quot;_ZN5mongo4repl16CollectionCloner23insertDocumentsCallbackERKNS_8executor12TaskExecutor12CallbackArgsE&quot;,&quot;C&quot;:&quot;mongo::repl::CollectionCloner::insertDocumentsCallback(mongo::executor::TaskExecutor::CallbackArgs const&amp;amp;)&quot;,&quot;s+&quot;:&quot;11E&quot;}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="4587795" author="janna.golden" created="Wed, 1 Jun 2022 19:05:17 +0000"  >&lt;p&gt;The code catches the error and retries down a different path - it&apos;ll &lt;a href=&quot;https://github.com/mongodb/mongo/blob/d5399825310e599b0cad119664c23e10d98ca5af/src/mongo/db/views/durable_view_catalog.cpp#L118&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;reload the views in the collection catalog&lt;/a&gt; rather than &lt;a href=&quot;https://github.com/mongodb/mongo/blob/d5399825310e599b0cad119664c23e10d98ca5af/src/mongo/db/views/durable_view_catalog.cpp#L139&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;creating the view&lt;/a&gt;. I &lt;b&gt;think&lt;/b&gt; in either case the view will exist in the collection catalog in the end, the code used to always reload the views. Looking at &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-53870&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;the ticket (SERVER-53870)&lt;/a&gt; that added &lt;a href=&quot;https://github.com/mongodb/mongo/blob/d5399825310e599b0cad119664c23e10d98ca5af/src/mongo/db/views/durable_view_catalog.cpp#L121&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;DurableViewCatalog::onExternalInsert&lt;/a&gt;, it looks this function was added as a performance optimization to avoid reloading the views. I don&apos;t know that there&apos;s a great correctness test we could write because I think the outcome is the same either way, but perhaps you could run the script that&apos;s in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-53870&quot; title=&quot;Improve view creation performance over time&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-53870&quot;&gt;&lt;del&gt;SERVER-53870&lt;/del&gt;&lt;/a&gt; to confirm the change?&lt;/p&gt;

&lt;p&gt;We found this when making changes to swap out some uses of StringData or std::string for passing a db name around to use DatabaseName because we had attempted to change &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0f1053354a132f8259e740f927dc9e67a2c64cea/src/mongo/db/views/durable_view_catalog.cpp#L125&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this line&lt;/a&gt; to grab the DatabaseName object from the namespace string instead, and that caused us to the invariant in CollectionCatalog::createView that we have a lock on view name (we don&apos;t).&lt;/p&gt;

&lt;p&gt;EDIT - we have a ticket to make that change, and I&apos;ve linked as depends on here.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2041411">SERVER-66286</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                                <inwardlinks description="is caused by">
                                        <issuelink>
            <issuekey id="1593634">SERVER-53870</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>4.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, 1 Jun 2022 17:32:23 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 2 weeks 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>
                            1 year, 2 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dianna.hohensee@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>janna.golden@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0uc4f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0d8yg:</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="6029">Execution Team 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|i0ty9r:</customfieldvalue>

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