<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:52:02 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-61281] Fix underflow when accounting for Document size in query memory tracker</title>
                <link>https://jira.mongodb.org/browse/SERVER-61281</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description></description>
                <environment></environment>
        <key id="1919133">SERVER-61281</key>
            <summary>Fix underflow when accounting for Document size in query memory tracker</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="nikita.lapkov@mongodb.com">Nikita Lapkov</assignee>
                                    <reporter username="nikita.lapkov@mongodb.com">Nikita Lapkov</reporter>
                        <labels>
                            <label>query-director-triage</label>
                    </labels>
                <created>Fri, 5 Nov 2021 15:08:59 +0000</created>
                <updated>Sun, 29 Oct 2023 21:46:25 +0000</updated>
                            <resolved>Thu, 11 Aug 2022 08:49:10 +0000</resolved>
                                                    <fixVersion>6.0.2</fixVersion>
                    <fixVersion>6.1.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>14</watches>
                                                                                                                <comments>
                            <comment id="4743482" author="JIRAUSER1255444" created="Thu, 11 Aug 2022 08:49:42 +0000"  >&lt;p&gt;It seems that there were no BFs at least for the moment.&lt;/p&gt;</comment>
                            <comment id="4727307" author="xgen-internal-githook" created="Wed, 3 Aug 2022 22:22:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kyle Suarez&apos;, &apos;email&apos;: &apos;kyle.suarez@mongodb.com&apos;, &apos;username&apos;: &apos;ksuarz&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-61281&quot; title=&quot;Fix underflow when accounting for Document size in query memory tracker&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-61281&quot;&gt;&lt;del&gt;SERVER-61281&lt;/del&gt;&lt;/a&gt; Use memoization for Document::getApproximateSize&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 112b848eada25cb0161a229592afec5030079d6b.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a36fb0fc2ff3c7cd0784bc9a59721fd34961a5ef&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a36fb0fc2ff3c7cd0784bc9a59721fd34961a5ef&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4521850" author="JIRAUSER1259232" created="Tue, 3 May 2022 07:57:27 +0000"  >&lt;p&gt;One proposal to help tracking when undercounting occurs is to add logging (with exponential backing off if needed) in place of the two original tasserts listed above.&#160;&lt;/p&gt;</comment>
                            <comment id="4519676" author="JIRAUSER1259232" created="Mon, 2 May 2022 13:50:50 +0000"  >&lt;p&gt;Going to clean up the tassert in the code as we are not working on this yet.&lt;/p&gt;

&lt;p&gt;These tasserts are taken out as their behaving correctly depends on this bug being fixed.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/10gen/mongo/blob/23cc17b8175a9e4b5e3a2eae8bc317be556cf026/src/mongo/db/pipeline/memory_usage_tracker.h#L59&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo/blob/23cc17b8175a9e4b5e3a2eae8bc317be556cf026/src/mongo/db/pipeline/memory_usage_tracker.h#L59&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo/blob/23cc17b8175a9e4b5e3a2eae8bc317be556cf026/src/mongo/db/pipeline/memory_usage_tracker.h#L157&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo/blob/23cc17b8175a9e4b5e3a2eae8bc317be556cf026/src/mongo/db/pipeline/memory_usage_tracker.h#L157&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;Subsequently this test is also taken out:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/10gen/mongo/blob/b5f986b43c70498375dc481aad349c7ceb400175/src/mongo/db/pipeline/memory_usage_tracker_test.cpp#L102&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo/blob/b5f986b43c70498375dc481aad349c7ceb400175/src/mongo/db/pipeline/memory_usage_tracker_test.cpp#L102&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once the problem is fixed and there is no undercounting of memory usage, both tasserts as well as the test could be restored.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="4506800" author="JIRAUSER1257467" created="Tue, 26 Apr 2022 15:10:11 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=steve.la%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;steve.la@mongodb.com&quot;&gt;steve.la@mongodb.com&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bernard.gorman%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;bernard.gorman@mongodb.com&quot;&gt;bernard.gorman@mongodb.com&lt;/a&gt; passing this to Director Triage to find a team to work on it&lt;/p&gt;</comment>
                            <comment id="4477201" author="JIRAUSER1257467" created="Tue, 12 Apr 2022 15:06:52 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=steve.la%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;steve.la@mongodb.com&quot;&gt;steve.la@mongodb.com&lt;/a&gt; would someone in NA have capacity to take this after 6.0rc0?&lt;/p&gt;</comment>
                            <comment id="4460960" author="kyle.suarez" created="Wed, 6 Apr 2022 13:35:03 +0000"  >&lt;p&gt;The fix was only meant to be temporary, and I would rather not have this sit in the backlog without attention. I&apos;m flagging this ticket for re-triage and discussion of the scheduling priority.&lt;/p&gt;</comment>
                            <comment id="4460563" author="JIRAUSER1259232" created="Wed, 6 Apr 2022 11:08:28 +0000"  >&lt;p&gt;Reducing the severity as we have a safety measure checked in. Moving to backlog.&lt;/p&gt;</comment>
                            <comment id="4280580" author="ian.boros" created="Fri, 7 Jan 2022 15:58:31 +0000"  >&lt;p&gt;For those curious, &lt;a href=&quot;https://github.com/mongodb/mongo/commit/c87e167ecf9616be6a5878411b87faade3f2ac31&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this&lt;/a&gt; was the temporary fix. &lt;/p&gt;</comment>
                            <comment id="4273629" author="JIRAUSER1255444" created="Tue, 4 Jan 2022 14:03:35 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rushan.chen&quot; class=&quot;user-hover&quot; rel=&quot;rushan.chen&quot;&gt;rushan.chen&lt;/a&gt;&#160;feel free to re-assign this back to me or keep it if you would like to investigate the issue yourself.&lt;/p&gt;</comment>
                            <comment id="4250051" author="kyle.suarez" created="Wed, 15 Dec 2021 15:01:49 +0000"  >&lt;p&gt;Sending this ticket to &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rushan.chen&quot; class=&quot;user-hover&quot; rel=&quot;rushan.chen&quot;&gt;rushan.chen&lt;/a&gt;, because Nikita is on holiday. I&apos;m also bumping the severity to P2 - Critical because the related failure is occurring many times.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10720">
                    <name>Cloners</name>
                                                                <inwardlinks description="is cloned by">
                                        <issuelink>
            <issuekey id="2141173">SERVER-69821</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1968257">SERVER-62856</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1719596">SERVER-57011</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1956677">SERVER-62283</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2023020">SERVER-65473</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2099245">SERVER-68297</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2140398">SERVER-69793</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2141781">SERVER-69840</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2412380">SERVER-79859</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1952136">SERVER-62094</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2101315">SERVER-68381</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>11.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.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>Fri, 5 Nov 2021 17:32:56 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 25 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, 25 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>160.0</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>ian.boros@mongodb.com</customfieldvalue>
            <customfieldvalue>kyle.suarez@mongodb.com</customfieldvalue>
            <customfieldvalue>nikita.lapkov@mongodb.com</customfieldvalue>
            <customfieldvalue>rushan.chen@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i09a33:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzsqmn:</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="5271">QE 2021-11-15</customfieldvalue>
    <customfieldvalue id="5273">QE 2021-11-29</customfieldvalue>
    <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>

                        </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|i08w8f:</customfieldvalue>

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