<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:12:14 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-68971] explain_distinct.js fails when database doesn&apos;t exist</title>
                <link>https://jira.mongodb.org/browse/SERVER-68971</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This is the same issue as was fixed in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-68152&quot; title=&quot;explain_missing_collection.js fails when database doesn&amp;#39;t exist&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-68152&quot;&gt;&lt;del&gt;SERVER-68152&lt;/del&gt;&lt;/a&gt;, but for a different test.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2117458">SERVER-68971</key>
            <summary>explain_distinct.js fails when database doesn&apos;t exist</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="adi.zaimi@mongodb.com">Adi Zaimi</assignee>
                                    <reporter username="dave.rolsky@mongodb.com">Dave Rolsky</reporter>
                        <labels>
                            <label>sharding-nyc-subteam2</label>
                    </labels>
                <created>Thu, 18 Aug 2022 20:41:51 +0000</created>
                <updated>Sun, 29 Oct 2023 21:34:17 +0000</updated>
                            <resolved>Thu, 22 Sep 2022 05:53:44 +0000</resolved>
                                                    <fixVersion>6.2.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="4863142" author="vishnu.kaushik" created="Wed, 28 Sep 2022 20:06:21 +0000"  >&lt;p&gt;Wow it looks like the failing run is from &lt;a href=&quot;https://github.com/10gen/mongosync/blob/cbc51f6963eae22c5a2aaf38fe100107088ea0fa/resmokeconfig/suites/ctc_single_shard_reverse_replicator_jscore_passthrough.yml#L199&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;a suite that doesn&apos;t&lt;/a&gt; have it! All other suites seem to have it (I need to confirm this). Having the param &lt;a href=&quot;https://github.com/mongodb/mongo/blob/a6cb05b658ea5ce9a6e7c335339901dfd9ff0f65/buildscripts/resmokelib/testing/fixtures/shardedcluster.py#L163-L165&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;gets the cluster to execute the &lt;tt&gt;enableSharding&lt;/tt&gt; command&lt;/a&gt;, which I guess implicitly creates the  database.&lt;/p&gt;</comment>
                            <comment id="4863028" author="JIRAUSER1261874" created="Wed, 28 Sep 2022 19:35:15 +0000"  >&lt;p&gt;Discussed with Max, and there is a section in a yml file that allows the fixture to create/assign a db:&lt;br/&gt;
```&#160; &#160; &#160; &#160; enable_sharding:&lt;br/&gt;
&#160; &#160; &#160; &#160; &#160; - test&lt;br/&gt;
```&lt;br/&gt;
So either this is missing in some of the yml files in mongosync, or that parameter is not being parsed/applied correctly by mongosync fixture. Will look further into this.&lt;/p&gt;</comment>
                            <comment id="4852156" author="JIRAUSER1261874" created="Fri, 23 Sep 2022 20:00:25 +0000"  >&lt;p&gt;This test failure occurs apparently only for mongosync; I dont know where/how mongodb passthroughs create the db (or otherwise why is it not an issue there).&lt;br/&gt;
I think what you are suggesting could be a good approach.&lt;/p&gt;</comment>
                            <comment id="4852095" author="vishnu.kaushik" created="Fri, 23 Sep 2022 19:34:00 +0000"  >&lt;p&gt;There&apos;s another failing test &lt;tt&gt;explain_count.js&lt;/tt&gt; - see &lt;a href=&quot;https://evergreen.mongodb.com/lobster/build/216eae71e6a0256899e63df0d82d0c1a/all#bookmarks=0%2C2702%2C6739&amp;amp;l=1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;. If we could get a long term solution in &lt;tt&gt;mongos&lt;/tt&gt; that would be great! Alternatively maybe we can do something in our test infra on the mongosync side so that we create the database &lt;tt&gt;test&lt;/tt&gt; as one of the &lt;tt&gt;config -&amp;gt; shell_options -&amp;gt; eval&lt;/tt&gt; options in YAML, if you think that is better.&lt;/p&gt;</comment>
                            <comment id="4846881" author="xgen-internal-githook" created="Wed, 21 Sep 2022 23:00:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Adi Zaimi&apos;, &apos;email&apos;: &apos;adizaimi@yahoo.com&apos;, &apos;username&apos;: &apos;adizaimi&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-68971&quot; title=&quot;explain_distinct.js fails when database doesn&amp;#39;t exist&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-68971&quot;&gt;&lt;del&gt;SERVER-68971&lt;/del&gt;&lt;/a&gt;: Create dummy collection so db can exist for explain cmd (for sharded testing)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f63252fbd6cbb7ef0ac1375542a636bb017dec72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f63252fbd6cbb7ef0ac1375542a636bb017dec72&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4827255" author="JIRAUSER1261874" created="Wed, 14 Sep 2022 19:39:20 +0000"  >&lt;p&gt;The change in &lt;a href=&quot;https://github.com/10gen/mongo/pull/7563&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo/pull/7563&lt;/a&gt; creates a dummy collection which in turns creates the db which explain needs. Note that I tested that this fixes the test by implicitly dropping the db at the beginning of the test, to make sure that patch will succeed in c2c tests.&lt;/p&gt;</comment>
                            <comment id="4827186" author="JIRAUSER1261874" created="Wed, 14 Sep 2022 19:23:25 +0000"  >&lt;p&gt;Note that the error does not occur if I run a sharded test manually&#8211;the existing explain_distinct.js does not result in an error:&lt;br/&gt;
&#160; &#160;&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;python3 &#160;./build/install/bin/resmoke.py run jstests/core/explain_distinct.js --suites=sharding_jscore_passthrough&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;however if I modify explain_distinct.js to drop the db at the very beginning of the test, it does result in an error.&lt;/p&gt;

&lt;p&gt;I dont know how this test interacts with Cluster 2 Cluster (c2c) testing, but it might be the reason why we don&apos;t see this test failing in regular (non c2c) sharded testing &#8211; the db already exists in regular testing even when explain_distinct.js is run first.&lt;/p&gt;</comment>
                            <comment id="4827147" author="JIRAUSER1261874" created="Wed, 14 Sep 2022 19:12:41 +0000"  >&lt;p&gt;I&apos;m fixing this test by creating a dummy collection (which will in turn create the underlying DB), that way even when this test is run first it will not fail.&#160;&lt;/p&gt;

&lt;p&gt;Note that this is a difference in how mongod and mongos behaves with the explain command when the db does not exist, and that may be something that we will want to change&#8211;keeping &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-69416&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-69416&lt;/a&gt; to track that.&lt;/p&gt;</comment>
                            <comment id="4779646" author="max.hirschhorn@10gen.com" created="Fri, 26 Aug 2022 15:08:25 +0000"  >&lt;blockquote&gt;
&lt;p&gt;Thanks for the quick fix! Is there a longer term solution we can implement? Because the same thing seems to be happening with explain_distinct.js here&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-68152?focusedCommentId=4744976&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-4744976&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-68152?focusedCommentId=4744976&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-4744976&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;As part of this investigation it would be good to double check if there&apos;s something we can do for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-68152&quot; title=&quot;explain_missing_collection.js fails when database doesn&amp;#39;t exist&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-68152&quot;&gt;&lt;del&gt;SERVER-68152&lt;/del&gt;&lt;/a&gt; as well like Vishnu had asked about.&lt;/p&gt;</comment>
                            <comment id="4777803" author="xgen-internal-githook" created="Thu, 25 Aug 2022 20:10:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dave Rolsky&apos;, &apos;email&apos;: &apos;autarch@urth.org&apos;, &apos;username&apos;: &apos;autarch&apos;}
&lt;p&gt;Message: REP-1303 Exclude explain_distinct.js from all CTC suites (#823)&lt;/p&gt;


&lt;p&gt;This is failing because of a known issue. See&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-68971&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-68971&lt;/a&gt; for the issue and&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/REP-1215&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/REP-1215&lt;/a&gt; for the ticket to re-enable this&lt;br/&gt;
test.&lt;/p&gt;

&lt;p&gt;This PR also adds a small CLI tool to help us find which suites include a&lt;br/&gt;
given test. This makes it easier to make sure it&apos;s being excluded everywhere&lt;br/&gt;
it needs to be.&lt;br/&gt;
Branch: main&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongosync/commit/a56778f6364675c504d41c24389ef54cd582b591&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongosync/commit/a56778f6364675c504d41c24389ef54cd582b591&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>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2094683">SERVER-68152</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_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, 19 Aug 2022 14:40:28 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 19 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, 19 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>adi.zaimi@mongodb.com</customfieldvalue>
            <customfieldvalue>dave.rolsky@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
            <customfieldvalue>vishnu.kaushik@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i16y0n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0ppso:</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_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</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|i16k5z:</customfieldvalue>

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