<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:11:27 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>[DOCS-14895] [SERVER] Investigate changes in SERVER-57037: Improve precision of operator counters</title>
                <link>https://jira.mongodb.org/browse/DOCS-14895</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>    &lt;div class=&quot;panel&quot; style=&quot;background-color: #c2d2c2;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;background-color: #239eb0;&quot;&gt;&lt;b&gt;Downstream Change Summary&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #c2d2c2;&quot;&gt;
&lt;p&gt;    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.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;h2&gt;&lt;a name=&quot;DescriptionofLinkedTicket&quot;&gt;&lt;/a&gt;Description of Linked Ticket&lt;/h2&gt;
&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="1909581">DOCS-14895</key>
            <summary>[SERVER] Investigate changes in SERVER-57037: 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="dave.cuthbert@mongodb.com">Dave Cuthbert</assignee>
                                    <reporter username="backlog-server-pm">Backlog - Core Eng Program Management Team</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Oct 2021 14:09:39 +0000</created>
                <updated>Mon, 13 Nov 2023 17:47:49 +0000</updated>
                            <resolved>Mon, 7 Feb 2022 18:49:45 +0000</resolved>
                                                    <fixVersion>5.2.0</fixVersion>
                    <fixVersion>5.0.6</fixVersion>
                    <fixVersion>5.1.2</fixVersion>
                    <fixVersion>4.4.13</fixVersion>
                    <fixVersion>4.4.14</fixVersion>
                    <fixVersion>Server_Docs_20231030</fixVersion>
                    <fixVersion>Server_Docs_20231106</fixVersion>
                    <fixVersion>Server_Docs_20231105</fixVersion>
                    <fixVersion>Server_Docs_20231113</fixVersion>
                                    <component>Server</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4386486" author="JIRAUSER1257477" created="Wed, 2 Mar 2022 15:29:37 +0000"  >&lt;p&gt;&lt;em&gt;Fix Version updated for upstream &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;:&lt;/em&gt; &lt;br/&gt;
5.2.0, 5.1.2, 5.0.6, 4.4.13, 4.4.14&lt;/p&gt;</comment>
                            <comment id="4386461" author="JIRAUSER1257477" created="Wed, 2 Mar 2022 15:24:03 +0000"  >&lt;p&gt;&lt;em&gt;Fix Version updated for upstream &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;:&lt;/em&gt; &lt;br/&gt;
5.2.0, 5.1.2, 5.0.6, 4.4.14&lt;/p&gt;</comment>
                            <comment id="4380748" author="xgen-internal-githook" created="Mon, 28 Feb 2022 16:28:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dave&apos;, &apos;email&apos;: &apos;69165704+davemungo@users.noreply.github.com&apos;, &apos;username&apos;: &apos;davemungo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-14895&quot; title=&quot;[SERVER] Investigate changes in SERVER-57037: Improve precision of operator counters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-14895&quot;&gt;&lt;del&gt;DOCS-14895&lt;/del&gt;&lt;/a&gt; BACKPORT (#727)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;DOCSP-14895-BACKPORT&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;typo&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/commit/1b1a6d4382e7b187a98c288daa38a46a510fa5c1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/commit/1b1a6d4382e7b187a98c288daa38a46a510fa5c1&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="4379766" author="JIRAUSER1257477" created="Mon, 28 Feb 2022 10:07:06 +0000"  >&lt;p&gt;&lt;em&gt;Fix Version updated for upstream &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;:&lt;/em&gt; &lt;br/&gt;
5.2.0, 5.1.2, 5.0.6, 4.4.13&lt;/p&gt;</comment>
                            <comment id="4340126" author="xgen-internal-githook" created="Mon, 7 Feb 2022 18:48:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dave&apos;, &apos;email&apos;: &apos;69165704+davemungo@users.noreply.github.com&apos;, &apos;username&apos;: &apos;davemungo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-14895&quot; title=&quot;[SERVER] Investigate changes in SERVER-57037: Improve precision of operator counters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-14895&quot;&gt;&lt;del&gt;DOCS-14895&lt;/del&gt;&lt;/a&gt; BACKPORT (#549)&lt;br/&gt;
Branch: v5.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/commit/1bf217af095f7fe7bfaa11fed86b0c7777676b81&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/commit/1bf217af095f7fe7bfaa11fed86b0c7777676b81&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4340116" author="xgen-internal-githook" created="Mon, 7 Feb 2022 18:44:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dave&apos;, &apos;email&apos;: &apos;69165704+davemungo@users.noreply.github.com&apos;, &apos;username&apos;: &apos;davemungo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-14895&quot; title=&quot;[SERVER] Investigate changes in SERVER-57037: Improve precision of operator counters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-14895&quot;&gt;&lt;del&gt;DOCS-14895&lt;/del&gt;&lt;/a&gt; BACKPORT (#548)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/commit/35a458fa58799861c2c7acf456dd617f8a98fb61&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/commit/35a458fa58799861c2c7acf456dd617f8a98fb61&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4339191" author="xgen-internal-githook" created="Mon, 7 Feb 2022 15:06:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dave&apos;, &apos;email&apos;: &apos;69165704+davemungo@users.noreply.github.com&apos;, &apos;username&apos;: &apos;davemungo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-14895&quot; title=&quot;[SERVER] Investigate changes in SERVER-57037: Improve precision of operator counters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-14895&quot;&gt;&lt;del&gt;DOCS-14895&lt;/del&gt;&lt;/a&gt; improved operator counter precision (#389)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-14895&quot; title=&quot;[SERVER] Investigate changes in SERVER-57037: Improve precision of operator counters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-14895&quot;&gt;&lt;del&gt;DOCS-14895&lt;/del&gt;&lt;/a&gt; improved operator counter precision&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Internal review updates&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/commit/09224062e88c5060e9ffa100356582564cc09aa4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/commit/09224062e88c5060e9ffa100356582564cc09aa4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="4148195" author="dbeng-pm-bot" created="Tue, 26 Oct 2021 14:09:43 +0000"  >&lt;p&gt;&lt;em&gt;Downstream changes updated for upstream &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;:&lt;/em&gt; &lt;br/&gt;
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.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                                                <inwardlinks description="backports">
                                        <issuelink>
            <issuekey id="1942071">DOCS-14962</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                            <outwardlinks description="documents">
                                        <issuelink>
            <issuekey id="1722796">SERVER-57037</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 26 Oct 2021 14:09:43 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 49 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCSP-17171</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>emet.ozar@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 ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-pm</customfieldvalue>
            <customfieldvalue>dave.cuthbert@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jess.mokrzecki@mongodb.com</customfieldvalue>
            <customfieldvalue>dbeng-pm-bot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i07n7r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzr74v:</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_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i079d3:</customfieldvalue>

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