<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:05:21 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-66418] Bad projection created during dependency analysis due to string order assumption</title>
                <link>https://jira.mongodb.org/browse/SERVER-66418</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If there&#8217;s not a projection at the front of a pipeline during planning, we&apos;ll try to create one to push down by doing dependency analysis on the pipeline, then constructing a projection from the results. The &lt;a href=&quot;https://github.com/10gen/mongo/blob/9659df2d74bcb2caf56d7c6444adb8f3c82ea14a/src/mongo/db/pipeline/dependencies.cpp#L40-L87&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;logic&lt;/a&gt; for converting the dependency analysis results to a projection spec relies on set iterators going in lexicographic order so that a string is always directly before all of the fields it prefixes.&lt;/p&gt;

&lt;p&gt;That is true in some cases. If the pipeline has dependencies on &#8220;a.b&#8221; and &#8220;a.b.c&#8221;, then we process the strings in that order and we create a projection indicating that &#8220;a.b&#8221; should be included.&lt;/p&gt;

&lt;p&gt;However, if the pipeline has dependencies on &#8220;a.b&#8221;, &#8220;a.b.c&#8221;, and &#8220;a.b-d&#8221;, then the order we process the fields in is &#8220;a.b&#8221;, &#8220;a.b-d&#8221;, &#8220;a.b.c&#8221;. As a result, we try to create a projection indicating that all three fields should be included. This fails with a path collision error.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2045167">SERVER-66418</key>
            <summary>Bad projection created during dependency analysis due to string order assumption</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="steve.tarzia@mongodb.com">Steve Tarzia</assignee>
                                    <reporter username="matt.boros@mongodb.com">Matt Boros</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 May 2022 19:38:38 +0000</created>
                <updated>Sun, 29 Oct 2023 21:38:19 +0000</updated>
                            <resolved>Fri, 17 Jun 2022 15:39:21 +0000</resolved>
                                    <version>5.0.7</version>
                    <version>6.0.0-rc6</version>
                    <version>6.1.0-rc0</version>
                                    <fixVersion>5.0.10</fixVersion>
                    <fixVersion>4.4.16</fixVersion>
                    <fixVersion>4.2.22</fixVersion>
                    <fixVersion>6.0.0-rc11</fixVersion>
                    <fixVersion>6.1.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>17</watches>
                                                                                                                <comments>
                            <comment id="4638244" author="xgen-internal-githook" created="Fri, 24 Jun 2022 14:46:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Steve Tarzia&apos;, &apos;email&apos;: &apos;steve.tarzia@mongodb.com&apos;, &apos;username&apos;: &apos;starzia&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-66418&quot; title=&quot;Bad projection created during dependency analysis due to string order assumption&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-66418&quot;&gt;&lt;del&gt;SERVER-66418&lt;/del&gt;&lt;/a&gt; fix bug in projection created during dependency analysis&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/20ee02b3ba6a0d8a120eb4fdc947c92d71fd66bd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/20ee02b3ba6a0d8a120eb4fdc947c92d71fd66bd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4636968" author="xgen-internal-githook" created="Thu, 23 Jun 2022 22:46:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Steve Tarzia&apos;, &apos;email&apos;: &apos;steve.tarzia@mongodb.com&apos;, &apos;username&apos;: &apos;starzia&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-66418&quot; title=&quot;Bad projection created during dependency analysis due to string order assumption&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-66418&quot;&gt;&lt;del&gt;SERVER-66418&lt;/del&gt;&lt;/a&gt; fix bug in projection created during dependency analysis&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/09546e0661b4730bd78bb64b330fd8f3ef155c25&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/09546e0661b4730bd78bb64b330fd8f3ef155c25&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4636951" author="xgen-internal-githook" created="Thu, 23 Jun 2022 22:32:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Steve Tarzia&apos;, &apos;email&apos;: &apos;steve.tarzia@mongodb.com&apos;, &apos;username&apos;: &apos;starzia&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-66418&quot; title=&quot;Bad projection created during dependency analysis due to string order assumption&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-66418&quot;&gt;&lt;del&gt;SERVER-66418&lt;/del&gt;&lt;/a&gt; fix bug in projection created during dependency analysis&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bd7423724f1cd2983ffa177e2ba538859ae4ff63&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bd7423724f1cd2983ffa177e2ba538859ae4ff63&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4624244" author="xgen-internal-githook" created="Fri, 17 Jun 2022 16:31:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Steve Tarzia&apos;, &apos;email&apos;: &apos;steve.tarzia@mongodb.com&apos;, &apos;username&apos;: &apos;starzia&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-66418&quot; title=&quot;Bad projection created during dependency analysis due to string order assumption&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-66418&quot;&gt;&lt;del&gt;SERVER-66418&lt;/del&gt;&lt;/a&gt; fix bug in projection created during dependency analysis&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b7eb1cd26e0b63400d8a34c63a5fcfa7f1c2890e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b7eb1cd26e0b63400d8a34c63a5fcfa7f1c2890e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4624012" author="xgen-internal-githook" created="Fri, 17 Jun 2022 15:34:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Steve Tarzia&apos;, &apos;email&apos;: &apos;steve.tarzia@mongodb.com&apos;, &apos;username&apos;: &apos;starzia&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-66418&quot; title=&quot;Bad projection created during dependency analysis due to string order assumption&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-66418&quot;&gt;&lt;del&gt;SERVER-66418&lt;/del&gt;&lt;/a&gt; fix bug in projection created during dependency analysis&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/040ac37b03e9325cdc1de6dbae76172e0bb4a63a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/040ac37b03e9325cdc1de6dbae76172e0bb4a63a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4559284" author="JIRAUSER1257467" created="Thu, 19 May 2022 14:04:04 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=james.wahlin%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;james.wahlin@mongodb.com&quot;&gt;james.wahlin@mongodb.com&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jacob.evans%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;jacob.evans@mongodb.com&quot;&gt;jacob.evans@mongodb.com&lt;/a&gt; would someone on your team have capacity to work on this one?&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="2068273">SERVER-67264</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2073522">SERVER-67416</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23470"><![CDATA[v6.0]]></customfieldvalue>
    <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    <customfieldvalue key="16775"><![CDATA[v4.2]]></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>Thu, 12 May 2022 09:54:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 32 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 32 weeks, 5 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>ana.meza@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>matt.boros@mongodb.com</customfieldvalue>
            <customfieldvalue>steve.tarzia@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0ulvb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0dim8:</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="5897">QO 2022-06-13</customfieldvalue>
    <customfieldvalue id="5898">QE 2022-06-27</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|i0u80n:</customfieldvalue>

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