<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:59:43 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-10060] Docs for SERVER-27439: Large queries can omit comment in currentOp</title>
                <link>https://jira.mongodb.org/browse/DOCS-10060</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;h1&gt;&lt;a name=&quot;DocumentationRequestSummary%3A&quot;&gt;&lt;/a&gt;Documentation Request Summary: &lt;/h1&gt;

&lt;p&gt;Currently, our diagnostic output serializes objects which exceed a given size limit - 512 bytes in the case of currentOp, 50KB for the profiler - to an abbreviated string representation, similar to the &quot;query&quot; field in the following entry (shortened for clarity):&lt;/p&gt;

&lt;p&gt;{ &quot;op&quot; : &quot;query&quot;, &quot;ns&quot; : &quot;profile_find.test&quot;, &quot;query&quot; : &quot;{ find: \&quot;test\&quot;, filter: &lt;/p&gt;
{ 0: \&quot;aaaaaaaaaaaaaaaaaaaaa...&quot; }

&lt;p&gt;This commit alters the format by moving the string summary to a field called &quot;$truncated&quot; within an enclosing object:&lt;/p&gt;

&lt;p&gt;{ &quot;op&quot; : &quot;query&quot;, &quot;ns&quot; : &quot;profile_find.test&quot;, &quot;query&quot; : { &quot;$truncated&quot; : &quot;{ find: \&quot;test\&quot;, filter: &lt;/p&gt;
{ 0: \&quot;aaaaaaaaaaaaaaaaaaaaa...&quot;, &quot;comment&quot; : &quot;profile_find_comment&quot; }
&lt;p&gt; }&lt;/p&gt;

&lt;p&gt;If the operation supports a comment parameter and one is present, as in the example above, it will be retained as a separate field in the enclosing object to better facilitate tracing these operations in diagnostic output.&lt;/p&gt;

&lt;p&gt;This change affects both currentOp and the profiler; in the latter case, it applies to the &quot;query&quot;, &quot;command&quot;, &quot;originatingCommand&quot; and &quot;updateObj&quot; fields. The string serialization itself remains unchanged from its previous behaviour.&lt;/p&gt;

&lt;p&gt;Please feel free to contact me if any of the above isn&apos;t sufficiently clear, or if further details are needed.&lt;/p&gt;

&lt;h1&gt;&lt;a name=&quot;EngineeringTicketDescription%3A&quot;&gt;&lt;/a&gt;Engineering Ticket Description:&lt;/h1&gt;

&lt;p&gt;Since the main purpose of a user-specified comment is to allow a query/aggregation to be easily identified and traced through its execution, the comment should always be visible in currentOp, profiler and logs. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23260&quot; title=&quot;Report original query with getMore in log, profiler and currentOp&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23260&quot;&gt;&lt;del&gt;SERVER-23260&lt;/del&gt;&lt;/a&gt; addressed this issue for 3.4 profiler and logs, but in cases where a query is too large for currentOp it is converted to a string and truncated, which can again elide the comment.&lt;/p&gt;</description>
                <environment></environment>
        <key id="369047">DOCS-10060</key>
            <summary>Docs for SERVER-27439: Large queries can omit comment in currentOp</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="9">Done</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="emily.hall">Emily Hall</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Mar 2017 16:13:18 +0000</created>
                <updated>Thu, 2 Nov 2017 14:54:35 +0000</updated>
                            <resolved>Thu, 2 Nov 2017 14:54:35 +0000</resolved>
                                                    <fixVersion>3.5.5</fixVersion>
                                    <component>Server</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1711742" author="xgen-internal-githook" created="Fri, 27 Oct 2017 21:35:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-10060&quot; title=&quot;Docs for SERVER-27439: Large queries can omit comment in currentOp&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-10060&quot;&gt;&lt;del&gt;DOCS-10060&lt;/del&gt;&lt;/a&gt; add comment to truncated command field&lt;/p&gt;

&lt;p&gt;Signed-off-by: kay &amp;lt;kay.kim@10gen.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/2d79e37180f0b818dab54a1531cefc18d4ff43fa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/2d79e37180f0b818dab54a1531cefc18d4ff43fa&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1701680" author="kevin.albertson" created="Tue, 17 Oct 2017 18:58:55 +0000"  >&lt;p&gt;From what I can tell there is no length limit of comment.&lt;/p&gt;

&lt;p&gt;Note, that the truncate length of currentOp is &lt;b&gt;not&lt;/b&gt; 512 bytes but 1000 bytes (blaming curop.cpp shows the latest change to touch this was &lt;a href=&quot;https://github.com/mongodb/mongo/commit/2b198988a626df6f36c9e606b08b266c462cceb4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this commit&lt;/a&gt;)&lt;/p&gt;</comment>
                            <comment id="1550055" author="asya" created="Sat, 15 Apr 2017 14:46:17 +0000"  >&lt;p&gt;What&apos;s the length limit for the comment?&lt;/p&gt;

&lt;p&gt;And what length of it is preserved?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="292395">DOCS-8071</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                            <outwardlinks description="documents">
                                        <issuelink>
            <issuekey id="339240">SERVER-27439</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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 15 Apr 2017 14:46:17 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 15 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/DOCS-8071'>DOCS-8071</a></s>]]></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>DOCS-10575</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>jess.mokrzecki@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 15 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>emily.hall</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kevin.albertson@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht4ysv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsxcxr:</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|hrzq5b:</customfieldvalue>

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