<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:26:35 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-74131] Multiplanning together with subplanning causes server crash in mapReduce queries</title>
                <link>https://jira.mongodb.org/browse/SERVER-74131</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;While investigating BF-27079 I managed to recreate a server crash, which was detected while running mongosync suite.&lt;/p&gt;

&lt;p&gt;The issue it that multiple multiplanners are sharing the same javascript execution context while performing the subplanning. Currently the implementation is injecting the &#8216;emit&#8217; function only once to the javascript environment. This is causing issues, when that multiplanner is deallocated and another multiplanner starts executing, as emit function is not reinjected, causing heap-use-after-free issue.&lt;/p&gt;

&lt;p&gt;Reinjecting the emit function on every evaluate call of the ExpressionInternalJsEmit will fix the issue&lt;/p&gt;</description>
                <environment></environment>
        <key id="2267495">SERVER-74131</key>
            <summary>Multiplanning together with subplanning causes server crash in mapReduce queries</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="denis.grebennicov@mongodb.com">Denis Grebennicov</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Feb 2023 09:39:33 +0000</created>
                <updated>Sun, 29 Oct 2023 21:26:06 +0000</updated>
                            <resolved>Wed, 5 Apr 2023 12:54:48 +0000</resolved>
                                    <version>6.0.5</version>
                    <version>6.3.0-rc1</version>
                                    <fixVersion>7.0.0-rc0</fixVersion>
                    <fixVersion>4.4.20</fixVersion>
                    <fixVersion>5.0.16</fixVersion>
                    <fixVersion>6.0.6</fixVersion>
                    <fixVersion>6.3.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>12</watches>
                                                                                                                <comments>
                            <comment id="5351939" author="xgen-internal-githook" created="Mon, 17 Apr 2023 12:07:07 +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-74131&quot; title=&quot;Multiplanning together with subplanning causes server crash in mapReduce queries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74131&quot;&gt;&lt;del&gt;SERVER-74131&lt;/del&gt;&lt;/a&gt; Inject emit function on every call to ExpressionInternalJsEmit::evaluate()&lt;br/&gt;
Branch: v6.3&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ea3d8e0bf18b4db3ca37a6ace3e45893a494a9ba&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ea3d8e0bf18b4db3ca37a6ace3e45893a494a9ba&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5308408" author="xgen-internal-githook" created="Wed, 29 Mar 2023 08:50:11 +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-74131&quot; title=&quot;Multiplanning together with subplanning causes server crash in mapReduce queries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74131&quot;&gt;&lt;del&gt;SERVER-74131&lt;/del&gt;&lt;/a&gt; Inject emit function on every call to ExpressionInternalJsEmit::evaluate()&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/460fbeac66a4d1138c664fb1bf040714d0062aba&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/460fbeac66a4d1138c664fb1bf040714d0062aba&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5306898" author="xgen-internal-githook" created="Tue, 28 Mar 2023 18:14: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-74131&quot; title=&quot;Multiplanning together with subplanning causes server crash in mapReduce queries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74131&quot;&gt;&lt;del&gt;SERVER-74131&lt;/del&gt;&lt;/a&gt; Inject emit function on every call to ExpressionInternalJsEmit::evaluate()&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6dbb000ab3ce29b76cc145cfa6ac0c93eee14961&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6dbb000ab3ce29b76cc145cfa6ac0c93eee14961&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5306419" author="xgen-internal-githook" created="Tue, 28 Mar 2023 16:09:15 +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-74131&quot; title=&quot;Multiplanning together with subplanning causes server crash in mapReduce queries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74131&quot;&gt;&lt;del&gt;SERVER-74131&lt;/del&gt;&lt;/a&gt; Inject emit function on every call to ExpressionInternalJsEmit::evaluate()&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/26346aac14188b0ed19799eaed99cbafbc51fd99&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/26346aac14188b0ed19799eaed99cbafbc51fd99&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5305447" author="xgen-internal-githook" created="Tue, 28 Mar 2023 10:55:15 +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-74131&quot; title=&quot;Multiplanning together with subplanning causes server crash in mapReduce queries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74131&quot;&gt;&lt;del&gt;SERVER-74131&lt;/del&gt;&lt;/a&gt; Inject emit function on every call to ExpressionInternalJsEmit::evaluate()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e61c2fa72d3df294b8497445a1ccfca383afc788&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e61c2fa72d3df294b8497445a1ccfca383afc788&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5226022" author="david.storch" created="Thu, 23 Feb 2023 18:14:15 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=denis.grebennicov%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;denis.grebennicov@mongodb.com&quot;&gt;denis.grebennicov@mongodb.com&lt;/a&gt; I&apos;ve scheduled this into the active sprint and requested backport to 6.0 and 6.3. Is this a regression in 6.0 that doesn&apos;t affect older branches?&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">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2295247">SERVER-75159</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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25376"><![CDATA[v6.3]]></customfieldvalue>
    <customfieldvalue key="23470"><![CDATA[v6.0]]></customfieldvalue>
    <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    <customfieldvalue key="18953"><![CDATA[v4.4]]></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, 23 Feb 2023 18:14:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        42 weeks, 2 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>
                            42 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>104.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>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>denis.grebennicov@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1wibr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1exo8:</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="6990">QE 2023-03-06</customfieldvalue>
    <customfieldvalue id="6992">QE 2023-03-20</customfieldvalue>
    <customfieldvalue id="6994">QE 2023-04-03</customfieldvalue>
    <customfieldvalue id="6996">QE 2023-04-17</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|i1w4h3:</customfieldvalue>

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