<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:52:32 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-61485] Wrong SBE plan reported by explain() for rejected plans</title>
                <link>https://jira.mongodb.org/browse/SERVER-61485</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description></description>
                <environment></environment>
        <key id="1925347">SERVER-61485</key>
            <summary>Wrong SBE plan reported by explain() for rejected plans</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="13201">Fixed</resolution>
                                        <assignee username="denis.grebennicov@mongodb.com">Denis Grebennicov</assignee>
                                    <reporter username="irina.yatsenko@mongodb.com">Irina Yatsenko</reporter>
                        <labels>
                            <label>query-director-triage</label>
                    </labels>
                <created>Mon, 15 Nov 2021 15:39:53 +0000</created>
                <updated>Sun, 29 Oct 2023 21:46:02 +0000</updated>
                            <resolved>Thu, 5 May 2022 10:27:41 +0000</resolved>
                                                    <fixVersion>6.0.0-rc5</fixVersion>
                    <fixVersion>6.1.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="4527980" author="xgen-internal-githook" created="Thu, 5 May 2022 10:26:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Denis Grebennicov&apos;, &apos;email&apos;: &apos;denis.grebennicov@mongodb.com&apos;, &apos;username&apos;: &apos;denis631&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-61485&quot; title=&quot;Wrong SBE plan reported by explain() for rejected plans&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-61485&quot;&gt;&lt;del&gt;SERVER-61485&lt;/del&gt;&lt;/a&gt; Wrong SBE plan reported by explain() for rejected plans&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/172385698678f8c9fb23f76ae028a446bd4c14b5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/172385698678f8c9fb23f76ae028a446bd4c14b5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4526724" author="xgen-internal-githook" created="Wed, 4 May 2022 19:25:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Denis Grebennicov&apos;, &apos;email&apos;: &apos;denis.grebennicov@mongodb.com&apos;, &apos;username&apos;: &apos;denis631&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-61485&quot; title=&quot;Wrong SBE plan reported by explain() for rejected plans&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-61485&quot;&gt;&lt;del&gt;SERVER-61485&lt;/del&gt;&lt;/a&gt; Wrong SBE plan reported by explain() for rejected plans&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fc01ed79b88ee17038b72fb2808e8eb9c219fa20&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fc01ed79b88ee17038b72fb2808e8eb9c219fa20&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>12.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23470"><![CDATA[v6.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, 29 Apr 2022 16:15:47 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 39 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_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, 39 weeks, 6 days ago
                        </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>denis.grebennicov@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>irina.yatsenko@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0acdz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr1phi:</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="5275">QE 2021-12-13</customfieldvalue>
    <customfieldvalue id="5277">QE 2021-12-27</customfieldvalue>
    <customfieldvalue id="5279">QE 2022-01-10</customfieldvalue>
    <customfieldvalue id="5281">QE 2022-04-04</customfieldvalue>
    <customfieldvalue id="5283">QE 2022-02-07</customfieldvalue>
    <customfieldvalue id="5285">QE 2022-02-21</customfieldvalue>
    <customfieldvalue id="5287">QE 2022-03-07</customfieldvalue>
    <customfieldvalue id="5289">QE 2022-03-21</customfieldvalue>
    <customfieldvalue id="5810">QE 2022-01-24</customfieldvalue>
    <customfieldvalue id="5888">QE 2022-04-18</customfieldvalue>
    <customfieldvalue id="5890">QE 2022-05-02</customfieldvalue>
    <customfieldvalue id="5892">QE 2022-05-16</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Have a collection with three indexes: {a:1}, {b:1}, {a:1, b:1}. Run explain for a query that would consider all three indexes, e.g. find({a:7, b:9}).&lt;/p&gt;

&lt;p&gt;Result: the output for rejectedPlans would look similar to the below one. Notice, that the IXSCAN stage refers to index a_1 while&#160;slotBasedPlan.stages refers to a_1_b_1 (which is the winning plan in this case).&lt;/p&gt;

&lt;p&gt;&quot;rejectedPlans&quot; : [&lt;br/&gt;
 {&lt;br/&gt;
 &quot;queryPlan&quot; : {&lt;br/&gt;
 &quot;stage&quot; : &quot;FETCH&quot;,&lt;br/&gt;
 &quot;planNodeId&quot; : 2,&lt;br/&gt;
 &quot;filter&quot; : {&lt;br/&gt;
 &quot;b&quot; : &lt;/p&gt;
{
 &quot;$eq&quot; : 42
 }
&lt;p&gt; },&lt;br/&gt;
 &quot;inputStage&quot; : {&lt;br/&gt;
 &quot;stage&quot; : &quot;IXSCAN&quot;,&lt;br/&gt;
 &quot;planNodeId&quot; : 1,&lt;br/&gt;
 &quot;keyPattern&quot; : &lt;/p&gt;
{
 &quot;a&quot; : 1
 }
&lt;p&gt;,&lt;br/&gt;
 &quot;indexName&quot; : &quot;a_1&quot;,&lt;br/&gt;
 &quot;isMultiKey&quot; : false,&lt;br/&gt;
 &quot;multiKeyPaths&quot; : &lt;/p&gt;
{
 &quot;a&quot; : [ ]
 }
&lt;p&gt;,&lt;br/&gt;
 &quot;isUnique&quot; : false,&lt;br/&gt;
 &quot;isSparse&quot; : false,&lt;br/&gt;
 &quot;isPartial&quot; : false,&lt;br/&gt;
 &quot;indexVersion&quot; : 2,&lt;br/&gt;
 &quot;direction&quot; : &quot;forward&quot;,&lt;br/&gt;
 &quot;indexBounds&quot; : &lt;/p&gt;
{
 &quot;a&quot; : [
 &quot;[7.0, 7.0]&quot;
 ]
 }
&lt;p&gt; }&lt;br/&gt;
 },&lt;br/&gt;
 &quot;slotBasedPlan&quot; : &lt;/p&gt;
{
 &quot;slots&quot; : &quot;$$RESULT=s12 $$RID=s13 env: \{ s2 = Nothing (SEARCH_META), s1 = TimeZoneDatabase(Africa/Monrovia...Mexico/BajaSur) (timeZoneDB), s3 = 1636757269766 (NOW) }
&lt;p&gt;&quot;,&lt;br/&gt;
 &quot;stages&quot; : &quot;&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; nlj [] &lt;span class=&quot;error&quot;&gt;&amp;#91;s8, s4, s5, s6, s7&amp;#93;&lt;/span&gt; \n left \n &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; nlj &lt;span class=&quot;error&quot;&gt;&amp;#91;s5, s7&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;s9, s10&amp;#93;&lt;/span&gt; \n left \n &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; project &lt;span class=&quot;error&quot;&gt;&amp;#91;s5 = \&amp;quot;a_1_b_1\&amp;quot;, s7 = \{\&amp;quot;a\&amp;quot; : 1, \&amp;quot;b\&amp;quot; : 1}, s9 = KS(2B0E2B540104), s10 = KS(2B0E2B54FE04)&amp;#93;&lt;/span&gt; \n &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; limit 1 \n &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; coscan \n right \n &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; project &lt;span class=&quot;error&quot;&gt;&amp;#91;s4 = s11&amp;#93;&lt;/span&gt; \n &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; ixseek s9 s10 s6 s8 s11 [] @\&quot;9f965641-651e-48d6-859b-e7b494a16b5f\&quot; @\&quot;a_1_b_1\&quot; true \n \n \n right \n &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; limit 1 \n &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; seek s8 s12 s13 s4 s5 s6 s7 [] @\&quot;9f965641-651e-48d6-859b-e7b494a16b5f\&quot; true false \n \n&quot;&lt;/p&gt;</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|i09yjb:</customfieldvalue>

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