<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:10:41 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-25942] listCollections should not validate views if it isn&apos;t returning them</title>
                <link>https://jira.mongodb.org/browse/SERVER-25942</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This came up during an initial sync because it will shutdown due to listCollections failures with an invalid view definition, after exhausting all initial sync attempts.&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;   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;d20001| 2016-09-01T19:04:48.926-0400 I -        [initial sync] Fatal assertion 40088 InvalidViewDefinition: While issuing listCollections on db &apos;test&apos; (host:guo-workstation:20000) there was an error &apos;found invalid view definition _id: ObjectId(&apos;57c8b3e63024ba1dd847fae9&apos;) while reading &apos;test.system.views&apos;&apos; at src\mongo\db\repl\replication_coordinator_impl.cpp 614&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="313614">SERVER-25942</key>
            <summary>listCollections should not validate views if it isn&apos;t returning them</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="sam.rossi@mongodb.com">Samuel Rossi</assignee>
                                    <reporter username="robert.guo@mongodb.com">Robert Guo</reporter>
                        <labels>
                            <label>neweng</label>
                            <label>read-only-views</label>
                    </labels>
                <created>Thu, 1 Sep 2016 23:14:59 +0000</created>
                <updated>Sat, 19 Nov 2016 00:02:42 +0000</updated>
                            <resolved>Thu, 22 Sep 2016 19:34:59 +0000</resolved>
                                    <version>3.3.12</version>
                                    <fixVersion>3.4.0-rc0</fixVersion>
                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="1391305" author="xgen-internal-githook" created="Thu, 22 Sep 2016 19:32:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Sam Rossi&apos;, u&apos;email&apos;: u&apos;sam.rossi@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25942&quot; title=&quot;listCollections should not validate views if it isn&amp;#39;t returning them&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25942&quot;&gt;&lt;del&gt;SERVER-25942&lt;/del&gt;&lt;/a&gt; Don&apos;t validate views in listCollections unless they are being returned&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c080a9b3f208ff3e2530e1a3ff543ff526f91728&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c080a9b3f208ff3e2530e1a3ff543ff526f91728&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1388842" author="xgen-internal-githook" created="Tue, 20 Sep 2016 17:09:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;judahschvimer&apos;, u&apos;name&apos;: u&apos;Judah Schvimer&apos;, u&apos;email&apos;: u&apos;judah@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25942&quot; title=&quot;listCollections should not validate views if it isn&amp;#39;t returning them&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25942&quot;&gt;&lt;del&gt;SERVER-25942&lt;/del&gt;&lt;/a&gt; Don&apos;t validate views in listCollections unless they are being returned&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 079836dc8be3c89fb474c6f7c006154a626c6dac.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5053f4f67527df0d6ed92fe20fb660ab8e003e1d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5053f4f67527df0d6ed92fe20fb660ab8e003e1d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1388716" author="xgen-internal-githook" created="Tue, 20 Sep 2016 15:34:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Sam Rossi&apos;, u&apos;email&apos;: u&apos;sam.rossi@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25942&quot; title=&quot;listCollections should not validate views if it isn&amp;#39;t returning them&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25942&quot;&gt;&lt;del&gt;SERVER-25942&lt;/del&gt;&lt;/a&gt; Don&apos;t validate views in listCollections unless they are being returned&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/079836dc8be3c89fb474c6f7c006154a626c6dac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/079836dc8be3c89fb474c6f7c006154a626c6dac&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1375665" author="james.wahlin@10gen.com" created="Fri, 2 Sep 2016 15:03:06 +0000"  >&lt;p&gt;Our tentative plan to address is to skip loading view definitions (and therefore validating views) when listCollections is called with a &apos;type&apos; filter of &apos;collection&apos;. It is side-effect of the current implementation that this is occurring.&lt;/p&gt;

&lt;p&gt;If we decide that we do want to validate view definitions as part of initial sync, then it should be done explicitly after clone of the system.views collection and against the local copy.&lt;/p&gt;</comment>
                            <comment id="1375597" author="scotthernandez" created="Fri, 2 Sep 2016 14:21:44 +0000"  >&lt;p&gt;After a number of attempts (10 by default) the last failure is fatal.&lt;/p&gt;</comment>
                            <comment id="1375513" author="james.wahlin@10gen.com" created="Fri, 2 Sep 2016 12:43:57 +0000"  >&lt;p&gt;What is expected behavior currently for a replica member that exhausts initial sync restart attempts? Do we transition to RECOVERING (and stay there) or fassert? RECOVERING would give you an indication that something is wrong while allowing you to maintain quorum.&lt;/p&gt;</comment>
                            <comment id="1375473" author="schwerin" created="Fri, 2 Sep 2016 11:53:10 +0000"  >&lt;p&gt;If you cannot initial sync, and you&apos;ve lost your quorum, you cannot fix your view definitions because you have no primary. If you&apos;ve lost quorum because the majority of your voters have corruption, you would have to force reconfig your cluster to even let you alter the view definitions.&lt;/p&gt;</comment>
                            <comment id="1375349" author="kyle.suarez" created="Fri, 2 Sep 2016 03:33:47 +0000"  >&lt;p&gt;Currently, &lt;tt&gt;listCollections&lt;/tt&gt; fails if the ViewCatalog cannot be reloaded due to the presence of invalid views in &lt;tt&gt;system.views&lt;/tt&gt;. &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=geert.bosch&quot; class=&quot;user-hover&quot; rel=&quot;geert.bosch&quot;&gt;geert.bosch&lt;/a&gt; mentioned allowing &lt;tt&gt;listCollections&lt;/tt&gt; to succeed in the presence of invalid views, but to complain loudly with a warning. Is there a precedent for this in other commands? (For example, does &lt;tt&gt;validate&lt;/tt&gt; set {&lt;tt&gt;ok: 1&lt;/tt&gt;} if &lt;tt&gt;warnings&lt;/tt&gt; is set?)&lt;/p&gt;

&lt;p&gt;Is there a particular reason &lt;em&gt;why&lt;/em&gt; initial sync should still succeed in the presence of invalid views? Is there a downstream change that requires this? I would rather say that yes, initial sync fails until you remove the invalid views.&lt;/p&gt;</comment>
                            <comment id="1375283" author="scotthernandez" created="Fri, 2 Sep 2016 00:04:58 +0000"  >&lt;p&gt;Tess, is this different than &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25937&quot; title=&quot;Writing to system.views collection should not error when featureCompatibilityVersion is 3.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25937&quot;&gt;&lt;del&gt;SERVER-25937&lt;/del&gt;&lt;/a&gt;?&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="313581">SERVER-25937</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="313616">SERVER-25943</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="313108">SERVER-25890</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.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, 2 Sep 2016 00:04:58 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 20 weeks, 6 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-290</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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 20 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>james.wahlin@mongodb.com</customfieldvalue>
            <customfieldvalue>kyle.suarez@mongodb.com</customfieldvalue>
            <customfieldvalue>robert.guo@mongodb.com</customfieldvalue>
            <customfieldvalue>sam.rossi@mongodb.com</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjx3r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrcdxb:</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="1257">Integration 2016-09-19</customfieldvalue>
    <customfieldvalue id="1293">Integration 2016-10-10</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|hsel2v:</customfieldvalue>

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