<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:07:13 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-44869] Add query knob to control memory limit for $push and $addToSet</title>
                <link>https://jira.mongodb.org/browse/SERVER-44869</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44174&quot; title=&quot;$push and $addToSet should restrict memory usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44174&quot;&gt;&lt;del&gt;SERVER-44174&lt;/del&gt;&lt;/a&gt; we added a fixed 100MB limit for these accumulators. But when thinking about backporting we got nervous that this may break some applications. We should add a knob to configure this just in case this happens, but still default the limit to 100MB.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1027766">SERVER-44869</key>
            <summary>Add query knob to control memory limit for $push and $addToSet</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="charlie.swanson@mongodb.com">Charlie Swanson</assignee>
                                    <reporter username="charlie.swanson@mongodb.com">Charlie Swanson</reporter>
                        <labels>
                            <label>qopt-team</label>
                    </labels>
                <created>Wed, 27 Nov 2019 15:45:48 +0000</created>
                <updated>Sun, 29 Oct 2023 22:14:32 +0000</updated>
                            <resolved>Tue, 3 Dec 2019 17:48:41 +0000</resolved>
                                                    <fixVersion>3.6.17</fixVersion>
                    <fixVersion>4.2.3</fixVersion>
                    <fixVersion>4.0.14</fixVersion>
                    <fixVersion>4.3.3</fixVersion>
                                    <component>Aggregation Framework</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2731669" author="daniel.hatcher" created="Wed, 15 Jan 2020 15:36:22 +0000"  >&lt;p&gt;This patch adds  two new server parameters: internalQueryMaxPushBytes and internalQueryMaxAddToSetBytes. Both default to 100MB (100 * 1024 * 1024) and can be used to control the amount of memory we&apos;re willing to accumulate in a single array when using $push or $addToSet in aggregation.&lt;/p&gt;</comment>
                            <comment id="2597410" author="xgen-internal-githook" created="Tue, 10 Dec 2019 20:08:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;charlie.swanson@mongodb.com&apos;, &apos;name&apos;: &apos;Charlie Swanson&apos;, &apos;username&apos;: &apos;cswanson310&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44869&quot; title=&quot;Add query knob to control memory limit for $push and $addToSet&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44869&quot;&gt;&lt;del&gt;SERVER-44869&lt;/del&gt;&lt;/a&gt; Add query knobs for $push and $addToSet memory limits&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f7d0d2f3d6fe9e4c472bd1d8893c8b6dc96881b6)&lt;br/&gt;
(cherry picked from commit f69a356120ae8edd6fec5ab6efaebccc1427dd28)&lt;br/&gt;
(cherry picked from commit 9cb1bd53f83c84e1e4e0b19a8572d09a0d5c137f)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a33058d14dbd2c9325d4875b53a5b9664e0e9845&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a33058d14dbd2c9325d4875b53a5b9664e0e9845&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2594644" author="xgen-internal-githook" created="Mon, 9 Dec 2019 19:56:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Charlie Swanson&apos;, &apos;username&apos;: &apos;cswanson310&apos;, &apos;email&apos;: &apos;charlie.swanson@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44869&quot; title=&quot;Add query knob to control memory limit for $push and $addToSet&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44869&quot;&gt;&lt;del&gt;SERVER-44869&lt;/del&gt;&lt;/a&gt; Add query knobs for $push and $addToSet memory limits&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f7d0d2f3d6fe9e4c472bd1d8893c8b6dc96881b6)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/81ddc335f9129868bc703831719dddc5bb1c29c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/81ddc335f9129868bc703831719dddc5bb1c29c2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2594517" author="xgen-internal-githook" created="Mon, 9 Dec 2019 19:18:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Charlie Swanson&apos;, &apos;username&apos;: &apos;cswanson310&apos;, &apos;email&apos;: &apos;charlie.swanson@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44869&quot; title=&quot;Add query knob to control memory limit for $push and $addToSet&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44869&quot;&gt;&lt;del&gt;SERVER-44869&lt;/del&gt;&lt;/a&gt; Add query knobs for $push and $addToSet memory limits&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f7d0d2f3d6fe9e4c472bd1d8893c8b6dc96881b6)&lt;br/&gt;
(cherry picked from commit f69a356120ae8edd6fec5ab6efaebccc1427dd28)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9cb1bd53f83c84e1e4e0b19a8572d09a0d5c137f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9cb1bd53f83c84e1e4e0b19a8572d09a0d5c137f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2580288" author="xgen-internal-githook" created="Tue, 3 Dec 2019 17:39:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;charlie.swanson@mongodb.com&apos;, &apos;name&apos;: &apos;Charlie Swanson&apos;, &apos;username&apos;: &apos;cswanson310&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44869&quot; title=&quot;Add query knob to control memory limit for $push and $addToSet&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44869&quot;&gt;&lt;del&gt;SERVER-44869&lt;/del&gt;&lt;/a&gt; Add query knobs for $push and $addToSet memory limits&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/89ed89b70cd57a504d0b337013d01d1e1a1e3ad2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/89ed89b70cd57a504d0b337013d01d1e1a1e3ad2&lt;/a&gt;&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>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2243579">SERVER-73315</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="977115">SERVER-44174</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>5.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="16775"><![CDATA[v4.2]]></customfieldvalue>
    <customfieldvalue key="15640"><![CDATA[v4.0]]></customfieldvalue>
    <customfieldvalue key="15141"><![CDATA[v3.6]]></customfieldvalue>
    <customfieldvalue key="14340"><![CDATA[v3.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_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000no43aQAA]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 3 Dec 2019 17:39:57 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 4 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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>This patch adds  two new server parameters: internalQueryMaxPushBytes and internalQueryMaxAddToSetBytes. Both default to 100MB (100 * 1024 * 1024) and can be used to control the amount of memory we&amp;#39;re willing to accumulate in a single array when using $push or $addToSet in aggregation.&lt;br/&gt;
&amp;nbsp;&lt;br/&gt;
We plan to backport these knobs to older versions all the way back to 3.4 since this was encountered in a support case. Let me know if this will be a problem.</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[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>
                            4 years, 4 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>charlie.swanson@mongodb.com</customfieldvalue>
            <customfieldvalue>daniel.hatcher@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|hw6mjb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvuv7j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="3286">Query 2019-12-02</customfieldvalue>
    <customfieldvalue id="3287">Query 2019-12-16</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16943"><![CDATA[Cloud]]></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|hw68sn:</customfieldvalue>

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