<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:40:49 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-57037] Improve precision of operator counters</title>
                <link>https://jira.mongodb.org/browse/SERVER-57037</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-56422&quot; title=&quot;Collect and expose usage statistics for aggregate expressions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-56422&quot;&gt;&lt;del&gt;SERVER-56422&lt;/del&gt;&lt;/a&gt; introduced operator counters for aggregate expressions using the moment of parsing of an expression to increment its counter. Since in some cases expressions are parsed multiple times during query processing, the counter value overestimates the true expression occurrence.&lt;/p&gt;

&lt;p&gt;The goal of this task is to implement an alternative idea with more precise counter increment using the CurOp class. The idea of Charlie is to&#160;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Add counter map to the CurOp object.&lt;/li&gt;
	&lt;li&gt;Add APIs to CurOp to #1 increment counters and #2 transition to &quot;parsing stats collection is over - do not track&quot;, which we can call to lock them into place once we&apos;re done the first complete parsing. e.g. in runAggregate() or FindCmd::run().&lt;/li&gt;
	&lt;li&gt;Once in this state any requests to increment the counters won&apos;t do anything so the code will still look pretty simple from within parseExpression().&lt;/li&gt;
	&lt;li&gt;Finally transition the stats from the CurOp object into the serverStatus counters during &apos;completeAndLogOperation&apos;.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="1722796">SERVER-57037</key>
            <summary>Improve precision of operator counters</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="milena.ivanova@mongodb.com">Milena Ivanova</assignee>
                                    <reporter username="milena.ivanova@mongodb.com">Milena Ivanova</reporter>
                        <labels>
                    </labels>
                <created>Tue, 18 May 2021 16:14:07 +0000</created>
                <updated>Sun, 29 Oct 2023 21:53:23 +0000</updated>
                            <resolved>Tue, 26 Oct 2021 14:09:37 +0000</resolved>
                                                    <fixVersion>4.4.14</fixVersion>
                    <fixVersion>5.2.0</fixVersion>
                    <fixVersion>5.1.2</fixVersion>
                    <fixVersion>5.0.6</fixVersion>
                    <fixVersion>4.4.13</fixVersion>
                                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="4379711" author="xgen-internal-githook" created="Mon, 28 Feb 2022 09:22:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Milena Ivanova&apos;, &apos;email&apos;: &apos;milena.ivanova@mongodb.com&apos;, &apos;username&apos;: &apos;mivanova3&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57037&quot; title=&quot;Improve precision of operator counters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57037&quot;&gt;&lt;del&gt;SERVER-57037&lt;/del&gt;&lt;/a&gt; Improve precision of operator counters&lt;/p&gt;

&lt;p&gt;(cherry picked from commit a7d667da957305b1532fa07059f2bec6b2be97b4)&lt;br/&gt;
(cherry picked from commit 59aa9b7fd40e1a2c96c97b7dc214778e42039f27)&lt;br/&gt;
(cherry picked from commit 13ed17c8e001c07ab84233ebb48f5c3f18499833)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e85ea01182531d7c7140026e55513e89058e4222&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e85ea01182531d7c7140026e55513e89058e4222&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4244318" author="xgen-internal-githook" created="Mon, 13 Dec 2021 16:24:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Milena Ivanova&apos;, &apos;email&apos;: &apos;milena.ivanova@mongodb.com&apos;, &apos;username&apos;: &apos;mivanova3&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57037&quot; title=&quot;Improve precision of operator counters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57037&quot;&gt;&lt;del&gt;SERVER-57037&lt;/del&gt;&lt;/a&gt; Improve precision of operator counters&lt;/p&gt;

&lt;p&gt;(cherry picked from commit a7d667da957305b1532fa07059f2bec6b2be97b4)&lt;br/&gt;
(cherry picked from commit 59aa9b7fd40e1a2c96c97b7dc214778e42039f27)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/13ed17c8e001c07ab84233ebb48f5c3f18499833&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/13ed17c8e001c07ab84233ebb48f5c3f18499833&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4229244" author="xgen-internal-githook" created="Fri, 3 Dec 2021 12:46:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Milena Ivanova&apos;, &apos;email&apos;: &apos;milena.ivanova@mongodb.com&apos;, &apos;username&apos;: &apos;mivanova3&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57037&quot; title=&quot;Improve precision of operator counters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57037&quot;&gt;&lt;del&gt;SERVER-57037&lt;/del&gt;&lt;/a&gt; Improve precision of operator counters&lt;/p&gt;

&lt;p&gt;(cherry picked from commit a7d667da957305b1532fa07059f2bec6b2be97b4)&lt;br/&gt;
Branch: v5.1&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/59aa9b7fd40e1a2c96c97b7dc214778e42039f27&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/59aa9b7fd40e1a2c96c97b7dc214778e42039f27&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4144998" author="xgen-internal-githook" created="Mon, 25 Oct 2021 12:17:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Milena Ivanova&apos;, &apos;email&apos;: &apos;milena.ivanova@mongodb.com&apos;, &apos;username&apos;: &apos;mivanova3&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57037&quot; title=&quot;Improve precision of operator counters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57037&quot;&gt;&lt;del&gt;SERVER-57037&lt;/del&gt;&lt;/a&gt; Improve precision of operator counters&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a7d667da957305b1532fa07059f2bec6b2be97b4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a7d667da957305b1532fa07059f2bec6b2be97b4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3848098" author="charlie.swanson" created="Fri, 28 May 2021 16:58:02 +0000"  >&lt;p&gt;Uh oh - does this mean we have two sprints now? &#8220;QO 2021-06-28&#8221; and &#8220;Query Optimization 2021-06-28&#8221;?&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="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="1909581">DOCS-14895</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1991069">DOCS-15135</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>10.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="22495"><![CDATA[v5.1]]></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, 28 May 2021 16:58:02 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 49 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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Operator counters for aggregate expressions were introduced previously. This patch improves the precision of the counters - there is no duplicate counting due to internal query processing or multiple documents. That may require small adjustments in the documentation text and examples.</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>
                            1 year, 49 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>charlie.swanson@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>milena.ivanova@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzbyfz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hywomn:</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="4708">Query Optimization 2021-06-28</customfieldvalue>
    <customfieldvalue id="4710">Query Optimization 2021-07-12</customfieldvalue>
    <customfieldvalue id="4712">Query Optimization 2021-07-26</customfieldvalue>
    <customfieldvalue id="4718">QO 2021-09-06</customfieldvalue>
    <customfieldvalue id="5261">Query Optimization 2021-08-09</customfieldvalue>
    <customfieldvalue id="5264">QO 2021-09-20</customfieldvalue>
    <customfieldvalue id="5266">QO 2021-10-04</customfieldvalue>
    <customfieldvalue id="5268">QO 2021-10-18</customfieldvalue>
    <customfieldvalue id="5270">QO 2021-11-01</customfieldvalue>
    <customfieldvalue id="5335">QO 2021-08-23</customfieldvalue>

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

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