<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:50:53 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-60848] Log which engine was used for processing a query</title>
                <link>https://jira.mongodb.org/browse/SERVER-60848</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Add a field that indicates whether we used classic or SBE for a query. We should backport it to 5.1. At the least we want to see how many queries are exposed to SBE.&lt;/p&gt;

&lt;p&gt;Worth considering:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;just logging a field if the less common case happens (e.g. &quot;sbe&quot;)&lt;/li&gt;
	&lt;li&gt;should we use the same field in the future for the optimizer (e.g. &quot;sbe&quot; (executed with sbe) / &quot;cqf&quot; (optimized and executed with cqf)&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="1903374">SERVER-60848</key>
            <summary>Log which engine was used for processing a query</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="jennifer.peshansky@mongodb.com">Jennifer Peshansky</assignee>
                                    <reporter username="pawel.terlecki@mongodb.com">Pawel Terlecki</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Wed, 20 Oct 2021 14:30:38 +0000</created>
                <updated>Sun, 29 Oct 2023 21:47:09 +0000</updated>
                            <resolved>Mon, 24 Jan 2022 21:49:07 +0000</resolved>
                                                    <fixVersion>5.3.0</fixVersion>
                    <fixVersion>5.2.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="4313138" author="xgen-internal-githook" created="Tue, 25 Jan 2022 16:47:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jennifer Peshansky&apos;, &apos;email&apos;: &apos;jennifer.peshansky@mongodb.com&apos;, &apos;username&apos;: &apos;jenniferpeshansky&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60848&quot; title=&quot;Log which engine was used for processing a query&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60848&quot;&gt;&lt;del&gt;SERVER-60848&lt;/del&gt;&lt;/a&gt; Add SBE to the slow query log line and to curop metrics&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 52de3c52493f35e4ac4714178bf9d554835bdff7)&lt;br/&gt;
Branch: v5.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c66a46ea750e3aaf2d8f652e6dc3d3c44ea3baef&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c66a46ea750e3aaf2d8f652e6dc3d3c44ea3baef&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4310720" author="JIRAUSER1258420" created="Mon, 24 Jan 2022 21:49:07 +0000"  >&lt;p&gt;&lt;em&gt;Detailed before and after, for downstream changes&lt;/em&gt;&lt;/p&gt;
&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;Change&lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;Before&lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;Slow query log&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;&quot;msg&quot;:&quot;Slow query&quot;,&quot;attr&quot;:{ ..., &quot;planCacheKey&quot;:&quot;84A11A7D&quot;,&quot;reslen&quot;:166,&quot;, ...&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;&quot;msg&quot;:&quot;Slow query&quot;,&quot;attr&quot;:{ ..., &quot;planCacheKey&quot;:&quot;84A11A7D&quot;,&lt;b&gt;&quot;queryExecutionEngine&quot;:&quot;sbe&quot;,&lt;/b&gt;&quot;reslen&quot;:166,&quot;, ... &lt;br/&gt;
 &lt;b&gt;&lt;font color=&quot;#ff0000&quot;&gt;OR&lt;/font&gt;&lt;/b&gt;&lt;br/&gt;
 &quot;msg&quot;:&quot;Slow query&quot;,&quot;attr&quot;:{ ..., &quot;planCacheKey&quot;:&quot;84A11A7D&quot;,&lt;b&gt;&quot;queryExecutionEngine&quot;:&quot;classic&quot;,&lt;/b&gt;&quot;reslen&quot;:166,&quot;, ...&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;Server Status counters&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;db.serverStatus().metrics.query
{
     &quot;planCacheTotalSizeEstimateBytes&quot; : NumberLong(0),
     &quot;updateOneOpStyleBroadcastWithExactIDCount&quot; : NumberLong(0)
}&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;db.serverStatus().metrics.query&lt;br/&gt;
{&lt;br/&gt;
&#160;&#160;&#160;&#160; &quot;planCacheTotalSizeEstimateBytes&quot; : NumberLong(0),&lt;br/&gt;
&#160;&#160;&#160;&#160; &lt;b&gt;&quot;queryExecutionEngine&quot; : {&lt;/b&gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&lt;b&gt;&quot;find&quot;: {&lt;/b&gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;b&gt;sbe: 3&lt;/b&gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;b&gt;classic: 2&lt;/b&gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&lt;b&gt;}&lt;/b&gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&lt;b&gt;&quot;aggregate&quot;: {&lt;/b&gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;b&gt;sbeOnly: 7&lt;/b&gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;b&gt;classicOnly: 7&lt;/b&gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;b&gt;sbeHybrid: 4&lt;/b&gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;b&gt;classicHybrid: 4&lt;/b&gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&lt;b&gt;}&lt;/b&gt;&lt;br/&gt;
&#160;&#160;&#160;&#160; &lt;b&gt;},&lt;/b&gt;&lt;br/&gt;
&#160;&#160;&#160;&#160; &quot;updateOneOpStyleBroadcastWithExactIDCount&quot; : NumberLong(0)&lt;br/&gt;
}&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
</comment>
                            <comment id="4310633" author="xgen-internal-githook" created="Mon, 24 Jan 2022 21:23:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jennifer Peshansky&apos;, &apos;email&apos;: &apos;jennifer.peshansky@mongodb.com&apos;, &apos;username&apos;: &apos;jenniferpeshansky&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60848&quot; title=&quot;Log which engine was used for processing a query&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60848&quot;&gt;&lt;del&gt;SERVER-60848&lt;/del&gt;&lt;/a&gt; Add SBE to the slow query log line and to curop metrics&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ba25336add6ed39d8a5dc3d0371e3e34730aa83d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ba25336add6ed39d8a5dc3d0371e3e34730aa83d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4135511" author="david.storch" created="Wed, 20 Oct 2021 15:20:31 +0000"  >&lt;p&gt;I think there are actually four cases which we may want to distinguish:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;SBE&lt;/li&gt;
	&lt;li&gt;Classic plan stages&lt;/li&gt;
	&lt;li&gt;SBE / DocumentSource hybrid plan&lt;/li&gt;
	&lt;li&gt;Classic / DocumentSource hybrid plan&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="4135346" author="kyle.suarez" created="Wed, 20 Oct 2021 14:40:00 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=christopher.harris&quot; class=&quot;user-hover&quot; rel=&quot;christopher.harris&quot;&gt;christopher.harris&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mihai.andrei&quot; class=&quot;user-hover&quot; rel=&quot;mihai.andrei&quot;&gt;mihai.andrei&lt;/a&gt; suggested also adding a &lt;tt&gt;serverStatus&lt;/tt&gt; counter to track the number of SBE queries run. Would you consider that in scope for this ticket?&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="1969927">DOCS-15061</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1966854">SERVER-62760</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2178312">SERVER-71172</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>8.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="22676"><![CDATA[v5.2]]></customfieldvalue>
    <customfieldvalue key="22495"><![CDATA[v5.1]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 20 Oct 2021 14:40:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 2 weeks, 1 day 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 makes changes to the slow query log line as well as the serverStatus counters. It also changes the system.profile collection, which will have identical fields to the new slow query log line. This change will also be backported to 5.2.&lt;br/&gt;
</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>
                            2 years, 2 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jennifer.peshansky@mongodb.com</customfieldvalue>
            <customfieldvalue>kyle.suarez@mongodb.com</customfieldvalue>
            <customfieldvalue>pawel.terlecki@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i06kzb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzk9j3:</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="5269">QE 2021-11-01</customfieldvalue>
    <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="5283">QE 2022-02-07</customfieldvalue>
    <customfieldvalue id="5810">QE 2022-01-24</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>
    <customfieldvalue key="16944"><![CDATA[Docs]]></customfieldvalue>
    <customfieldvalue key="20960"><![CDATA[DBX: DevTools (Compass, Shell, VS Code Ext)]]></customfieldvalue>
    <customfieldvalue key="16946"><![CDATA[Triage and Release]]></customfieldvalue>
    <customfieldvalue key="20958"><![CDATA[Atlas Data Federation and Data Lake]]></customfieldvalue>
    <customfieldvalue key="20961"><![CDATA[SQL Engines (Atlas SQL + BIC)]]></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|i0674n:</customfieldvalue>

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